/* 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; /* Default dark text for light background */
    background-color: #FFFFFF; /* Explicitly set for clarity, matches default */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Intro Section */
.page-privacy-policy__intro-section {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for dark background */
    padding: 60px 0;
    text-align: center;
}

.page-privacy-policy__main-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFF00; /* As per "注册和登录字体" for emphasis, using it for main title here */
}

.page-privacy-policy__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__image-banner {
    margin: 30px auto;
    max-width: 1000px; /* Adjust max-width for the banner image */
}

.page-privacy-policy__image-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

/* CTA Button */
.page-privacy-policy__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* As per "注册" color */
    color: #FFFF00; /* As per "注册和登录字体" color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
    background: #A40707; /* Darker shade of #C30808 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-privacy-policy__section-title {
    font-size: 28px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for section titles */
}

.page-privacy-policy h2 + p {
    margin-top: 15px;
}

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

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 16px;
}

.page-privacy-policy__list li {
    margin-bottom: 8px;
}

.page-privacy-policy__list li strong {
    color: #017439; /* Emphasize list item headings */
}

.page-privacy-policy__link {
    color: #017439; /* Brand primary color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: #005f2c; /* Darker shade of #017439 */
}

.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

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

/* FAQ Section */
.page-privacy-policy__faq-section {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px 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 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;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light background */
}

/* 问题样式 */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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;
  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: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #017439; /* Brand primary color for FAQ questions */
}

/* 切换图标 */
.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: #017439; /* Brand primary color when active */
  transform: rotate(45deg); /* Change to X or rotate for active state */
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-privacy-policy__main-title {
        font-size: 32px;
    }
    .page-privacy-policy__section-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        font-size: 15px;
    }

    .page-privacy-policy__container {
        padding: 0 15px;
    }

    .page-privacy-policy__intro-section {
        padding: 40px 0;
    }

    .page-privacy-policy__main-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .page-privacy-policy__intro-text {
        font-size: 16px;
    }

    .page-privacy-policy__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Ensure full width on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__content-area {
        padding: 40px 0;
    }

    .page-privacy-policy__section-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__list {
        margin-left: 20px;
    }

    /* Mobile image adaptation */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        filter: none; /* Ensure no filter is applied */
    }
    
    .page-privacy-policy__image-banner,
    .page-privacy-policy__image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0;
      padding-right: 0;
    }

    /* FAQ Mobile */
    .page-privacy-policy__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-privacy-policy__faq-question h3 {
        font-size: 16px;
        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;
    }
}