/* style/gdpr.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F; /* This is the body background from shared.css */
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Light text for dark background */
    background-color: var(--color-background); /* Ensure consistency */
    padding-bottom: 50px; /* Some spacing before footer */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure image doesn't overflow */
    background-color: var(--color-deep-green); /* Use a brand green for hero section background */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-gdpr__hero-content {
    position: relative; /* Ensure content is above any background layers if any */
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
    color: var(--color-gold); /* Using gold for a striking title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-gdpr__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-gdpr__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.5);
}

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

.page-gdpr__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1);
    transform: translateY(-3px);
}

.page-gdpr__btn-large {
    min-width: 200px;
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Section Titles */
.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--color-gold); /* Use gold for main section titles */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    font-weight: bold;
    line-height: 1.3;
}

/* Text Blocks */
.page-gdpr__text-block {
    font-size: 1em;
    color: var(--color-text-main);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__text-block strong {
    color: var(--color-gold);
}

.page-gdpr__text-secondary {
    color: var(--color-text-secondary);
}

.page-gdpr a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr a:hover {
    color: var(--color-secondary);
}

/* Introduction Section */
.page-gdpr__introduction-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

/* Rights Section (Dark Background) */
.page-gdpr__rights-section {
    padding: 80px 0;
    background-color: var(--color-card-bg); /* Darker green background */
    color: var(--color-text-main);
}

.page-gdpr__rights-section .page-gdpr__section-title {
    color: var(--color-gold);
}

.page-gdpr__rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__card {
    background-color: var(--color-deep-green); /* Slightly lighter dark green for cards */
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main); /* Ensure light text on dark card background */
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__card-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* Data Processing Section */
.page-gdpr__data-processing-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-gdpr__processing-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__processing-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
}

.page-gdpr__item-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-gdpr__item-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    max-width: 800px; /* Limit width for content images */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Data Sharing Section */
.page-gdpr__sharing-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
}

.page-gdpr__list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__list-item {
    background-color: var(--color-card-bg);
    border-left: 4px solid var(--color-primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__list-item strong {
    color: var(--color-gold);
}

/* Cookie Section (Dark Background) */
.page-gdpr__cookie-section {
    padding: 80px 0;
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

/* Contact Section */
.page-gdpr__contact-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-gdpr__contact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__contact-item {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-divider);
}

.page-gdpr__contact-item:last-child {
    border-bottom: none;
}

.page-gdpr__contact-item strong {
    color: var(--color-primary);
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

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

.page-gdpr__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Darker header for FAQ question */
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For <summary> */
    user-select: none;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    border-bottom: 1px solid var(--color-border);
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-gdpr__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

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

/* Final CTA Section */
.page-gdpr__final-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background);
}

.page-gdpr__final-cta .page-gdpr__section-title {
    margin-bottom: 20px;
}

/* Image/Video/Button Responsiveness (Mobile First with Desktop overrides) */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-gdpr video,
.page-gdpr__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-gdpr__video-section,
.page-gdpr__video-container,
.page-gdpr__video-wrapper,
.page-gdpr__hero-section,
.page-gdpr__introduction-section,
.page-gdpr__rights-section,
.page-gdpr__data-processing-section,
.page-gdpr__sharing-section,
.page-gdpr__cookie-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__final-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ensure desktop width for video container in flex context */
.page-gdpr__video-container {
    width: 100%; /* Important for flex items with max-width */
    max-width: 1200px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-gdpr {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-gdpr__container {
        padding: 0 15px !important;
    }

    .page-gdpr__hero-section {
        padding: 10px 0 40px 0 !important;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }

    .page-gdpr__description {
        font-size: 1em !important;
        margin-bottom: 25px !important;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
    }

    .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__btn-large {
        min-width: unset !important;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.5em, 7vw, 2em) !important;
        margin-bottom: 25px !important;
        padding-top: 30px !important;
    }

    .page-gdpr__text-block {
        font-size: 0.95em !important;
        margin-bottom: 15px !important;
    }

    .page-gdpr__rights-grid,
    .page-gdpr__processing-details {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 25px !important;
    }

    .page-gdpr__card,
    .page-gdpr__processing-item {
        padding: 20px !important;
    }

    .page-gdpr__card-title,
    .page-gdpr__item-title {
        font-size: 1.2em !important;
        margin-bottom: 10px !important;
    }

    .page-gdpr__list-item {
        padding: 12px 15px !important;
        font-size: 0.9em !important;
    }

    .page-gdpr__contact-item {
        font-size: 1em !important;
    }

    .page-gdpr__faq-question {
        font-size: 1.05em !important;
        padding: 18px 20px !important;
    }

    .page-gdpr__faq-answer {
        padding: 15px 20px !important;
        font-size: 0.95em !important;
    }

    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr video,
    .page-gdpr__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr__hero-image-wrapper {
        max-height: 300px !important; /* Adjust hero image height for mobile */
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper,
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Crucial for preventing horizontal scroll */
    }
}

/* Specific dark/light background classes for contrast if needed, as per instructions */
.page-gdpr__dark-bg {
    color: var(--color-text-main); /* Light text for dark background */
    background: var(--color-card-bg);
}

.page-gdpr__light-bg {
    color: #333333; /* Dark text for light background */
    background: #ffffff;
}