/* style/gdpr.css */

/* Variables and Base Styles */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #0a0a0a; /* From body background */
    --login-button-color: #EA7C07;
}

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency, though body handles it */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--bg-dark);
    text-align: center;
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 1200px; /* Adjust based on actual container */
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__main-title {
    font-size: clamp(2.2em, 4vw, 3em); /* H1 clamp for responsiveness */
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-gdpr__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

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

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 0;
}

.page-gdpr__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark); /* Light background, dark text */
}

.page-gdpr__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light); /* Dark background, light text */
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-gdpr__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: inherit;
}

.page-gdpr__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__text-block a:hover {
    color: #1e87c2;
}

.page-gdpr__image-inline {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Lists */
.page-gdpr__list,
.page-gdpr__numbered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit;
}

.page-gdpr__numbered-list {
    list-style-type: decimal;
}

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

.page-gdpr__list-item strong {
    color: inherit;
}

/* Contact Info */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

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

.page-gdpr__contact-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__contact-text a:hover {
    color: #1e87c2;
}

/* FAQ Section */
.page-gdpr__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-gdpr__faq-item.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-gdpr__faq-item details {
    border: none;
}

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    outline: none;
    color: inherit;
    list-style: none; /* Hide default marker */
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    outline: none;
    color: inherit;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

/* Ensure images do not have filters */
.page-gdpr img {
    filter: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 0 15px !important; /* Add padding for mobile content */
    }

    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }

    .page-gdpr__main-title {
        font-size: 2em !important; /* Fixed for mobile, ensure readability */
    }

    .page-gdpr__description {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px !important; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__contact-text,
    .page-gdpr__faq-question,
    .page-gdpr__faq-answer {
        font-size: 0.95em;
    }

    /* 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 !important;
        padding-right: 15px !important;
    }

    /* FAQ item mobile padding */
    .page-gdpr__faq-item summary,
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
    }
}