/* style/gdpr.css */

/* Base styles for the GDPR 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); /* Assume light 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;
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF; /* White text for primary background */
    padding-top: calc(var(--header-offset, 120px) + 80px); /* Adjust for fixed header */
}

.page-gdpr__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

/* 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, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

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

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

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

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

/* Content Area */
.page-gdpr__content-area {
    padding: 60px 0;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-gdpr__sub-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #555555;
}

.page-gdpr__text-block {
    margin-bottom: 30px;
    font-size: 1.05em;
    color: #333333;
}

.page-gdpr__text-block p {
    margin-bottom: 1em;
}

.page-gdpr__list {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 30px;
}

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

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

/* 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;
}

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

.page-gdpr__faq-answer p {
    margin-bottom: 1em;
}

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

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 60px 0;
        padding-top: calc(var(--header-offset, 120px) + 60px) !important; /* Mobile fixed header adjustment */
    }

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

    .page-gdpr__intro-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95em !important;
        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;
    }

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

    .page-gdpr__sub-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-gdpr__text-block {
        font-size: 0.95em;
    }

    .page-gdpr__list {
        padding-left: 25px;
    }

    .page-gdpr__faq-item summary {
        padding: 15px 20px;
        font-size: 1.05em;
    }

    .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }

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

    /* General container responsiveness for content sections */
    .page-gdpr__hero-section,
    .page-gdpr__content-area,
    .page-gdpr__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-gdpr__text-block,
    .page-gdpr__list {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
}

/* Color Contrast Safeguards (already integrated above, but for clarity) */
/* Assuming var(--background-color) is light */
.page-gdpr__light-bg {
    color: #333333;
    background-color: #FFFFFF;
}

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

/* Ensure all links are readable */
.page-gdpr a {
    color: #26A9E0;
    text-decoration: none;
}
.page-gdpr a:hover {
    text-decoration: underline;
}