/* style/gdpr.css */

/* Custom colors from requirements */
:root {
    --page-gdpr-background: #08160F;
    --page-gdpr-card-bg: #11271B;
    --page-gdpr-text-main: #F2FFF6;
    --page-gdpr-text-secondary: #A7D9B8;
    --page-gdpr-border: #2E7A4E;
    --page-gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-gdpr-glow: #57E38D;
    --page-gdpr-gold: #F2C14E;
    --page-gdpr-divider: #1E3A2A;
    --page-gdpr-deep-green: #0A4B2C;
}

.page-gdpr {
    background-color: var(--page-gdpr-background);
    color: var(--page-gdpr-text-main); /* Ensure contrast with dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 60px;
    padding-top: 0; /* Image above text, no extra top padding here */
    overflow: hidden; /* Ensure no image overflow */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-gdpr__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly over the image for visual flow */
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, var(--page-gdpr-background) 0%, rgba(8, 22, 15, 0.8) 70%, rgba(8, 22, 15, 0) 100%);
    padding-top: 100px; /* Add padding to account for the gradient */
    border-radius: 10px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: var(--page-gdpr-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: 1.1em;
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 30px;
}

/* General Sections */
.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-gdpr-divider);
}

.page-gdpr__section:last-of-type {
    border-bottom: none;
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--page-gdpr-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--page-gdpr-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-gdpr__text {
    font-size: 1em;
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 15px;
}

.page-gdpr__link {
    color: var(--page-gdpr-gold);
    text-decoration: underline;
}

.page-gdpr__link:hover {
    color: var(--page-gdpr-glow);
}

/* Image & Content Layout */
.page-gdpr__image-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-gdpr__image-content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-gdpr__image-content-wrapper .page-gdpr__content-block {
    flex: 1;
}

.page-gdpr__image-wrapper {
    flex: 1;
    min-width: 300px; /* Ensure images don't get too small */
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--page-gdpr-button-gradient);
    color: var(--page-gdpr-text-main); /* White text on green button */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* Dark Background Sections */
.page-gdpr__dark-bg {
    background-color: var(--page-gdpr-card-bg); /* Darker background for contrast */
    color: var(--page-gdpr-text-main);
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--page-gdpr-text-main);
    font-size: 1.1em;
    background-color: var(--page-gdpr-card-bg);
    position: relative;
    list-style: none; /* For details/summary */
}

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

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-gdpr__faq-answer {
    padding: 0 20px 20px;
    color: var(--page-gdpr-text-secondary);
    font-size: 0.95em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 1000px; /* Arbitrary large value for smooth expansion */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-gdpr__image-content-wrapper {
        flex-direction: column;
    }
    .page-gdpr__image-content-wrapper--reversed {
        flex-direction: column; /* Keep column for reversed on mobile */
    }
    .page-gdpr__hero-content {
        margin-top: -40px; /* Adjust overlap for smaller screens */
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__section {
        padding: 40px 0;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.2em, 5vw, 1.6em);
    }
    .page-gdpr__description,
    .page-gdpr__text {
        font-size: 0.95em;
    }

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__hero-section,
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__image-wrapper,
    .page-gdpr__content-block,
    .page-gdpr__faq-list,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Mobile button adaptation */
    .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;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-gdpr__hero-content .page-gdpr__btn-primary {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    /* Adjust hero content padding for mobile */
    .page-gdpr__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure content area images are not too small */
    .page-gdpr__image {
        min-width: 200px;
        min-height: 150px; /* Maintain aspect ratio or set a sensible min-height */
    }

    /* Ensure .page-gdpr__video-section padding-top is small */
    .page-gdpr__video-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-content {
        margin-top: -20px;
        padding-top: 60px;
    }
}