/* General Styling */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #f8f8f8); /* Assuming a light background from shared.css */
}

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

.page-privacy-policy__section-title {
    font-size: 28px;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 25px;
    margin-top: 40px;
    font-weight: 700;
    text-align: center;
}

.page-privacy-policy h2.page-privacy-policy__section-title {
    font-size: 28px;
    text-align: left;
    color: #26A9E0;
}

.page-privacy-policy h3 {
    font-size: 22px;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333333;
}

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333333;
}

.page-privacy-policy__text-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-privacy-policy__text-link:hover {
    color: #1a7bb7;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow issues */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area, may crop */
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    box-sizing: border-box;
    z-index: 1;
    background: #ffffff; /* White background for text block */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: -80px; /* Pull content up over image a bit for visual flow */
    position: relative;
}

.page-privacy-policy__main-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H1 */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.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: 17px;
    font-weight: 700;
    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 long words break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container */
}

.page-privacy-policy__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
    background: #d66f06;
    transform: translateY(-2px);
}

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

.page-privacy-policy__btn-secondary:hover {
    background: #e6f7ff;
    color: #1a7bb7;
    transform: translateY(-2px);
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 60px 0;
    background: #ffffff; /* Explicitly white background for content */
    color: #333333; /* Dark text for light background */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background: #f8f8f8; /* Light grey background for FAQ */
}

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

details.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px 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 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    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; /* Ensure font size is not too small */
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333; /* Dark text for question */
}
.page-privacy-policy__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for toggle icon */
    flex-shrink: 0;
    margin-left: 20px;
    width: 30px;
    text-align: center;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 25px 25px;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    font-size: 16px;
    color: #555555;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer p {
    margin-bottom: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        max-width: 700px;
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(26px, 4.5vw, 38px);
    }
    .page-privacy-policy__intro-text {
        font-size: 17px;
    }
    .page-privacy-policy__section-title {
        font-size: 26px;
    }
    .page-privacy-policy h2.page-privacy-policy__section-title {
        font-size: 26px;
    }
    .page-privacy-policy h3 {
        font-size: 20px;
    }
    .page-privacy-policy p, .page-privacy-policy__list li {
        font-size: 15px;
    }
    details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
        font-size: 17px;
        padding: 16px 20px;
    }
    .page-privacy-policy__faq-qtext {
        font-size: 17px;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 26px;
        margin-left: 15px;
        width: 28px;
    }
    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-privacy-policy__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }
    .page-privacy-policy__hero-image-wrapper {
        max-height: 300px; /* Adjust hero image height for mobile */
    }
    .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: -40px; /* Adjust pull-up for mobile */
        padding: 25px 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .page-privacy-policy__main-title {
        font-size: clamp(24px, 6vw, 32px); /* Smaller H1 for mobile */
        text-align: center;
    }
    .page-privacy-policy__intro-text {
        font-size: 15px;
        text-align: center;
    }

    /* 通用图片与容器 */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px; /* Add padding to container for mobile */
        padding-right: 15px;
        max-width: 100% !important;
        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;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Content Area */
    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section {
        padding: 40px 0;
    }
    .page-privacy-policy__section-title {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 20px;
        text-align: center;
    }
    .page-privacy-policy h2.page-privacy-policy__section-title {
        font-size: 24px;
        text-align: left; /* Keep left aligned within padded container */
    }
    .page-privacy-policy h3 {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-privacy-policy p, .page-privacy-policy__list li {
        font-size: 15px;
    }
    .page-privacy-policy__list {
        padding-left: 15px;
    }

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