/* style/privacy-policy.css */

/* Custom Properties from Color Scheme */
:root {
    --page-privacy-policy-primary-color: #11A84E; /* 主色调 */
    --page-privacy-policy-secondary-color: #22C768; /* 辅助色 */
    --page-privacy-policy-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* 按钮 */
    --page-privacy-policy-card-bg: #11271B; /* Card BG */
    --page-privacy-policy-background: #08160F; /* 背景 */
    --page-privacy-policy-text-main: #F2FFF6; /* Text Main */
    --page-privacy-policy-text-secondary: #A7D9B8; /* Text Secondary */
    --page-privacy-policy-border: #2E7A4E; /* 边框 */
    --page-privacy-policy-glow: #57E38D; /* Glow */
    --page-privacy-policy-gold: #F2C14E; /* Gold */
    --page-privacy-policy-divider: #1E3A2A; /* Divider */
    --page-privacy-policy-deep-green: #0A4B2C; /* Deep Green */
}

.page-privacy-policy {
    background-color: var(--page-privacy-policy-background);
    color: var(--page-privacy-policy-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

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

.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Ensure no overflow */
}

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

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-privacy-policy__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly, but not *on* the image */
    position: relative;
    z-index: 2;
    background-color: var(--page-privacy-policy-background); /* Provide a solid background for text */
    padding-top: 120px; /* Adjust padding to ensure no text overlaps image */
    border-radius: 15px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size for H1 */
    color: var(--page-privacy-policy-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: 1.15rem;
    color: var(--page-privacy-policy-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__btn-primary {
    display: inline-block;
    background: var(--page-privacy-policy-button-gradient);
    color: #ffffff; /* White text on dark green button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px; /* Min width for buttons */
    box-sizing: border-box;
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--page-privacy-policy-text-main);
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: var(--page-privacy-policy-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-privacy-policy__content-area {
    padding: 60px 20px;
    background-color: var(--page-privacy-policy-background); /* Dark background */
    color: var(--page-privacy-policy-text-main); /* Light text */
}

.page-privacy-policy p {
    margin-bottom: 20px;
    color: var(--page-privacy-policy-text-secondary); /* Secondary text color for paragraphs */
    font-size: 1.05rem;
}

.page-privacy-policy ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--page-privacy-policy-text-secondary);
}

.page-privacy-policy ul li {
    margin-bottom: 10px;
    color: var(--page-privacy-policy-text-secondary);
    font-size: 1.05rem;
}

.page-privacy-policy__link {
    color: var(--page-privacy-policy-secondary-color); /* Use secondary color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: var(--page-privacy-policy-glow);
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-privacy-policy__last-updated {
    text-align: right;
    font-size: 0.9rem;
    color: var(--page-privacy-policy-text-secondary);
    margin-top: 40px;
}

.page-privacy-policy__faq-section {
    padding: 60px 20px;
    background-color: var(--page-privacy-policy-card-bg); /* Darker background for FAQ */
    color: var(--page-privacy-policy-text-main);
}

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

.page-privacy-policy__faq-item {
    background-color: var(--page-privacy-policy-background); /* Slightly lighter than card-bg */
    border: 1px solid var(--page-privacy-policy-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-privacy-policy__faq-item[open] {
    box-shadow: 0 0 20px var(--page-privacy-policy-glow); /* Subtle glow when open */
    border-color: var(--page-privacy-policy-secondary-color);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--page-privacy-policy-text-main);
    background-color: var(--page-privacy-policy-deep-green); /* Darker green for summary */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

.page-privacy-policy__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--page-privacy-policy-primary-color);
}

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
    color: var(--page-privacy-policy-text-main); /* Ensure light text on dark background */
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-privacy-policy-text-main);
}

.page-privacy-policy__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-privacy-policy-text-secondary);
    border-top: 1px solid var(--page-privacy-policy-divider);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-content {
        margin-top: -80px;
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-privacy-policy__hero-section {
        padding-bottom: 40px;
    }

    .page-privacy-policy__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
        padding-top: 80px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-privacy-policy__description {
        font-size: 1rem;
    }

    .page-privacy-policy__btn-primary {
        padding: 12px 25px;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__content-area,
    .page-privacy-policy__faq-section {
        padding: 40px 15px;
    }

    .page-privacy-policy p,
    .page-privacy-policy ul li {
        font-size: 0.95rem;
    }

    .page-privacy-policy__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure min size is maintained */
        min-height: 200px; /* Ensure min size is maintained */
    }

    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-privacy-policy__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* All images must adapt to mobile screen */
    .page-privacy-policy img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* All image containers must adapt to mobile screen */
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__container,
    .page-privacy-policy__card,
    .page-privacy-policy__section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-privacy-policy__cta-button,
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-privacy-policy__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}