/* 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 body background */
    background-color: #FFFFFF; /* Ensures consistency with body background */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-gdpr__description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for content */
    color: #333333;
}

.page-gdpr__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-gdpr__light-text {
    color: #ffffff;
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #26A9E0; /* Brand color for main titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

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

.page-gdpr__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-gdpr__paragraph {
    margin-bottom: 20px;
    font-size: 1.05em;
}

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

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

.page-gdpr__highlight {
    font-weight: bold;
    color: #26A9E0;
}

.page-gdpr__dark-bg .page-gdpr__highlight {
    color: #ffffff;
}

/* Images within content */
.page-gdpr__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-gdpr__image-centered {
    display: block;
    margin: 30px auto;
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Contact Info */
.page-gdpr__contact-info {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

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

.page-gdpr__contact-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-gdpr__contact-link:hover {
    text-decoration: underline;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand color */
    border: 2px solid #26A9E0;
    margin-left: 20px;
}

.page-gdpr__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-gdpr__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #fefefe;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−';
}

.page-gdpr__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

/* Hide default details marker */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-gdpr__description,
    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__faq-question,
    .page-gdpr__faq-answer {
        font-size: 1em;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-gdpr__sub-title {
        font-size: clamp(1.2em, 5vw, 1.6em);
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 15px !important;
        padding: 12px 20px;
    }

    .page-gdpr__hero-content .page-gdpr__btn-secondary {
        margin-top: 10px;
    }

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

    /* Ensure containers for images and buttons are responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__contact-info,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__hero-section {
        padding-top: 10px !important;
    }

    /* If multiple buttons are grouped, stack them on mobile */
    .page-gdpr__hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-gdpr__image-centered {
        max-width: 100%;
    }
}

/* Contrast Fixes */
.page-gdpr__dark-bg {
    color: #ffffff;
}

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

.page-gdpr__btn-primary {
    background: #EA7C07;
    color: #ffffff;
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-gdpr__contact-link {
    color: #26A9E0;
}

.page-gdpr__faq-qtext {
    color: #26A9E0;
}

.page-gdpr__faq-toggle {
    color: #26A9E0;
}

.page-gdpr__highlight {
    color: #26A9E0;
}

.page-gdpr__dark-bg .page-gdpr__highlight {
    color: #ffffff;
}