.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color);
}

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

.page-privacy-policy__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f0f0f0;
}

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

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

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text */
  max-width: 800px;
  margin-top: -100px; /* Overlap slightly for design, but not on image */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.page-privacy-policy__description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFFFF; /* WCAG AA compliant text color, overriding #FFFF00 for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Base for responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-privacy-policy__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.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: #017439;
  color: #ffffff;
}

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

.page-privacy-policy__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-privacy-policy__text-block a {
  color: #017439; /* Link color within text */
  text-decoration: underline;
}

.page-privacy-policy__dark-section .page-privacy-policy__text-block a {
  color: #FFFF00; /* Yellow link on dark green background */
}

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

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}

/* FAQ Section Styles */
.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: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px 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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600; /* Added for better readability */
  color: #333333; /* Ensure good contrast */
}
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;
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit from summary */
}
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-privacy-policy__faq-item .page-privacy-policy__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* General image responsiveness */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for 1024px and below */
@media (max-width: 1024px) {
  .page-privacy-policy__container {
    padding: 15px;
  }
  .page-privacy-policy__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
    max-width: calc(100% - 30px); /* Adjust max-width for smaller screens */
  }
  .page-privacy-policy__main-title {
    font-size: clamp(24px, 3.5vw, 40px);
  }
  .page-privacy-policy__description {
    font-size: 17px;
  }
  .page-privacy-policy__section-title {
    font-size: clamp(22px, 2.8vw, 32px);
  }
  .page-privacy-policy__text-block,
  .page-privacy-policy__list-item,
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question,
  .page-privacy-policy__faq-qtext {
    font-size: 15px;
  }
  .page-privacy-policy__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Responsive styles for 768px and below (Mobile) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-privacy-policy__hero-section {
    padding-top: 10px;
  }
  .page-privacy-policy__hero-image-wrapper {
    max-height: 400px;
  }
  .page-privacy-policy__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
  }
  .page-privacy-policy__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 20px 15px;
    width: calc(100% - 30px) !important; /* Adjust width to prevent overflow */
    box-sizing: border-box !important;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 15px;
  }
  .page-privacy-policy__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__container,
  .page-privacy-policy__content-section,
  .page-privacy-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* 装饰主标题 + 长文 SEO 区 */
  .page-privacy-policy__section-title {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 20px;
    text-align: center;
    word-wrap: break-word;
  }
  .page-privacy-policy__text-block,
  .page-privacy-policy__list-item,
  .page-privacy-policy__faq-answer p {
    font-size: 15px;
    line-height: 1.6;
  }
  .page-privacy-policy__list {
    margin-left: 15px;
  }

  /* 按钮与按钮容器 */
  .page-privacy-policy__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }
  /* No specific product grid for privacy policy, so no product-grid mobile styles */

  /* FAQ specific mobile styles */
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-privacy-policy__faq-qtext {
    font-size: 15px;
    width: calc(100% - 40px); /* Make room for toggle icon */
  }
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 15px 15px;
  }
}