/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

/* Header offset to prevent content from being hidden by fixed header */
.page-gdpr {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* General container for content alignment */
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for dark background */
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1; /* Subtle background image */
}

.page-gdpr__hero-section .page-gdpr__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-gdpr__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #FFFFFF;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFFFF; /* White text for contrast (overriding #FFFF00 for WCAG AA) */
    border: 2px solid #C30808;
}

.page-gdpr__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-gdpr__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

/* Content Section */
.page-gdpr__content-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
}

.page-gdpr__subsection-title {
    font-size: 1.8em;
    color: #017439; /* Brand primary color */
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-gdpr__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333333;
}

.page-gdpr__paragraph a {
    color: #017439;
    text-decoration: underline;
}

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

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-gdpr__list-item strong {
    color: #017439;
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for dark background */
    padding: 60px 0;
}

.page-gdpr__faq-section .page-gdpr__section-title {
    color: #FFFFFF;
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-gdpr__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or simply change to minus */
}

.page-gdpr__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-gdpr__faq-answer a {
    color: #FFFF00; /* Yellow for links in dark background FAQ */
    text-decoration: underline;
}

/* CTA Banner Section */
.page-gdpr__cta-banner {
    background-color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__cta-banner-inner {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.page-gdpr__cta-title {
    font-size: 2.2em;
    color: #017439;
    margin-bottom: 20px;
}

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

.page-gdpr__cta-text a {
    color: #017439;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.5em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-gdpr__hero-section {
        padding: 60px 20px;
        min-height: 400px;
    }

    .page-gdpr__hero-title {
        font-size: 2em;
    }

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

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100%; /* Take full width */
        padding: 0 15px; /* Add padding to prevent overflow */
        box-sizing: border-box;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__content-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-banner {
        padding: 40px 0;
    }

    .page-gdpr__container {
        padding: 0 15px; /* Add padding to mobile containers */
    }

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

    .page-gdpr__subsection-title {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .page-gdpr__list {
        margin-left: 20px;
    }

    .page-gdpr__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-gdpr__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-gdpr__cta-title {
        font-size: 1.8em;
    }

    .page-gdpr__cta-banner-inner {
        padding: 30px 20px;
    }

    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-banner,
    .page-gdpr__cta-banner-inner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-gdpr__container or specific elements */
        overflow-x: hidden !important; /* Prevent horizontal scrolling */
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
    .page-gdpr__subsection-title {
        font-size: 1.2em;
    }
}