/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #ffffff; /* Default light background */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-gdpr__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-gdpr__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-gdpr__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand primary color */
    margin-bottom: 30px;
    text-align: center;
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: #ffffff;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-gdpr__dark-section .page-gdpr__sub-title {
    color: #ffffff;
}

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

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

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

.page-gdpr__link {
    color: #017439; /* Brand primary color for links */
    text-decoration: underline;
}

.page-gdpr__dark-section .page-gdpr__link {
    color: #FFFF00; /* Yellow for contrast on dark green */
}


/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #017439;
}

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

.page-gdpr__btn-register {
    display: inline-block;
    background-color: #C30808; /* Custom red for register */
    color: #FFFF00; /* Custom yellow for register text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #C30808;
    margin-right: 15px;
}

.page-gdpr__btn-register:hover {
    background-color: #9c0606;
    border-color: #9c0606;
}

.page-gdpr__btn-login {
    display: inline-block;
    background-color: #C30808; /* Custom red for login */
    color: #FFFF00; /* Custom yellow for login text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid #C30808;
}

.page-gdpr__btn-login:hover {
    background-color: #9c0606;
    border-color: #9c0606;
}

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

/* Image Text Layout */
.page-gdpr__image-text-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.page-gdpr__image-text-layout:nth-of-type(even) {
    flex-direction: row-reverse;
}

.page-gdpr__text-block {
    flex: 1;
}

.page-gdpr__image-wrapper {
    flex: 0 0 400px; /* Fixed width for desktop, responsive later */
    max-width: 50%;
    text-align: center;
}

.page-gdpr__image-wrapper--center {
    flex: 1;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Grid Layout for Cards */
.page-gdpr__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-gdpr__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

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

.page-gdpr__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-gdpr__card-text {
    font-size: 0.95em;
    color: #555555;
    text-align: justify;
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    background-color: #017439; /* Brand primary color */
    border: 1px solid #005f2e;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #005f2e;
}

.page-gdpr__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow for contrast */
}

.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;
    color: #f0f0f0;
}

.page-gdpr__faq-answer .page-gdpr__paragraph {
    margin-bottom: 0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

/* CTA Section */
.page-gdpr__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f5f5f5;
}

.page-gdpr__cta-content {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-gdpr__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px);
    }

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

    .page-gdpr__intro-text {
        font-size: 1.1em;
    }

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

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

    .page-gdpr__image-text-layout {
        flex-direction: column;
        align-items: center;
    }

    .page-gdpr__image-text-layout:nth-of-type(even) {
        flex-direction: column;
    }

    .page-gdpr__image-wrapper {
        max-width: 80%;
        margin-top: 30px;
        flex: none;
    }
}

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

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

    .page-gdpr__main-title {
        font-size: 1.8em;
    }

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

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

    .page-gdpr__sub-title {
        font-size: 1.3em;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure content containers are responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__image-text-layout,
    .page-gdpr__cta-content,
    .page-gdpr__faq-list,
    .page-gdpr__hero-content,
    .page-gdpr__image-wrapper {
        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 */
    }

    /* Buttons responsiveness */
    .page-gdpr__btn-primary,
    .page-gdpr__btn-register,
    .page-gdpr__btn-login,
    .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 {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .page-gdpr__image-wrapper {
        max-width: 100%;
        margin-top: 20px;
    }
    
    .page-gdpr__grid-layout {
        grid-template-columns: 1fr;
    }

    .page-gdpr__faq-question,
    .page-gdpr__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__faq-title {
        font-size: 1em;
    }
}