/* style/gdpr.css */
/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-gdpr__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-gdpr__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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; /* Required for button responsive */
    white-space: normal; /* Required for button responsive */
    word-wrap: break-word; /* Required for button responsive */
    max-width: 100%; /* Required for button responsive */
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Specific color for register/login type buttons */
    color: #FFFF00; /* Specific font color for register/login type buttons */
    border: 2px solid #C30808;
}

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

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Primary brand color for text */
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #00502a;
    border-color: #00502a;
}

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

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle background image */
}

.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Default light background for content sections */
    color: #333333; /* Dark text for light background */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.page-gdpr__section-gdpr-intro,
.page-gdpr__section-data-protection,
.page-gdpr__section-data-collection,
.page-gdpr__section-cookie-policy,
.page-gdpr__section-faq {
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__section-user-rights,
.page-gdpr__section-contact {
    background-color: #017439; /* Dark section for contrast */
    color: #ffffff;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #017439;
    margin-bottom: 25px;
    text-align: center;
}

.page-gdpr__section-title--light {
    color: #ffffff;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-gdpr__paragraph--light {
    color: #f0f0f0;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
}

.page-gdpr__link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: #00502a;
}

.page-gdpr__link--light {
    color: #FFFF00; /* Yellow for links on dark background */
}

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

.page-gdpr__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-gdpr__card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Ensure cards have some height */
    color: #333333; /* Dark text for light card background */
}

.page-gdpr__card--light {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white on dark section */
    color: #333333;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-gdpr__card-text {
    font-size: 1em;
    line-height: 1.6;
}

.page-gdpr__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block; /* Required for image responsive */
    margin: 0 auto; /* Center images */
}

.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-gdpr__faq-container {
    margin-top: 30px;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9; /* Light green background for questions */
    transition: background-color 0.3s ease;
    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:hover {
    background-color: #dcedc8;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: #dcedc8;
}

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

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

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

    .page-gdpr__intro-text {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        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;
    }

    .page-gdpr__content-area {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

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

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

    .page-gdpr__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Mobile image responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images must have these properties */
    .page-gdpr__image-wrapper,
    .page-gdpr__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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