/* style/gdpr.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --button-register-bg: #C30808;
    --button-register-text: #FFFF00;
    --button-login-bg: #C30808;
    --button-login-text: #FFFF00;
    --bg-color-page: #FFFFFF; /* Default for main content areas */
}

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    background-color: var(--bg-color-page); /* Default background for main content sections */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color); /* Dark green background for hero */
}

.page-gdpr__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; /* Padding around content */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 30px; /* Space between image and text */
    object-fit: cover;
}

.page-gdpr__hero-text-container {
    text-align: center;
    color: var(--text-color-light); /* Light text for dark background */
    padding: 0 20px;
}

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

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

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-gdpr__section-title--cta {
    color: var(--text-color-light); /* For dark background CTA */
}

.page-gdpr__text-block {
    font-size: 1.05rem;
    margin-bottom: 15px;
    text-align: justify;
}

.page-gdpr__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Image with text layout */
.page-gdpr__image-text-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

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

.page-gdpr__content-image {
    flex: 0 0 45%;
    max-width: 45%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__text-content {
    flex: 1;
}

/* Dark background sections */
.page-gdpr__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-gdpr__dark-bg .page-gdpr__section-title {
    color: var(--text-color-light);
}

.page-gdpr__dark-bg .page-gdpr__list-item {
    color: var(--text-color-light);
}

/* Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__cta-buttons--center {
    justify-content: center;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text breaks */
}

.page-gdpr__btn-primary {
    background-color: var(--button-register-bg); /* #C30808 */
    color: var(--button-register-text); /* #FFFF00 */
    border: 2px solid var(--button-register-bg);
}

.page-gdpr__btn-primary:hover {
    background-color: #A50707; /* Darker red */
    border-color: #A50707;
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--button-login-text); /* #FFFF00 */
    border: 2px solid var(--button-login-text); /* #FFFF00 */
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--button-login-text); /* #FFFF00 */
    color: var(--button-login-bg); /* #C30808 */
}

.page-gdpr__btn-tertiary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-gdpr__btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}


/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.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(--primary-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

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

/* Ensure no filter is used on images */
.page-gdpr img {
    filter: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-image {
        width: 80%; /* Adjust size for tablet */
        height: auto;
    }
    .page-gdpr__image-text-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-gdpr__image-text-wrapper--reverse {
        flex-direction: column; /* Still column on tablet */
    }
    .page-gdpr__content-image {
        max-width: 80%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 0 15px;
    }

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

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

    .page-gdpr__intro-description {
        font-size: 1rem;
    }

    .page-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 20px;
    }

    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__faq-answer {
        font-size: 0.95rem;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%; /* Ensure container fills width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__image-text-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .page-gdpr__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All image containers in mobile */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-content-wrapper,
    .page-gdpr__image-text-wrapper,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-gdpr__container and specific elements */
    }

    /* Video responsiveness (if any, though not present on this page) */
    .page-gdpr video,
    .page-gdpr__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-gdpr__video-section {
        padding-top: 10px !important;
    }
}