/* style/privacy-policy.css */

/* --- General Page Styles --- */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* A very light grey background for the main content area */
  padding-bottom: 60px; /* Space before footer */
}

.page-privacy-policy__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for main content block */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__text-block h2 {
  color: #26A9E0; /* Brand primary color for main headings */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 28px;
  font-weight: bold;
}

.page-privacy-policy__text-block h3 {
  color: #000000; /* Black for subheadings */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.page-privacy-policy__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

.page-privacy-policy__text-block ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-privacy-policy__text-block ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-privacy-policy__text-block a {
  color: #26A9E0; /* Brand primary color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy__text-block a:hover {
  color: #1a7bbd; /* Slightly darker primary color on hover */
}

/* --- Hero Section Styles --- */
.page-privacy-policy__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #26A9E0, #a0dcf7); /* Light blue gradient */
  margin-bottom: 40px;
}

.page-privacy-policy__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-privacy-policy__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-privacy-policy__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* White text for hero content */
}

.page-privacy-policy__hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.page-privacy-policy__hero-content p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
  color: #ffffff;
}

/* --- FAQ Section Styles --- */
.page-privacy-policy__faq-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__section-title {
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: bold;
}

.page-privacy-policy__faq-container {
  margin-top: 30px;
}

/* FAQ容器样式 */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0; /* Add border for better visual separation */
}

/* FAQ默认状态 - 答案隐藏 */
.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - ⚠️ 使用!important和足够大的max-height确保一定能展开 */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* ⚠️ 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9; /* Light grey background for answer */
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
}

.page-privacy-policy__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333333;
}

/* 切换图标 */
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #26A9E0; /* Brand color when active */
  transform: rotate(45deg); /* Plus sign rotates to form X */
}

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

  /* ⚠️ 移动端必须重新设置padding-top，覆盖桌面端样式 */
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__hero-image img {
    border-radius: 4px;
  }

  .page-privacy-policy__hero-content h1 {
    font-size: 32px;
  }

  .page-privacy-policy__hero-content p {
    font-size: 16px;
  }

  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    padding: 20px 15px;
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-privacy-policy__text-block h2 {
    font-size: 24px;
    margin-top: 25px;
  }

  .page-privacy-policy__text-block h3 {
    font-size: 20px;
    margin-top: 20px;
  }

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

  /* ⚠️ 移动端图片强制适配 */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  /* ⚠️ 移动端所有包含图片的容器 */
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ mobile styles */
  .page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-privacy-policy__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-privacy-policy__faq-answer {
    padding: 0 15px;
  }
  
  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px !important;
  }
}