/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly white background */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
    background-color: #f5f5f5;
    text-align: center;
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

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

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

.page-privacy-policy__description {
    font-size: clamp(16px, 2vw, 20px);
    color: #555555;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
    min-width: 160px; /* Ensure minimum width */
    box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-privacy-policy__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-privacy-policy__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* General Section Styles */
.page-privacy-policy__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-privacy-policy__dark-section {
    background-color: #26A9E0; /* Brand blue background */
    color: #FFFFFF; /* White text for dark background */
}

.page-privacy-policy__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    color: inherit; /* Inherits from parent, so white on dark, dark on light */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.page-privacy-policy__sub-title {
    font-size: clamp(18px, 2.5vw, 24px);
    color: inherit;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-privacy-policy__text-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.7;
    color: inherit;
}

.page-privacy-policy__list li strong {
    color: inherit;
}

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

.page-privacy-policy__contact-list li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.7;
    color: inherit;
}

.page-privacy-policy__contact-list li a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-privacy-policy__contact-list li a:hover {
    color: #1e87c0;
}

.page-privacy-policy__dark-section .page-privacy-policy__text-block p,
.page-privacy-policy__dark-section .page-privacy-policy__text-block li {
    color: #f0f0f0; /* Lighter text for dark sections */
}

.page-privacy-policy__dark-section .page-privacy-policy__contact-list li a {
    color: #FFFFFF; /* White links on dark background */
}

.page-privacy-policy__dark-section .page-privacy-policy__contact-list li a:hover {
    color: #e0f2f7;
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    max-width: 800px; /* Ensure content images don't stretch too wide */
    min-width: 200px; /* Minimum size requirement */
}

.page-privacy-policy__faq-list {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

/* FAQ Accordion Styles */
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;
  color: #333333;
}
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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.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;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer p {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-image {
        max-height: 450px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(26px, 4.5vw, 42px);
    }
    .page-privacy-policy__description {
        font-size: clamp(15px, 2.2vw, 18px);
    }
    .page-privacy-policy__section-title {
        font-size: clamp(22px, 3.8vw, 32px);
    }
    .page-privacy-policy__sub-title {
        font-size: clamp(17px, 2.8vw, 22px);
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        padding: 10px 25px;
        font-size: 17px;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-privacy-policy__hero-section {
        padding-top: 10px; /* Ensure small top padding */
        padding-bottom: 30px;
    }
    .page-privacy-policy__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-privacy-policy__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        max-height: 300px; /* Adjust height for mobile */
    }
    .page-privacy-policy__hero-content {
        padding: 0 10px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(24px, 7vw, 36px); /* More aggressive clamp for mobile H1 */
        margin-bottom: 15px;
    }
    .page-privacy-policy__description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-privacy-policy__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 16px;
        padding: 10px 15px;
        min-width: unset; /* Remove min-width for full flexibility */
    }

    /* 通用图片与容器 */
    .page-privacy-policy__section {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__text-block {
        padding: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 20px;
    }
    .page-privacy-policy__sub-title {
        font-size: clamp(16px, 4.5vw, 20px);
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-privacy-policy__text-block p,
    .page-privacy-policy__list li,
    .page-privacy-policy__contact-list li {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-privacy-policy__list {
        margin-left: 20px;
    }
    .page-privacy-policy__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Maintain minimum size */
        margin: 20px auto;
    }

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