/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #f9f9f9; /* Light background for the page */
}

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  background: linear-gradient(135deg, #26A9E0, #a0dfff); /* Brand color gradient */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.page-privacy-policy__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-privacy-policy__main-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-privacy-policy__intro-description {
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Content Area */
.page-privacy-policy__content-area {
  padding: 50px 20px;
  background-color: #ffffff; /* Explicitly white background for content */
  color: #333333;
}

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

.page-privacy-policy__section-title {
  font-size: 28px;
  color: #26A9E0; /* Brand color for titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
}

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

.page-privacy-policy__list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-privacy-policy__contact-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-privacy-policy__contact-list a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-privacy-policy__contact-list a:hover {
  text-decoration: underline;
}

.page-privacy-policy__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  filter: none; /* Ensure no CSS filter is applied */
}

/* CTA Wrapper */
.page-privacy-policy__cta-wrapper {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-privacy-policy__cta-wrapper p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333333;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
  background: #1e87c2; /* Slightly darker primary color on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
  color: #333333;
}

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

/* FAQ容器样式 */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 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.4s ease;
  padding: 0 20px;
  opacity: 0;
  background-color: #eaf6ff; /* Light background for answer */
  color: #555555;
}

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

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

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
}

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

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

/* 问题标题样式 */
.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  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: #26A9E0;
  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;
  background-color: #f0f8ff;
  border-radius: 50%;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #ffffff;
  background-color: #26A9E0;
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

/* Responsive Design for Desktop, Tablet, Mobile */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 32px;
  }
  .page-privacy-policy__intro-description {
    font-size: 16px;
  }
  .page-privacy-policy__section-title {
    font-size: 24px;
  }
  .page-privacy-policy p, .page-privacy-policy__list li, .page-privacy-policy__contact-list li {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-privacy-policy__main-title {
    font-size: 28px;
  }
  .page-privacy-policy__intro-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section {
    padding: 30px 15px;
  }
  .page-privacy-policy__container {
    padding: 0;
  }
  .page-privacy-policy__section-title {
    font-size: 22px;
    margin-top: 30px;
  }
  .page-privacy-policy p, .page-privacy-policy__list li, .page-privacy-policy__contact-list li {
    font-size: 14px;
  }
  .page-privacy-policy__image {
    margin: 20px auto;
    border-radius: 4px;
    max-width: 100% !important; /* Enforce mobile image max-width */
    width: 100% !important;
    height: auto !important;
    filter: none; /* Ensure no CSS filter is applied */
  }
  .page-privacy-policy__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important; /* Enforce mobile button max-width */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-privacy-policy__cta-wrapper {
      padding: 20px;
      margin-top: 30px;
  }
  .page-privacy-policy__cta-wrapper p {
      font-size: 18px;
      margin-bottom: 20px;
  }

  /* 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;
  }

  /* Ensure content containers don't overflow */
  .page-privacy-policy__content-area,
  .page-privacy-policy__faq-section,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* No CSS filter allowed for images */
.page-privacy-policy img {
  filter: none; /* Explicitly ensure no filter */
}