/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 30px;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Max height for hero image */
  overflow: hidden;
}

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

.page-gdpr__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.page-gdpr__main-title {
  font-size: clamp(2.2em, 3.5vw, 3.2em); /* H1 font size with clamp */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-gdpr__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-gdpr__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb3;
  border-color: #1a7fb3;
}

.page-gdpr__cta-buttons--center {
  margin-top: 30px;
}

/* Main Content Box */
.page-gdpr__main-content-box {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 30px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 4px solid transparent;
  background-image: linear-gradient(#fff,#fff), linear-gradient(to right, #FC8B00, #FFB347); /* Orange gradient border */
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-sizing: border-box;
}

.page-gdpr__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-gdpr__sub-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-gdpr__text-block p {
  margin-bottom: 15px;
}

.page-gdpr__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-gdpr__text-block ul li {
  margin-bottom: 8px;
}

.page-gdpr__text-block strong {
  color: #26A9E0;
}

/* Figures and Images */
.page-gdpr__figure {
  margin: 25px 0;
  text-align: center;
}

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

.page-gdpr__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

/* Dark Section */
.page-gdpr__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 50px 20px;
  margin-top: 30px;
  text-align: center;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__conclusion-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-gdpr__conclusion-text {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.1em;
}

/* Accordion (FAQ) */
.page-gdpr__accordion {
  margin-top: 30px;
}

.page-gdpr__accordion-item {
  border-bottom: 1px solid rgba(252,139,0,0.25);
  margin-bottom: 10px;
  overflow: hidden;
}

.page-gdpr__accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-gdpr__accordion-title h3 {
  margin: 0;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  color: #FD8C00; /* Orange color for question title */
}

.page-gdpr__accordion-title:hover {
  background-color: #eee;
}

.page-gdpr__accordion-toggle {
  width: 12px;
  height: 12px;
  border: solid #FD8C00;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.page-gdpr__accordion-item.is-active .page-gdpr__accordion-toggle {
  transform: rotate(-135deg);
}

.page-gdpr__accordion-inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  background-color: #fcfcfc;
}

.page-gdpr__accordion-item.is-active .page-gdpr__accordion-inner {
  max-height: 2000px; /* Large enough value to show full content */
  padding: 15px 20px;
}

.page-gdpr__accordion-inner p {
  margin: 0;
  padding-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    padding: 30px 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

  .page-gdpr__main-content-box {
    margin-left: 20px;
    margin-right: 20px;
    padding: 25px;
  }

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

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

@media (max-width: 768px) {
  /* 1. 顶区轮播 Banner (Hero Section) */
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    margin-bottom: 20px;
  }

  .page-gdpr__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gdpr__hero-content {
    padding: 20px 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 2. 主内容大框 */
  .page-gdpr__main-content-box {
    margin-left: 15px !important;
    margin-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px !important;
  }

  /* 3. 大框内 CTA 与 figure */
  .page-gdpr__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
  }

  .page-gdpr__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 4. 按钮与按钮容器 (explicitly add container rules) */
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Ensure no overflow from button group */
  }

  /* 5. FAQ 手风琴 */
  .page-gdpr__accordion-title {
    padding: 12px 15px;
  }

  .page-gdpr__accordion-title h3 {
    font-size: 1.1em;
  }

  .page-gdpr__accordion-inner {
    padding: 0 15px;
  }

  .page-gdpr__accordion-item.is-active .page-gdpr__accordion-inner {
    padding: 10px 15px;
  }

  /* 6. Blog outer frame (Not applicable for this page) */

  .page-gdpr__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-gdpr__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-gdpr__text-block p,
  .page-gdpr__text-block ul li {
    font-size: 0.95em;
  }

  .page-gdpr__dark-section {
    padding: 30px 15px;
  }

  .page-gdpr__conclusion-text {
    font-size: 1em;
  }
}