/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light background */
  background-color: #f8f8f8; /* Light background for the main page */
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  background-color: #f0f0f0; /* Fallback background */
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height on desktop */
  overflow: hidden;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

.page-privacy-policy__hero-content {
  padding: 40px 20px;
  z-index: 1;
  max-width: 900px;
  margin-top: -100px; /* Pull content slightly over image for visual interest, without overlapping text on image */
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative; /* Ensure it's above the image */
}

.page-privacy-policy__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-privacy-policy__description {
  font-size: clamp(16px, 1.5vw, 20px);
  color: #555555;
  margin-bottom: 30px;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
  background-color: #d46f06;
  transform: translateY(-2px);
}

/* Content Sections */
.page-privacy-policy__content-section {
  padding: 60px 0;
}

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

.page-privacy-policy__dark-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-privacy-policy__section-title {
  font-size: clamp(24px, 3vw, 38px);
  color: inherit; /* Inherit color from parent section */
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-privacy-policy__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07; /* Accent color */
  border-radius: 2px;
}

.page-privacy-policy__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

.page-privacy-policy__article-body p {
  margin-bottom: 20px;
}

.page-privacy-policy__article-body h3,
.page-privacy-policy__article-body h4 {
  color: inherit;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
}

.page-privacy-policy__mini-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.page-privacy-policy__content-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);
}

/* Contact List */
.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: center;
}

.page-privacy-policy__contact-item {
  margin-bottom: 10px;
  font-size: 18px;
}

.page-privacy-policy__contact-link {
  color: #EA7C07; /* Link color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-privacy-policy__contact-link:hover {
  color: #d46f06;
  text-decoration: underline;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 60px 0;
}

.page-privacy-policy__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
  color: #333333;
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
  color: #26A9E0;
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: inherit;
}
.page-privacy-policy__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555555;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-privacy-policy__container {
    padding: 15px;
  }
  .page-privacy-policy__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
  }
  .page-privacy-policy__main-title {
    font-size: 36px;
  }
  .page-privacy-policy__description {
    font-size: 18px;
  }
  .page-privacy-policy__content-section {
    padding: 40px 0;
  }
  .page-privacy-policy__section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .page-privacy-policy__article-body {
    font-size: 16px;
  }
  .page-privacy-policy__sub-title {
    font-size: 24px;
  }
  .page-privacy-policy__mini-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 - Mobile */
  .page-privacy-policy__hero-section {
    padding-top: 10px;
  }
  .page-privacy-policy__hero-image-wrapper {
    max-height: 300px;
  }
  .page-privacy-policy__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__hero-content {
    padding: 25px 15px;
    margin-top: -60px;
    border-radius: 5px;
  }
  .page-privacy-policy__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-privacy-policy__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Buttons - Mobile */
  .page-privacy-policy__cta-button,
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary,
  .page-privacy-policy a[class*="button"],
  .page-privacy-policy a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-privacy-policy__cta-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-policy__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Content Sections - Mobile */
  .page-privacy-policy__content-section {
    padding: 30px 0;
  }
  .page-privacy-policy__section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-privacy-policy__section-title::after {
    width: 60px;
  }
  .page-privacy-policy__article-body {
    font-size: 15px;
    padding: 0 10px;
  }
  .page-privacy-policy__article-body h3,
  .page-privacy-policy__article-body h4 {
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-privacy-policy__sub-title {
    font-size: 20px;
  }
  .page-privacy-policy__mini-title {
    font-size: 17px;
  }
  
  /* Generic Images and Containers - Mobile */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ Section - Mobile */
  details.page-privacy-policy__faq-item {
    margin-bottom: 10px;
    border-radius: 5px;
  }
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-privacy-policy__faq-qtext {
    font-size: 16px;
  }
  .page-privacy-policy__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
}