/* style/gdpr.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --bg-white: #FFFFFF;
    --font-register-login: #FFFF00;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default to light text for dark body background */
    background-color: var(--bg-dark); /* Inherited from shared.css body */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: var(--header-offset, 120px);
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--font-register-login); /* Highlight title with yellow */
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-gdpr__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-gdpr__btn-primary {
    background-color: var(--btn-register);
    color: var(--font-register-login);
    border: 2px solid var(--btn-register);
}

.page-gdpr__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
}

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* General Section Styling */
.page-gdpr__content-section,
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__data-collection-section,
.page-gdpr__security-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
    padding: 80px 0;
}

.page-gdpr__light-bg {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.page-gdpr__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-gdpr__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: inherit; /* Inherit color from parent section */
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-gdpr__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.page-gdpr__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
}

.page-gdpr__list-item strong {
    color: inherit;
}

.page-gdpr__list-item a,
.page-gdpr__paragraph a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__list-item a:hover,
.page-gdpr__paragraph a:hover {
    color: #005f2e;
}

/* Principles Section Specific */
.page-gdpr__principles-section .page-gdpr__section-title {
    color: var(--text-light);
}

.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--font-register-login); /* Highlight card titles */
}

.page-gdpr__card-text {
    font-size: 1em;
    line-height: 1.5;
}

/* FAQ Section Specific */
.page-gdpr__faq-section .page-gdpr__section-title {
    color: var(--text-light);
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--text-light);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-gdpr__faq-item-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--text-light);
}

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--font-register-login);
}

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

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-gdpr__faq-answer p {
    margin: 0;
    font-size: 1.05em;
    color: var(--text-light);
}

/* CTA Section Specific */
.page-gdpr__cta-content {
    text-align: center;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Color Contrast Fixes (if needed) */
.page-gdpr__content-section p,
.page-gdpr__content-section li,
.page-gdpr__rights-section p,
.page-gdpr__rights-section li,
.page-gdpr__cta-section p {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }

    .page-gdpr__section-title {
        font-size: 2em;
    }

    .page-gdpr__grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-gdpr__hero-section {
        padding: 100px 0 60px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-gdpr__hero-title {
        font-size: 2.2em;
    }

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

    .page-gdpr__hero-buttons,
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .page-gdpr__content-section,
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__data-collection-section,
    .page-gdpr__security-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-section {
        padding: 60px 0;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .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__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* FAQ specific for mobile */
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-item-title {
        font-size: 1.1em;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }

    .page-gdpr__section-title {
        font-size: 1.5em;
    }

    .page-gdpr__hero-section {
        padding: 80px 0 40px;
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* No CSS filter for images */
.page-gdpr img {
    filter: none; /* Ensure no filters are applied */
}