/* style/gdpr.css */

/* Base styles for the page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

/* Fixed header offset for desktop */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

.page-gdpr__section-title--white {
    color: #FFFFFF; /* White title for dark sections */
}

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

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

.page-gdpr__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title on dark background */
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__hero-section .page-gdpr__container {
    position: relative;
    z-index: 1;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

/* Content Area */
.page-gdpr__content-area {
    padding: 60px 0;
    background-color: #FFFFFF; /* Explicit white background for content */
    color: #333333; /* Dark text for white background */
}

.page-gdpr__content-area h2 {
    color: #017439;
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-gdpr__content-area h3 {
    color: #017439;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
}

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

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

.page-gdpr__list li {
    margin-bottom: 8px;
}

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

/* Video Section */
.page-gdpr__video-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__video-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for video */
    margin: 0 auto 30px auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__video-link {
    display: block; /* Make the whole wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Overlay on video for click */
    cursor: pointer;
}

.page-gdpr__video-link:hover {
    opacity: 0.9; /* Visual feedback on hover */
}

.page-gdpr__video-cta {
    font-size: 1.1em;
    margin-top: 20px;
}

.page-gdpr__text-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-gdpr__text-link:hover {
    color: #FFD700;
}

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

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

.page-gdpr__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439; /* Brand color for question */
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

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

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

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset for mobile */
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-gdpr__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-gdpr__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-gdpr__content-area h2 {
        font-size: 1.5em;
        margin-top: 30px;
    }
    .page-gdpr__content-area h3 {
        font-size: 1.2em;
        margin-top: 20px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 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;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-area,
    .page-gdpr__video-section,
    .page-gdpr__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness */
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        margin: 0 auto 20px auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-gdpr__video-wrapper video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Use 100% height to fill wrapper */
        display: block !important;
        box-sizing: border-box !important;
    }

    /* FAQ specific mobile adjustments */
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-gdpr__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}