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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    background-color: #017439; /* Main brand color for hero background */
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center; /* Center content horizontally */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    margin: 0 auto;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop to fill space */
    aspect-ratio: 16 / 9; /* Common aspect ratio for hero images */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    text-align: center;
    color: #FFFFFF; /* White text for dark background */
}

.page-privacy-policy__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 100%; /* Ensure it doesn't overflow */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__intro-description {
    font-size: 1.1em;
    line-height: 1.5;
    opacity: 0.9;
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 40px 0;
    background: #f9f9f9; /* Light background for content sections */
    color: #333333;
}

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

.page-privacy-policy__section-title {
    font-size: 2em;
    font-weight: 600;
    color: #017439; /* Brand color for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.page-privacy-policy__text-block {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
    text-align: left;
}

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

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.6;
}

.page-privacy-policy__article-figure {
    margin: 30px 0;
    text-align: center;
}

.page-privacy-policy__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__image-caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.page-privacy-policy__contact-link {
    color: #017439;
    text-decoration: underline;
}

.page-privacy-policy__contact-link:hover {
    color: #005f2e;
}

/* CTA Buttons */
.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 20px; /* Add padding to container */
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text wraps within button */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 48%; /* Adjust for gap, roughly half width for two buttons */
}

.page-privacy-policy__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-privacy-policy__btn-primary:hover {
    background: #a80707;
    border-color: #a80707;
    color: #f0f000;
}

.page-privacy-policy__btn-secondary {
    background: #017439; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-privacy-policy__btn-secondary:hover {
    background: #005f2e;
    border-color: #005f2e;
    color: #f0f0f0;
}

/* FAQ Section */
.page-privacy-policy__faq-heading {
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: center;
}

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

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; /* Hide default marker */
    transition: background-color 0.3s ease;
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
    background: #f5f5f5;
}
.page-privacy-policy__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.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;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}
.page-privacy-policy__faq-answer p {
    margin-top: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: clamp(2em, 5vw, 2.5em); /* Responsive font size */
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__hero-content {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-privacy-policy__container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-privacy-policy__hero-section {
        padding-top: 10px; /* Small top padding */
    }
    .page-privacy-policy__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-privacy-policy__hero-content {
        margin-top: 15px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 6vw, 2.2em); /* Smaller font size for mobile */
        margin-bottom: 10px;
    }
    .page-privacy-policy__intro-description {
        font-size: 1em;
    }

    /* 通用图片与容器 */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__container,
    .page-privacy-policy__section,
    .page-privacy-policy__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-privacy-policy__section-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-privacy-policy__text-block {
        font-size: 0.95em;
    }
    .page-privacy-policy__list-item {
        font-size: 0.95em;
    }

    /* 按钮与按钮容器 */
    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !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;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* FAQ Section Mobile */
    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;
        margin-left: 10px;
    }
    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
        padding: 0 15px 15px;
    }
    .page-privacy-policy__faq-answer p {
        font-size: 0.9em;
    }
}