/* style/gdpr.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main Green */
    --color-secondary: #22C768; /* Auxiliary Green */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Default text color for light backgrounds, as body background is unknown (could be light) */
    --color-default-dark-text: #333333; /* Fallback if body is light */
    --color-default-light-text: #F2FFF6; /* For dark backgrounds like --color-background */
}

/* Base styles for the GDPR page content */
.page-gdpr {
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Dark background for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    text-align: center;
    overflow: hidden;
    background-color: var(--color-deep-green); /* Darker background for hero */
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width of hero image */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* H1 font size with clamp */
    color: var(--color-gold); /* Gold for main title */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-gdpr__hero-description {
    font-size: clamp(1em, 1.2vw, 1.2em);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons in Hero */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 20px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White-ish text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background); /* Dark background text for secondary button hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

.page-gdpr__section:last-of-type {
    border-bottom: none;
}

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

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--color-gold); /* Gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__content-block {
    background-color: var(--color-card-bg); /* Darker background for content blocks */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--color-text-main);
}

.page-gdpr__sub-title {
    font-size: clamp(1.3em, 2vw, 1.8em);
    color: var(--color-secondary); /* Auxiliary green for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--color-text-secondary); /* Secondary text color */
}

.page-gdpr__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Lists */
.page-gdpr__list,
.page-gdpr__contact-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__list-item,
.page-gdpr__contact-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--color-text-secondary);
}

.page-gdpr__list-item strong {
    color: var(--color-text-main); /* Main text color for strong elements */
}

.page-gdpr__list-item::before {
    content: '✓';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-gdpr__contact-item::before {
    content: '•';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-gdpr__link-text {
    color: var(--color-secondary); /* Links in content */
    text-decoration: underline;
}

.page-gdpr__link-text:hover {
    color: var(--color-gold);
}

/* Centered CTA buttons */
.page-gdpr__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Darker background for FAQ */
    border-bottom: 1px solid var(--color-divider);
}

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

.page-gdpr__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main);
}

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

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

.page-gdpr__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or simply change to minus */
    content: '−'; /* Change to minus sign */
}

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

/* Conclusion Section */
.page-gdpr__conclusion .page-gdpr__content-block {
    text-align: center;
}

/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-gdpr__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
    .page-gdpr__sub-title {
        font-size: clamp(1.2em, 3vw, 1.6em);
    }
    .page-gdpr__hero-section {
        padding: 10px 0 40px 0;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 30px;
    }

    .page-gdpr__hero-content {
        padding: 0 15px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
        max-width: 100%;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

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

    .page-gdpr__section {
        padding: 40px 0;
    }

    .page-gdpr__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-gdpr__content-block {
        padding: 20px;
    }

    .page-gdpr__sub-title {
        font-size: clamp(1.1em, 5vw, 1.5em);
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
        object-fit: cover !important;
    }
    
    .page-gdpr__image-full-width {
        margin: 20px 0;
    }

    /* FAQ responsiveness */
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-gdpr__faq-toggle {
        font-size: 1.3em;
    }

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

/* Ensure no filter on images */
.page-gdpr img {
    filter: none !important;
}

/* Contrast fix for text on dark background (main page content) */
.page-gdpr {
    color: var(--color-text-main); /* F2FFF6 */
    background-color: var(--color-background); /* 08160F */
}

/* Ensure contrast for specific elements */
.page-gdpr p,
.page-gdpr li {
    color: var(--color-text-secondary); /* A7D9B8 */
}

.page-gdpr__card,
.page-gdpr__content-block,
.page-gdpr__faq-item {
    background-color: var(--color-card-bg); /* 11271B */
    color: var(--color-text-main); /* F2FFF6 */
}

.page-gdpr__faq-question {
    background-color: var(--color-deep-green); /* 0A4B2C */
    color: var(--color-gold); /* F2C14E */
}

.page-gdpr__faq-answer {
    color: var(--color-text-secondary); /* A7D9B8 */
}

.page-gdpr__btn-primary {
    color: var(--color-text-main); /* F2FFF6 */
}

.page-gdpr__btn-secondary {
    color: var(--color-secondary); /* 22C768 */
}
.page-gdpr__btn-secondary:hover {
    color: var(--color-background); /* 08160F */
}

.page-gdpr__link-text {
    color: var(--color-secondary); /* 22C768 */
}
.page-gdpr__link-text:hover {
    color: var(--color-gold); /* F2C14E */
}