/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--bg-color, #f5f5f5); /* Fallback for body background */
}

.page-gdpr__section {
  padding: 60px 0;
  margin-bottom: 0;
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-gdpr__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #000000; /* Darker for contrast */
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: inherit; /* Inherit from section background */
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: inherit;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-gdpr__paragraph {
  font-size: 1rem;
  margin-bottom: 15px;
  color: inherit;
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-gdpr__list-item {
  margin-bottom: 25px;
  padding-left: 20px;
  position: relative;
}

.page-gdpr__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

.page-gdpr__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  text-align: center;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-gdpr__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

.page-gdpr__btn-primary:hover {
  background-color: #1a7fb8;
  border-color: #1a7fb8;
}

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
  background-color: #e0e0e0;
}

.page-gdpr__cta-group {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr__link:hover {
  color: #1a7fb8;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
}

.page-gdpr__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gdpr__faq-item[open] {
  background-color: #eaf6fd; /* Lighter background when open */
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  color: #333333;
  list-style: none; /* Remove default marker for summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95rem;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-gdpr__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .page-gdpr__intro-text {
    font-size: 1rem;
  }

  .page-gdpr__paragraph {
    font-size: 0.95rem;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin-right: 0;
    margin-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__cta-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-gdpr__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body đã có padding-top, đây là khoảng cách trang trí */
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-gdpr__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Ensure images are at least 200x200px in content area */
.page-gdpr img:not(.page-gdpr__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Color contrast safety for various elements */
.page-gdpr__hero-content .page-gdpr__main-title,
.page-gdpr__hero-content .page-gdpr__intro-text {
  color: #333333; /* Ensure dark text on light background */
}

.page-gdpr__dark-bg .page-gdpr__section-title,
.page-gdpr__dark-bg .page-gdpr__sub-title,
.page-gdpr__dark-bg .page-gdpr__paragraph,
.page-gdpr__dark-bg .page-gdpr__list-item,
.page-gdpr__dark-bg .page-gdpr__link {
  color: #ffffff; /* Ensure light text on dark background */
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__sub-title,
.page-gdpr__light-bg .page-gdpr__paragraph,
.page-gdpr__light-bg .page-gdpr__list-item,
.page-gdpr__light-bg .page-gdpr__link {
  color: #333333; /* Ensure dark text on light background */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question .page-gdpr__faq-qtext {
  color: #26A9E0; /* Highlight question when open */
}