/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: var(--secondary-color); /* #FFFFFF */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Blend primary and secondary */
    color: #ffffff; /* Light text on gradient background */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gdpr__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-gdpr__btn-register {
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

.page-gdpr__btn-register:hover {
    background: #a30707;
    border-color: #a30707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-contact {
    background: #FFFFFF;
    color: #017439; /* Primary color text */
    border: 2px solid #017439;
}

.page-gdpr__btn-contact:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-gdpr__subsection-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #017439; /* Primary color for subsection titles */
}

.page-gdpr__dark-section {
    background-color: #017439; /* Primary color background */
    color: #ffffff; /* Light text on dark background */
}

.page-gdpr__section-title--light {
    color: #ffffff; /* Light title on dark background */
}

.page-gdpr__subsection-title--light {
    color: #ffffff; /* Light subsection title on dark background */
}

.page-gdpr__text-contrast-fix {
    color: #ffffff; /* Ensure contrast on dark sections */
}

.page-gdpr p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

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

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

.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Limit image width */
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

.page-gdpr__link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-gdpr__dark-section .page-gdpr__link {
    color: #FFFF00; /* Yellow link on dark background */
}

.page-gdpr__link-email {
    color: #017439;
    text-decoration: underline;
}

.page-gdpr__dark-section .page-gdpr__link-email {
    color: #FFFF00; /* Yellow email link on dark background */
}


/* FAQ Section */
.page-gdpr__faq-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

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

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #fcfcfc;
    color: #333333;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* Ensure content expands */
    padding: 20px 15px !important;
    opacity: 1;
    background: #fcfcfc;
    border-radius: 0 0 5px 5px;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-gdpr__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
    background: #eeeeee;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click */
    color: #333333;
}

.page-gdpr__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: #017439; /* Primary color when active */
    transform: rotate(45deg); /* Rotate to form 'X' or similar */
}

/* Commitment Section Buttons */
.page-gdpr__commitment-section .page-gdpr__cta-button {
    background: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-gdpr__commitment-section .page-gdpr__cta-button:hover {
    background: #a30707;
    border-color: #a30707;
}

.page-gdpr__commitment-section .page-gdpr__btn-secondary {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-gdpr__commitment-section .page-gdpr__btn-secondary:hover {
    background: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .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__subsection-title {
        font-size: 1.4em;
    }
    .page-gdpr p, .page-gdpr__list {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile hero padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-gdpr__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-gdpr__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-gdpr__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Content sections */
    .page-gdpr__content-section {
        padding: 40px 0;
    }

    .page-gdpr__section-title {
        font-size: 1.6em;
        margin-bottom: 25px;
    }

    .page-gdpr__subsection-title {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-gdpr p, .page-gdpr__list {
        font-size: 0.95em;
    }

    .page-gdpr__content-image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ */
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
    
    /* Ensure all images within .page-gdpr are responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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;
    }
}