/* style/gdpr.css */
.page-gdpr {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page background color */
}

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

.page-gdpr__hero-section {
    padding-top: 10px; /* Small top padding as per "小顶距" rule */
    padding-bottom: 60px; /* Added bottom padding for visual balance */
    background: linear-gradient(135deg, #F2C14E, #FFD36B);
    color: #111111; /* Text on light gradient background */
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 800px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111111; /* Dark text on light hero background */
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333333; /* Darker text for description for better contrast */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-top: 20px; /* Space between text and image */
    object-fit: cover;
    z-index: 1;
    border-radius: 10px;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Brand primary color for section titles */
}

.page-gdpr__introduction-section,
.page-gdpr__principles-section,
.page-gdpr__protection-section,
.page-gdpr__data-processing-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Dark background */
    color: #FFF6D6; /* Light text */
}

.page-gdpr__dark-section {
    background-color: #111111; /* Card BG color for dark sections */
    color: #FFF6D6;
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: #FFD36B; /* Auxiliary color for titles on darker sections */
}

.page-gdpr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-gdpr__card {
    background-color: #111111; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
    color: #FFF6D6; /* Light text on card */
}

.page-gdpr__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #F2C14E; /* Primary color for card titles */
}

.page-gdpr__card p,
.page-gdpr__dark-section p {
    color: #FFF6D6; /* Ensure light text on dark backgrounds */
}

.page-gdpr__image-full {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-gdpr__rights-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-gdpr__rights-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__rights-item-title {
    font-size: 1.3em;
    color: #FFD36B; /* Auxiliary color for rights titles */
    margin-bottom: 10px;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 20px;
    color: #FFF6D6;
}

.page-gdpr__list li {
    margin-bottom: 10px;
}

.page-gdpr__content-block {
    margin-bottom: 40px;
}

.page-gdpr__content-block-title {
    font-size: 1.8em;
    color: #F2C14E;
    margin-bottom: 20px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text on button */
    border: none;
    margin-right: 15px;
}

.page-gdpr__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #FFD36B; /* Auxiliary color for secondary button text */
    border: 2px solid #FFD36B;
}

.page-gdpr__btn-secondary:hover {
    background-color: #FFD36B;
    color: #111111;
}

.page-gdpr__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-gdpr__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-section .page-gdpr__btn-primary,
.page-gdpr__cta-section .page-gdpr__btn-secondary {
    margin-top: 20px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: #0A0A0A;
}

.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2em;
    color: #F2C14E; /* Question text color */
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD36B; /* Toggle icon color */
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Answer text color */
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Use !important as required */
    padding: 15px 25px 25px 25px; /* Adjust padding for expanded state */
}

.page-gdpr__faq-answer p {
    margin-bottom: 1em;
    color: #FFF6D6;
}

.page-gdpr__faq-answer a {
    color: #FFD36B; /* Link color in FAQ answer */
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__card-title {
        font-size: 1.3em;
    }
    .page-gdpr__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* Mobile header spacing */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile as well */
        padding-bottom: 40px !important; /* Adjusted bottom padding for mobile */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 1.2em;
    }

    .page-gdpr__rights-list {
        grid-template-columns: 1fr;
    }

    .page-gdpr__rights-item {
        padding: 20px;
    }

    .page-gdpr__content-block-title {
        font-size: 1.5em;
    }

    /* Mobile image responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__introduction-section,
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__protection-section,
    .page-gdpr__data-processing-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsive */
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 15px; /* Add vertical spacing for stacked buttons */
    }

    .page-gdpr__cta-section .page-gdpr__btn-primary {
        margin-bottom: 15px;
    }

    .page-gdpr__cta-section .page-gdpr__btn-secondary {
        margin-bottom: 0;
    }

    .page-gdpr__cta-section .page-gdpr__btn-primary,
    .page-gdpr__cta-section .page-gdpr__btn-secondary {
        margin-left: auto;
        margin-right: auto;
        display: block; /* Stack buttons vertically */
    }
}