/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color for dark background */
  background: var(--color-background, #B71C1C); /* Use custom background color if not from shared */
}

/* Container for content sections */
.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  background: #B71C1C; /* Deep Red background */
  color: #FFF5E1;
  text-align: center;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-privacy-policy__hero-content {
  padding: 0 20px 40px;
  max-width: 900px;
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-privacy-policy__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold color for main title */
  line-height: 1.2;
}

.page-privacy-policy__intro-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #FFF5E1;
}

/* General Section Styles */
.page-privacy-policy__section {
  padding: 40px 0;
  background: #B71C1C; /* Deep Red background */
}

.page-privacy-policy__section:nth-of-type(even) {
  background: #D32F2F; /* Card BG color for alternating sections */
}

.page-privacy-policy__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  color: #FFD86A; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-privacy-policy__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A, #E6B800);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-privacy-policy__section-title--light {
  color: #FFF5E1;
}

.page-privacy-policy__section-title--light::after {
  background: #FFF5E1;
}

.page-privacy-policy__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #F4D34D; /* Gold color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF5E1; /* Main text color */
}

.page-privacy-policy a {
  color: #FFD86A; /* Gold for links */
  text-decoration: underline;
}

.page-privacy-policy a:hover {
  color: #E6B800; /* Darker Gold on hover */
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF5E1; /* Main text color */
}

.page-privacy-policy__list li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #FFF5E1; /* Main text color */
}

.page-privacy-policy__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 2px solid #F2B544; /* Border color */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  background: #B71C1C;
}

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #7A0E0E; /* Deep Red border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1;
}
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;
  color: #FFF5E1;
}
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: #E53935; /* Accent color on hover */
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1;
}
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD86A; /* Gold for toggle icon */
  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: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
}
.page-privacy-policy__faq-answer p {
  color: #FFF5E1;
}

/* Contact Section */
.page-privacy-policy__contact-section {
  background: #B71C1C;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.page-privacy-policy__contact-section .page-privacy-policy__container {
  background: #D32F2F; /* Card BG for container */
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border: 2px solid #F2B544;
}

.page-privacy-policy__contact-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF5E1;
}

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

.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #333333; /* Dark text for gold button for contrast */
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.page-privacy-policy__image-content--right {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 300px;
  opacity: 0.2;
  z-index: 0;
  filter: grayscale(100%); /* Allow grayscale for decorative images */
  border: none;
  box-shadow: none;
}

/* Update Section */
.page-privacy-policy__update-section {
  background: #D32F2F; /* Card BG */
  padding-bottom: 60px;
}

.page-privacy-policy__effective-date {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
  color: #F4D34D; /* Gold for date */
}

/* --- Responsive Styles (Mobile First) --- */

/* General Mobile adaptations */
@media (max-width: 768px) {
  .page-privacy-policy__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy p,
  .page-privacy-policy li {
    font-size: 15px;
  }

  /* HERO 主图区域 */
  .page-privacy-policy__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 20px;
  }
  .page-privacy-policy__hero-image {
    max-height: 300px;
    margin-bottom: 15px;
  }
  .page-privacy-policy__hero-image img {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Remove aspect ratio if set */
    width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for mobile */
    margin-bottom: 10px;
  }
  .page-privacy-policy__intro-text {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 20px;
    padding-bottom: 8px;
  }
  .page-privacy-policy__section-title::after {
    width: 60px;
    height: 3px;
    margin-top: 8px;
  }
  .page-privacy-policy__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* 通用图片与容器 */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__section,
  .page-privacy-policy__content-area,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy__image-content {
    margin: 20px auto;
  }

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

  /* Contact Section */
  .page-privacy-policy__contact-section {
    padding: 30px 0;
  }
  .page-privacy-policy__contact-section .page-privacy-policy__container {
    padding: 20px;
  }
  .page-privacy-policy__contact-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-privacy-policy__contact-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }
  /* 按钮与按钮容器 */
  .page-privacy-policy__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-privacy-policy__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-privacy-policy__image-content--right {
    display: none; /* Hide decorative image on mobile */
  }

  /* Update Section */
  .page-privacy-policy__update-section {
    padding-bottom: 30px;
  }
  .page-privacy-policy__effective-date {
    font-size: 1rem;
    margin-top: 20px;
  }
}

/* Additional media query for tablets if needed, for instance, for product grids, though not directly applicable here */
@media (max-width: 1024px) {
  .page-privacy-policy__container {
    padding: 20px;
  }
  .page-privacy-policy__hero-image {
    max-height: 400px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-privacy-policy__intro-text {
    font-size: 1.1rem;
  }
  .page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  }
}

/* Ensure general image rules are applied */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
}