/* 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; /* White background for the page content */
}

/* Fixed header offset (if not handled by shared.css on body) */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    background-color: #017439; /* Dark background for hero */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
    padding: 80px 0;
    overflow: hidden;
}

.page-gdpr__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-gdpr__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-gdpr__hero-image-wrapper {
    margin-top: 40px;
}

.page-gdpr__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Section common styles */
.page-gdpr__introduction-section,
.page-gdpr__data-collection-section,
.page-gdpr__data-usage-section,
.page-gdpr__protection-measures-section,
.page-gdpr__user-rights-section,
.page-gdpr__retention-policy-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section {
    padding: 60px 0;
}

.page-gdpr__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-gdpr__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherits from parent section */
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-gdpr__text-light {
    color: #f0f0f0; /* Lighter text for dark backgrounds */
}

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

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

.page-gdpr__link {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
    font-weight: bold;
}

.page-gdpr__link:hover {
    color: #005f2e; /* Darker green on hover */
}

.page-gdpr__link--light {
    color: #a7f0c6; /* Lighter green for links on dark background */
}

.page-gdpr__link--light:hover {
    color: #ffffff;
}

/* Image specific styles */
.page-gdpr__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-gdpr__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Call to Action Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
    background-color: #005f2e; /* Darker green on hover */
    transform: translateY(-2px);
}

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

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

.page-gdpr__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 25px;
    text-align: center;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    /* Content changed by JS */
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05em;
    color: #555555;
    text-align: justify;
}

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


/* Responsive Design */
@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) {
    /* Fixed header offset for mobile (important for first section) */
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-gdpr__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

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

    .page-gdpr__paragraph,
    .page-gdpr__list-item {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-gdpr__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1.1em !important;
    }

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

    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
}

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

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

    .page-gdpr__paragraph,
    .page-gdpr__list-item {
        font-size: 0.95em;
    }
}