/* style/gdpr.css */

/* Root variables for colors (from custom palette) */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F; /* 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;

    /* Header offset from shared.css, page content should not re-apply */
    --header-offset: 122px; /* Example, actual value from shared.css */
}

.page-gdpr {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Main text color for dark background */
    background-color: var(--color-background); /* Ensure consistency with body background */
}

/* Ensure headings have good contrast on dark background */
.page-gdpr h1,
.page-gdpr h2,
.page-gdpr h3,
.page-gdpr h4,
.page-gdpr h5,
.page-gdpr h6 {
    color: var(--color-text-main); /* White/light text on dark background */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-gdpr h1 {
    /* No fixed font-size for H1 */
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--color-gold); /* Using gold for H1 for emphasis */
}

.page-gdpr h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-glow); /* Using glow for H2 for emphasis */
    margin-bottom: 30px;
}

.page-gdpr h3 {
    font-size: 2rem;
    color: var(--color-text-main);
}

.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header-offset */
    background-color: var(--color-deep-green); /* Darker green for hero section */
    overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative; /* Ensure content is above any potential background layers */
    z-index: 2;
    color: var(--color-text-main);
}

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

.page-gdpr__section {
    padding: 60px 20px;
    background-color: var(--color-background); /* Default section background */
}

.page-gdpr__dark-section {
    background-color: var(--color-deep-green); /* Specific dark section background */
    color: var(--color-text-main); /* Ensure light text on this dark background */
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-gdpr__container--flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-gdpr__container--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__container--center {
    text-align: center;
}

.page-gdpr__content-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-gdpr__image-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-gdpr__section-title {
    margin-bottom: 25px;
    font-size: 2.2rem;
    color: var(--color-glow);
}

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

.page-gdpr__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

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

.page-gdpr__list-item::before {
    content: '✅'; /* Green checkmark */
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.page-gdpr__contact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

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

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    min-width: 150px;
    text-align: center;
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff; /* White text on primary button */
    border: none;
}

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

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--color-glow); /* Glow text on secondary button */
    border: 2px solid var(--color-border); /* Border color from palette */
}

.page-gdpr__btn-secondary:hover {
    background-color: rgba(var(--color-border), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
    border-top: 1px solid var(--color-divider);
    padding-top: 20px;
}

.page-gdpr__faq-item {
    background-color: var(--color-card-bg); /* Card background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
}

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

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

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-glow);
}

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
    margin-top: -1px; /* Overlap border to avoid double line */
}

.page-gdpr__faq-item:not([open]) .page-gdpr__faq-answer {
    display: none; /* Hide answer when not open, for non-JS fallback */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-gdpr__container--flex {
        flex-direction: column;
    }

    .page-gdpr__container--reverse {
        flex-direction: column; /* Ensure column for reverse as well */
    }

    .page-gdpr h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .page-gdpr h2 {
        font-size: 2.2rem;
    }
}

@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 handles --header-offset, this is for visual spacing */
    }

    .page-gdpr__main-title {
        font-weight: 700;
        line-height: 1.2;
        max-width: 100%;
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important; /* Example clamp for mobile H1 */
    }

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

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

    .page-gdpr__section-title {
        font-size: 1.8rem;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-gdpr__hero-image,
    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-gdpr__container,
    .page-gdpr__section,
    .page-gdpr__hero-section,
    .page-gdpr__container--flex,
    .page-gdpr__container--reverse,
    .page-gdpr__content-block,
    .page-gdpr__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-gdpr__faq-item {
        padding-left: 0;
        padding-right: 0;
    }
    .page-gdpr__faq-question {
        padding: 15px 15px;
    }
    .page-gdpr__faq-answer {
        padding: 0 15px 15px 15px;
    }
}