/* Custom CSS Variables - Defined within .page-gdpr for scope */
.page-gdpr {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;

    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* #F3F8FF */
    line-height: 1.6;
    background-color: var(--card-bg); /* #10233F */
}

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

.page-gdpr__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as shared.css should handle body padding-top */
    margin-bottom: 40px;
    color: var(--text-main);
    background: var(--deep-navy); /* #08162B */
}

.page-gdpr__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default to cover for desktop */
    border-radius: 8px;
}

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

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

.page-gdpr__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main); /* #F3F8FF */
    text-align: center;
    margin-bottom: 20px;
}

.page-gdpr__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main); /* #F3F8FF */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__content-section {
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-gdpr__dark-section {
    background-color: var(--card-bg); /* #10233F */
    color: var(--text-main); /* #F3F8FF */
}

.page-gdpr__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-gdpr__article-body p {
    margin-bottom: 15px;
}

.page-gdpr__article-body--flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-gdpr__article-body--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__article-text {
    flex: 1;
}

.page-gdpr__article-figure {
    flex-shrink: 0;
    width: 400px;
    margin: 0;
    text-align: center;
}

.page-gdpr__article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-gdpr__figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

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

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

.page-gdpr__list li strong {
    color: var(--text-main);
}

.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__cta-buttons--inline {
    justify-content: flex-start;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding/border in width */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

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

.page-gdpr__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: var(--primary-color); /* #113B7A */
    border: 2px solid var(--primary-color); /* #113B7A */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-secondary:hover {
    background: var(--primary-color); /* #113B7A */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__contact-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 20px;
}

.page-gdpr__contact-info a {
    color: var(--glow-color); /* #4FA8FF */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__contact-info a:hover {
    text-decoration: underline;
}

.page-gdpr__final-cta-section {
    padding: 60px 0;
    text-align: center;
    background: var(--deep-navy); /* #08162B */
    color: var(--text-main);
    margin-top: 30px;
}

.page-gdpr__final-cta-section .page-gdpr__description {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Text color helper classes */
.page-gdpr .text-main {
    color: var(--text-main); /* #F3F8FF */
}

.page-gdpr .text-secondary {
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-gdpr .text-gold {
    color: var(--gold-color); /* #F2C14E */
}

.page-gdpr__divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gold-color), var(--primary-color));
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    margin-bottom: 30px;
}

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

details.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color); /* #244D84 */
    overflow: hidden;
    background: var(--card-bg); /* #10233F */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: var(--text-main);
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
    display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
    background: var(--divider-color); /* #1B3357 - slightly lighter dark */
}
.page-gdpr__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-gdpr__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-gold); /* #F2C14E */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
    padding: 0 20px 20px;
    background: var(--deep-navy); /* #08162B */
    border-radius: 0 0 8px 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 20px 25px;
    }

    .page-gdpr__hero-image img {
        max-height: 450px;
    }
}

@media (max-width: 849px) { /* Specific breakpoint for hero image object-fit */
    .page-gdpr__hero-image img {
        object-fit: contain !important; /* Ensure image is not cropped */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        height: auto !important; /* Override fixed height if any */
        width: 100% !important; /* Ensure full width */
        min-height: 200px !important; /* Maintain minimum size */
    }
}

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

    .page-gdpr__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-gdpr__hero-section {
        padding-top: 10px; /* Small top padding, not --header-offset */
        margin-bottom: 30px;
    }
    .page-gdpr__hero-image {
        margin-bottom: 15px;
        max-height: unset; /* Allow natural height */
    }
    .page-gdpr__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
    }
    .page-gdpr__hero-content {
        padding: 0 10px 30px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-gdpr__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Content Sections */
    .page-gdpr__content-section {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.2rem, 4.5vw, 1.6rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-gdpr__article-body {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    .page-gdpr__article-body--flex {
        flex-direction: column;
        gap: 20px;
    }
    .page-gdpr__article-figure {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 10px; /* Add padding to figure to prevent overflow */
    }
    .page-gdpr__article-figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Buttons */
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding: 0 10px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-gdpr__cta-buttons--inline {
        flex-direction: column; /* Force column for mobile */
        align-items: center; /* Center items when stacked */
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section */
    .page-gdpr__faq-section {
        padding: 30px 0;
    }
    details.page-gdpr__faq-item summary.page-gdpr__faq-question {
        padding: 15px;
    }
    .page-gdpr__faq-qtext {
        font-size: 1rem;
    }
    .page-gdpr__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-gdpr__faq-item .page-gdpr__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }

    /* Final CTA */
    .page-gdpr__final-cta-section {
        padding: 40px 0;
    }
    .page-gdpr__final-cta-section .page-gdpr__description {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
}