/* style/gdpr.css */

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

/* Base styles for the page content, ensuring contrast with shared body background */
.page-gdpr {
    background-color: var(--ffok28-background); /* Ensure consistency with shared.css if --background-color is not set */
    color: var(--ffok28-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-gdpr p, .page-gdpr li {
    color: var(--ffok28-text-secondary);
}

.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 */
    text-align: center;
    overflow: hidden;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    max-height: 700px; /* Limit hero image height */
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    color: var(--ffok28-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--ffok28-text-secondary);
    margin-bottom: 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    background: var(--ffok28-button-gradient);
    color: #ffffff; /* White text for button gradient */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-gdpr__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--ffok28-divider);
}

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

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

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

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

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

.page-gdpr__list-item::before {
    content: '✅'; /* Or a custom icon */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ffok28-primary-color);
}

.page-gdpr__image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    object-fit: cover;
}

.page-gdpr__image--right {
    float: right;
    margin-left: 30px;
}

.page-gdpr__image--left {
    float: left;
    margin-right: 30px;
}

.page-gdpr__section--data-collection .page-gdpr__container,
.page-gdpr__section--user-rights .page-gdpr__container,
.page-gdpr__section--security .page-gdpr__container,
.page-gdpr__section--contact .page-gdpr__container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.page-gdpr__section--data-collection .page-gdpr__image,
.page-gdpr__section--user-rights .page-gdpr__image,
.page-gdpr__section--security .page-gdpr__image,
.page-gdpr__section--contact .page-gdpr__image {
    flex: 0 0 45%;
    max-width: 45%;
    margin-top: 0;
    margin-bottom: 0;
}

.page-gdpr__section--data-collection .page-gdpr__paragraph,
.page-gdpr__section--data-collection .page-gdpr__list,
.page-gdpr__section--user-rights .page-gdpr__paragraph,
.page-gdpr__section--user-rights .page-gdpr__list,
.page-gdpr__section--security .page-gdpr__paragraph,
.page-gdpr__section--security .page-gdpr__list,
.page-gdpr__section--contact .page-gdpr__paragraph,
.page-gdpr__section--contact .page-gdpr__list {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Dark background sections */
.page-gdpr__dark-section {
    background-color: var(--ffok28-card-bg);
    color: var(--ffok28-text-main);
}

.page-gdpr__dark-section p, .page-gdpr__dark-section li {
    color: var(--ffok28-text-secondary);
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding-bottom: 80px;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--ffok28-text-main);
    font-size: 1.1em;
    background-color: var(--ffok28-deep-green);
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* CTA Buttons at bottom */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.page-gdpr__btn-primary {
    background: var(--ffok28-button-gradient);
    color: #ffffff;
}

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

.page-gdpr__btn-secondary:hover {
    background: var(--ffok28-primary-color);
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-image {
        max-height: 500px;
    }
    .page-gdpr__section--data-collection .page-gdpr__image,
    .page-gdpr__section--user-rights .page-gdpr__image,
    .page-gdpr__section--security .page-gdpr__image,
    .page-gdpr__section--contact .page-gdpr__image {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }
    .page-gdpr__section--data-collection .page-gdpr__paragraph,
    .page-gdpr__section--data-collection .page-gdpr__list,
    .page-gdpr__section--user-rights .page-gdpr__paragraph,
    .page-gdpr__section--user-rights .page-gdpr__list,
    .page-gdpr__section--security .page-gdpr__paragraph,
    .page-gdpr__section--security .page-gdpr__list,
    .page-gdpr__section--contact .page-gdpr__paragraph,
    .page-gdpr__section--contact .page-gdpr__list {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
    .page-gdpr__list-item::before {
        left: 50%;
        transform: translateX(-50%);
        top: -20px;
    }
    .page-gdpr__list {
        text-align: left;
        padding-left: 25px;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-section {
        padding-top: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-image {
        margin-bottom: 20px;
    }
    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-gdpr__hero-description {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
    }
    .page-gdpr__cta-button,
    .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__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
    }
    .page-gdpr__image--right,
    .page-gdpr__image--left {
        float: none;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }
    .page-gdpr__section--data-collection .page-gdpr__paragraph,
    .page-gdpr__section--data-collection .page-gdpr__list,
    .page-gdpr__section--user-rights .page-gdpr__paragraph,
    .page-gdpr__section--user-rights .page-gdpr__list,
    .page-gdpr__section--security .page-gdpr__paragraph,
    .page-gdpr__section--security .page-gdpr__list,
    .page-gdpr__section--contact .page-gdpr__paragraph,
    .page-gdpr__section--contact .page-gdpr__list {
        text-align: left;
    }
    .page-gdpr__list {
        padding-left: 0;
    }
    .page-gdpr__list-item::before {
        left: 0;
        transform: none;
        top: 0;
    }
}