/* style/gdpr.css */

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Rely on body background */
}

/* Light background sections */
.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Dark background sections - using brand color for emphasis */
.page-gdpr__dark-bg {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
}

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  overflow: hidden; /* Ensure no image overflow */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-gdpr__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-gdpr__hero-title {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #333333; /* Dark text on light hero content background */
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555; /* Slightly lighter dark text */
}

.page-gdpr__section {
  padding: 60px 20px;
}

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

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit from section background */
}

.page-gdpr__sub-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
  color: inherit; /* Inherit from section background */
}

.page-gdpr__paragraph {
  margin-bottom: 15px;
  font-size: 1em;
  color: inherit; /* Inherit from section background */
}

.page-gdpr__link {
  color: #EA7C07; /* Login color for links for consistency and contrast */
  text-decoration: underline;
}

.page-gdpr__link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  color: inherit; /* Inherit from section background */
}

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

.page-gdpr__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary button */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  background-color: #d16b06;
}

.page-gdpr__contact-info {
  margin-top: 30px;
  text-align: center;
}

.page-gdpr__policy-list {
  list-style: none;
  padding: 0;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gdpr__policy-item {
  margin-bottom: 10px;
}

.page-gdpr__policy-item a {
  font-size: 1.1em;
  font-weight: bold;
}

.page-gdpr__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

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

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg, or white on light bg */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff; /* Default for dark sections */
}

.page-gdpr__light-bg .page-gdpr__faq-item {
  background-color: #f8f8f8;
  color: #333333;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question */
  transition: background-color 0.3s ease;
  color: inherit;
  list-style: none; /* For details/summary */
}

.page-gdpr__light-bg .page-gdpr__faq-question {
  background-color: #e9e9e9;
}

.page-gdpr__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-gdpr__light-bg .page-gdpr__faq-question:hover {
  background-color: #ddd;
}

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

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

.page-gdpr__faq-answer {
  padding: 0 25px 18px;
  font-size: 0.95em;
  color: inherit;
}

/* Ensure details/summary styling */
.page-gdpr__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

/* Responsive design */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-bottom: 20px;
  }

  .page-gdpr__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }

  .page-gdpr__hero-title {
    font-size: 1.8em;
  }

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

  .page-gdpr__section {
    padding: 40px 15px;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
  }

  .page-gdpr__sub-title {
    font-size: 1.3em;
  }

  .page-gdpr__list {
    margin-left: 15px;
  }

  /* Mobile image responsiveness */
  .page-gdpr img {
    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;
  }
  
  /* Buttons responsiveness */
  .page-gdpr__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-gdpr__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* FAQ mobile */
  .page-gdpr__faq-question {
    padding: 15px 20px;
  }
  .page-gdpr__faq-answer {
    padding: 0 20px 15px;
  }
}