/* style/gdpr.css */

/* Custom Colors */
:root {
    --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;
    --color-primary: #11A84E; /* Main brand color */
    --color-secondary: #22C768; /* Auxiliary brand color */
    --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* 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;
    padding-bottom: 40px; /* Add some padding at the bottom before footer */
}

/* Headings */
.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr h4,
.page-gdpr h5,
.page-gdpr h6 {
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__main-title {
    text-align: center;
    color: var(--color-gold); /* Using gold for main title for emphasis */
    margin-bottom: 15px;
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__section-title {
    color: var(--color-text-main);
    font-size: clamp(1.8em, 3vw, 2.5em);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Text Blocks */
.page-gdpr__text-block {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

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

/* Links within content */
.page-gdpr a:not(.page-gdpr__btn-primary, .page-gdpr__btn-secondary) {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr a:not(.page-gdpr__btn-primary, .page-gdpr__btn-secondary):hover {
    color: var(--color-secondary);
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure no overflow from image */
    background-color: var(--color-deep-green); /* A darker background for hero section */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1; /* Ensure content is above any potential background effects */
}

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-gdpr__btn-primary {
    background: var(--gradient-button);
    color: var(--color-text-main); /* Light text on primary button */
    border: 2px solid transparent;
    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-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Sections and Containers */
.page-gdpr__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--color-divider);
}

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

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

.page-gdpr__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for content */
    box-sizing: border-box;
}

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

.page-gdpr__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

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

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

/* Images within content */
.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__image--center {
    margin-left: auto;
    margin-right: auto;
}

/* DPO Contact Info */
.page-gdpr__contact-info {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-gdpr__contact-info .page-gdpr__text-block {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-gdpr__contact-info a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-gdpr__contact-info a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
}

.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;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: rgba(17, 168, 78, 0.1); /* Slight tint of primary color */
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: var(--color-deep-green); /* Darker when open */
    color: var(--color-text-main);
}

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

.page-gdpr__faq-answer {
    padding: 0 20px 20px;
    color: var(--color-text-secondary);
    font-size: 0.95em;
    line-height: 1.7;
}

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

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

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

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

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

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

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

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

    .page-gdpr__container {
        padding: 0; /* Remove inner padding as section has it */
    }

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

    .page-gdpr__list-item {
        padding-left: 25px;
    }

    .page-gdpr__list-item::before {
        left: 0;
    }

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-top: 20px;
    }

    .page-gdpr__contact-info {
        padding: 20px;
    }

    .page-gdpr__faq-question {
        padding: 15px;
        font-size: 1em;
    }

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

    .page-gdpr__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9em;
    }

    /* Ensure all images and containers adapt to mobile */
    .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 for full width */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__video-section { /* If video existed, apply this */
        padding-top: 10px !important;
    }

    /* Video responsiveness (if video exists, ensure these are applied) */
    .page-gdpr video,
    .page-gdpr__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}