/* style/gdpr.css */

/* Variables from custom palette */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B; /* This is the body background from shared.css */

    /* Generic safe colors for contrast */
    --safe-dark-text: #333333;
    --safe-light-text: #ffffff;
    --safe-light-bg: #ffffff;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    color: var(--safe-light-text); /* Default text color for the page, assuming deep-navy body background */
    background-color: var(--deep-navy-color); /* Matches body background */
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Hero Section --- */
.page-gdpr__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--deep-navy-color);
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

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

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Clamp for H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* --- Buttons --- */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Important for responsiveness */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styles --- */
.page-gdpr__section {
    padding: 60px 0;
    background-color: var(--deep-navy-color); /* Default for sections */
}

.page-gdpr__dark-section {
    background-color: var(--card-bg); /* Use card background for darker sections */
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-gdpr__section-title--light {
    color: var(--text-main); /* Ensure light text on dark background */
}

.page-gdpr__paragraph {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-gdpr__paragraph--light {
    color: var(--text-secondary); /* Explicitly light text for dark sections */
}

.page-gdpr__paragraph:last-child {
    margin-bottom: 0;
}

.page-gdpr__text-highlight {
    color: var(--gold-color);
    font-weight: 600;
}

/* --- Grid Layouts --- */
.page-gdpr__grid {
    display: grid;
    gap: 30px;
}

.page-gdpr__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-gdpr__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --- Cards --- */
.page-gdpr__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-secondary); /* Default text for cards */
}

.page-gdpr__card--dark {
    background-color: var(--deep-navy-color); /* Even darker card on dark section */
    border-color: var(--divider-color);
}

.page-gdpr__card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves like a block element */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-gdpr__card-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* --- Content Boxes (for security measures) --- */
.page-gdpr__content-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-secondary);
}

.page-gdpr__content-box--dark {
    background-color: var(--deep-navy-color);
    border-color: var(--divider-color);
}

.page-gdpr__box-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-gdpr__box-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px; /* Image below text */
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* --- Contact GDPR Section --- */
.page-gdpr__link-contact,
.page-gdpr__link-inline {
    color: var(--glow-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-gdpr__link-contact:hover,
.page-gdpr__link-inline:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* --- FAQ Section --- */
.page-gdpr__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-gdpr__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item[open] {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker for details */
}

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--glow-color);
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
    color: var(--gold-color);
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-gdpr__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin inside answer */
}

/* --- Final CTA Section --- */
.page-gdpr__cta-final {
    padding-bottom: 60px;
    text-align: center;
}

/* --- General Image Styles (for all images within .page-gdpr) --- */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}


/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__grid--3-cols {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-gdpr__grid--2-cols {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .page-gdpr__section-title {
        margin-bottom: 30px;
    }

    .page-gdpr__card,
    .page-gdpr__content-box {
        padding: 25px;
    }

    .page-gdpr__faq-question {
        font-size: 1.1rem;
        padding: 18px 22px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. HERO 主图区域 */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Ensure small top padding, not header offset */
        padding-bottom: 30px;
    }
    .page-gdpr__hero-image-wrapper {
        max-height: 400px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-gdpr__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* 2. 深色导语区 (page-gdpr__intro-gdpr) */
    .page-gdpr__intro-gdpr {
        padding: 40px 0;
    }
    .page-gdpr__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-gdpr__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 25px;
    }
    .page-gdpr__paragraph {
        font-size: 0.95rem;
    }

    /* 3. 博客网格 (General grid for principles and rights sections) */
    .page-gdpr__grid--3-cols,
    .page-gdpr__grid--2-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gdpr__card,
    .page-gdpr__content-box {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-gdpr__card-title,
    .page-gdpr__box-title {
        font-size: 1.25rem;
    }

    /* 4. 通用图片与容器 */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
}