/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body (var(--background-color) in shared.css) */
}

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

/* Fixed header spacing - body handles padding-top, sections use small decorative padding */
.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding for visual separation */
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  background-color: #08160F; /* Background for hero section */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-gdpr__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* Section titles */
.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-gdpr__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #F2FFF6;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

/* Text blocks */
.page-gdpr__text-block {
  font-size: 1em;
  color: #A7D9B8;
  margin-bottom: 15px;
  text-align: justify;
}

/* Images within content */
.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.2);
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #A7D9B8;
}

.page-gdpr__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2AD16F; /* Green checkmark */
  font-weight: bold;
}

.page-gdpr__list-item strong {
  color: #F2FFF6; /* Highlight strong text */
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D; /* Glow effect */
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-gdpr__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  box-shadow: 0 0 15px #57E38D; /* Glow effect */
}

/* Dark background sections */
.page-gdpr__dark-bg {
  background-color: #11271B; /* Card BG */
  padding-bottom: 60px;
}

/* Contact section specific */
.page-gdpr__contact-list {
  list-style: none;
  padding-left: 0;
  text-align: center;
  margin-top: 30px;
}

.page-gdpr__contact-item {
  margin-bottom: 15px;
  color: #A7D9B8;
  font-size: 1.1em;
}

.page-gdpr__contact-item strong {
  color: #F2FFF6;
}

.page-gdpr__link {
  color: #2AD16F; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: #57E38D; /* Glow color on hover */
  text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #F2FFF6;
  font-size: 1.1em;
  background-color: #1E3A2A; /* Divider */
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  border-bottom: 1px solid transparent; /* Remove border when open */
}

.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}

.page-gdpr__faq-question::marker {
  display: none;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-gdpr__faq-answer {
  padding: 20px 25px;
  color: #A7D9B8;
  font-size: 0.95em;
  text-align: justify;
}

.page-gdpr__faq-answer .page-gdpr__text-block {
  margin-bottom: 0;
}

/* CTA Section */
.page-gdpr__cta-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-gdpr__intro-section,
.page-gdpr__principles-section,
.page-gdpr__your-rights-section,
.page-gdpr__implementation-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__hero-section {
    padding-bottom: 40px;
  }

  .page-gdpr__main-title {
    font-size: 2.2em;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
  }

  .page-gdpr__section-title {
    font-size: 2em;
    padding-top: 40px;
    margin-bottom: 30px;
  }
  
  .page-gdpr__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-gdpr__text-block {
    font-size: 0.95em;
  }

  /* Force responsive for images, videos, buttons */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__hero-cta,
  .page-gdpr__cta-group,
  .page-gdpr__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 300px !important; /* Limit button width for better appearance */
    padding: 10px 15px !important;
    font-size: 0.95em !important;
  }

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

  .page-gdpr__faq-answer {
    padding: 15px 20px;
  }
  
  /* Container padding for mobile to prevent overflow */
  .page-gdpr__intro-section > .page-gdpr__container,
  .page-gdpr__principles-section > .page-gdpr__container,
  .page-gdpr__your-rights-section > .page-gdpr__container,
  .page-gdpr__implementation-section > .page-gdpr__container,
  .page-gdpr__contact-section > .page-gdpr__container,
  .page-gdpr__faq-section > .page-gdpr__container,
  .page-gdpr__cta-section > .page-gdpr__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Video responsiveness (if any) */
  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-gdpr__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
  
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}