/* style/gdpr.css */

/* Variables for colors and spacing */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-dark: #121212;
    --background-light: #ffffff;
    --accent-login: #EA7C07;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
}

/* Base styles for the page-gdpr scope */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light); /* Body background is dark, so text is light */
    background-color: var(--background-dark); /* Ensure consistency if any section doesn't define its own background */
}

/* Ensure all images are responsive by default */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    border-radius: 8px; /* Soften edges */
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding-top: var(--spacing-sm); /* Small top padding, body handles header offset */
    padding-bottom: var(--spacing-xl);
    text-align: center;
    background-color: var(--background-dark); /* Ensure dark background for hero */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1600px; /* Example max width for hero image */
    margin-bottom: var(--spacing-lg);
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit height for hero image */
}

.page-gdpr__hero-content {
    max-width: 900px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-color-light); /* Light text for dark background */
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive H1 font size */
    margin-bottom: var(--spacing-md);
    font-weight: bold;
    line-height: 1.2;
    color: var(--secondary-color); /* White title for dark background */
}

.page-gdpr__lead-text {
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
}

/* General Section Styling */
.page-gdpr__section {
    padding: var(--spacing-xl) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.page-gdpr__light-bg {
    background-color: var(--background-light);
    color: var(--text-color-dark); /* Dark text for light background */
}

.page-gdpr__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light); /* Light text for primary background */
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-weight: bold;
    color: var(--primary-color); /* Default title color for light background */
}

.page-gdpr__section-title--white {
    color: var(--secondary-color); /* White title for dark background */
}

.page-gdpr__content-wrapper {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.page-gdpr__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__text-block {
    flex: 1;
    min-width: 300px;
}

.page-gdpr__image-block {
    flex: 1;
    min-width: 300px;
}

.page-gdpr__image-block--center {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
}

.page-gdpr p {
    margin-bottom: var(--spacing-md);
    color: inherit;
}

/* Principles Section */
.page-gdpr__principles-grid,
.page-gdpr__processing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.page-gdpr__principle-card,
.page-gdpr__processing-step {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-color-light);
}

.page-gdpr__card-title,
.page-gdpr__step-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

/* Rights Section */
.page-gdpr__rights-list {
    list-style: disc;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: inherit;
}

.page-gdpr__rights-list li {
    margin-bottom: var(--spacing-sm);
    color: inherit;
}

.page-gdpr__rights-list strong {
    color: var(--primary-color);
}

/* CTA Block */
.page-gdpr__cta-block {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color-light);
}

.page-gdpr__cta-block p {
    font-size: 1.1em;
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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: #1a7fb3; /* Darken primary color */
    border-color: #1a7fb3;
}

.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);
}

.page-gdpr__contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}


/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: var(--spacing-lg);
}

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
    margin-bottom: var(--spacing-sm);
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-color-light);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question */
    color: var(--secondary-color);
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-question::marker {
    display: none;
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    margin-left: var(--spacing-md);
    line-height: 1;
}

.page-gdpr__faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-color-light);
    font-size: 0.95em;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        padding: var(--spacing-md);
    }
    .page-gdpr__content-wrapper {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    .page-gdpr__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-gdpr__principles-grid,
    .page-gdpr__processing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-gdpr__hero-section {
        padding-top: var(--spacing-sm) !important;
        padding-bottom: var(--spacing-lg) !important;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em) !important;
    }

    .page-gdpr__lead-text {
        font-size: 1em !important;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.6em, 6vw, 2em) !important;
        margin-bottom: var(--spacing-lg) !important;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers of images, videos, buttons */
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__content-wrapper,
    .page-gdpr__principles-grid,
    .page-gdpr__processing-grid,
    .page-gdpr__cta-block,
    .page-gdpr__faq-list,
    .page-gdpr__contact-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Buttons 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 !important;
        padding-right: 15px !important;
        margin-bottom: var(--spacing-sm); /* Add spacing between stacked buttons */
    }

    .page-gdpr__contact-buttons {
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }

    /* Video section (if any, though none explicitly here) */
    .page-gdpr__video-section {
        padding-top: 10px !important;
    }
}