/* style/gdpr.css */

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

/* Base styles for the GDPR page */
.page-gdpr {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Page content 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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-deep-green); /* Use a darker green for hero background */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to maintain aspect ratio for large images */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__intro-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* General Section Styles */
.page-gdpr__content-section {
    padding: 60px 0;
}

.page-gdpr__dark-section {
    background-color: var(--color-card-bg); /* Darker background for contrast sections */
}

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Responsive font size */
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem); /* Responsive font size */
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__paragraph {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-gdpr__paragraph strong {
    color: var(--color-text-main);
}

/* Images in content */
.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    max-width: 800px; /* Example max-width for content images */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Call to Action Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to container */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for linear-gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
}

.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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;
}

.page-gdpr__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: var(--color-primary);
}

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

.page-gdpr__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: var(--color-primary);
    border-bottom: none;
}
.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    color: #ffffff;
}

/* Contact Section */
.page-gdpr__contact-section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-gdpr__contact-item {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-gdpr__contact-link {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 0 15px;
    }

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

    .page-gdpr__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-gdpr__intro-text {
        font-size: 1rem;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-top: 20px;
    }

    .page-gdpr__paragraph {
        font-size: 0.95rem;
    }

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

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

    /* Mobile image responsive adaptation */
    .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,
    .page-gdpr__hero-image-wrapper { /* Added hero image wrapper to ensure it also adapts */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__content-section .page-gdpr__container,
    .page-gdpr__faq-section .page-gdpr__container,
    .page-gdpr__contact-section .page-gdpr__container,
    .page-gdpr__final-cta-section .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* FAQ specific mobile adjustments */
    .page-gdpr__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-gdpr__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-image-wrapper {
        max-height: 200px;
    }
    .page-gdpr__hero-section {
        padding-bottom: 30px;
    }
    .page-gdpr__content-section {
        padding: 40px 0;
    }
    .page-gdpr__section-title {
        margin-bottom: 25px;
    }
}