/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Ensure body background is respected */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #FFFFFF; /* White text for dark hero background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 450px; /* Minimum height for hero */
}

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

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 8px;
}

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

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

/* Call to Action Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-gdpr__cta-buttons--center {
    margin-top: 40px;
}

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

.page-gdpr__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-gdpr__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb3;
}

/* Content Sections */
.page-gdpr__content-area {
    padding: 60px 0;
    background-color: #FFFFFF; /* Explicitly set for content area */
    color: #333333; /* Dark text for light background */
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.page-gdpr__sub-title {
    font-size: 1.6em;
    color: #000000; /* Black for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__text-block {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
}

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

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

.page-gdpr__link:hover {
    text-decoration: underline;
}

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

.page-gdpr__contact-list li {
    margin-bottom: 10px;
}

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

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

.page-gdpr__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* Important for smooth transition if not using details */
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #e6f7ff; /* Lighter blue for question background */
    user-select: none;
    position: relative;
}

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #000000; /* Black toggle for contrast */
}

/* Rotate toggle for opened details */
.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or 'minus' effect */
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    padding-bottom: 20px; /* Add bottom padding when open */
}

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

    .page-gdpr__hero-section {
        min-height: 300px;
        padding: 40px 15px;
    }

    .page-gdpr__hero-content {
        padding: 20px 15px;
    }

    .page-gdpr__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-gdpr__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__content-area,
    .page-gdpr__faq-section {
        padding: 40px 0;
    }

    .page-gdpr__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-gdpr__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
    }

    .page-gdpr__text-block {
        padding: 15px;
        margin-bottom: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure any container holding images is also responsive */
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__text-block {
        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 {
        padding: 0 20px 15px;
    }
}