/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f8f9fa; /* Light text for dark body background */
    background-color: var(--black-color); /* From shared.css, assuming it's dark */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background-color: #26A9E0; /* Brand primary color for hero */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* For image positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-gdpr__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.page-gdpr__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

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

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the background image for text contrast */
    /* No filter to change color, only brightness */
}

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
}

.page-gdpr__dark-section {
    background-color: #000000; /* Dark background from custom colors */
    color: #FFFFFF; /* Light text */
}

.page-gdpr__light-bg {
    background-color: #FFFFFF; /* Light background from custom colors */
    color: #333333; /* Dark text */
}

.page-gdpr__content-area {
    padding: 40px 15px;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section (dark/light) */
}

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

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

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

.page-gdpr__image {
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* No filter properties */
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin-top: 20px;
}

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

.page-gdpr__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
    margin-top: 20px;
}

.page-gdpr__btn-secondary:hover {
    background-color: #e0e0e0;
}

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

/* Links */
.page-gdpr__link {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: #1a7fb3;
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__light-bg .page-gdpr__faq-item {
    background-color: #f9f9f9; /* Light background for light section */
    color: #333333;
    border: 1px solid #e0e0e0;
}

.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: rgba(255, 255, 255, 0.05); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-gdpr__light-bg .page-gdpr__faq-question:hover {
    background-color: #e6e6e6;
}

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

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    line-height: 1.6;
    max-height: 0; /* Default hidden state */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Details tag specific styles */
.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 2000px; /* Large enough to show content */
    padding: 0 25px 20px;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

@media (max-width: 768px) {
    .page-gdpr__main-title {
        font-size: 2em;
    }
    .page-gdpr__intro-text {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 1.6em;
    }
    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__faq-answer {
        font-size: 0.95em;
    }
    .page-gdpr__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Mobile button responsiveness */
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        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__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Adjust gap for stacked buttons */
        overflow: hidden !important;
    }
    /* Video responsiveness - if any video was present */
    .page-gdpr video,
    .page-gdpr__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}