/* style/gdpr.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #017439;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-login-register: #FFFF00;
    --border-color: #e0e0e0;
}

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light);
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-gdpr__section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__dark-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-gdpr__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-gdpr__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: inherit; /* Inherit from section for contrast */
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-gdpr__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible on dark, subtle on light */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: inherit;
}

.page-gdpr__list-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}

.page-gdpr__list-item p {
    font-size: 1em;
    margin-bottom: 0;
    color: inherit;
}

.page-gdpr a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__dark-section a {
    color: var(--font-login-register); /* Yellow for contrast on dark green */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Handled by main.page-gdpr */
}

.page-gdpr__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-gdpr__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-gdpr__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Buttons */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background-color: var(--button-register);
    color: var(--font-login-register);
    border: 2px solid var(--button-register);
}

.page-gdpr__btn-primary:hover {
    background-color: darken(var(--button-register), 10%);
    border-color: darken(var(--button-register), 10%);
}

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

/* FAQ Section */
.page-gdpr__faq {
    padding-bottom: 80px;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #f5f5f5;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: var(--text-dark);
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
    color: inherit;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }

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

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

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

    .page-gdpr__hero-section {
        min-height: 450px;
        padding: 60px 15px;
    }

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

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

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

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

    .page-gdpr__paragraph {
        font-size: 0.95em;
        padding: 0 15px;
    }

    .page-gdpr__list-item {
        padding: 15px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-gdpr__list-item h3 {
        font-size: 1.3em;
    }

    .page-gdpr__cta-button {
        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-left: auto;
        margin-right: auto;
        display: block;
    }

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-gdpr__container {
        padding: 0;
    }

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

    .page-gdpr__faq-question h3 {
        font-size: 1.1em;
    }

    .page-gdpr__faq-toggle {
        font-size: 1.5em;
    }

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

    .page-gdpr__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }
}

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

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

    .page-gdpr__section-title {
        font-size: 1.5em;
    }
}