/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg); /* Inherit from shared, assumed dark */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    overflow: hidden; /* Prevent content overflow */
    box-sizing: border-box;
}

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

.page-gdpr__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

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

/* General Section Styling */
.page-gdpr__section {
    padding: 40px 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%; /* Ensure no horizontal overflow */
}

.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff; /* Light background for main content sections */
    color: #333333; /* Dark text for light background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.page-gdpr__dark-section {
    background-color: #017439; /* Primary brand color as background */
    color: #ffffff; /* White text for dark brand color background */
    text-align: center;
}

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

.page-gdpr__section-title {
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
    color: #017439; /* Primary brand color for titles on light background */
}

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

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

.page-gdpr__paragraph--light {
    color: #f0f0f0; /* Lighter text for dark background paragraphs */
}

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

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container width */
}

.page-gdpr__btn-primary:hover {
    background-color: #a00606; /* Slightly darker red on hover */
    color: #fff;
}

/* Links */
.page-gdpr__link {
    color: #017439; /* Brand color for links on light background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: #00562e; /* Darker green on hover */
}

.page-gdpr__link--light {
    color: #FFFF00; /* Custom font color for links on dark background */
}

.page-gdpr__link--light:hover {
    color: #e6e600; /* Slightly darker yellow on hover */
}

/* Contact Info */
.page-gdpr__contact-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    border-radius: 5px;
    color: #333333;
}

.page-gdpr__contact-info .page-gdpr__paragraph {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: #f5f5f5; /* Light grey background for FAQ */
    color: #333333;
    padding: 60px 20px;
}

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

.page-gdpr__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or just '-' */
}

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

.page-gdpr__faq-answer .page-gdpr__paragraph {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.5em;
    }
    .page-gdpr__intro-description {
        font-size: 1.1em;
    }
    .page-gdpr__content-area {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-gdpr__hero-content {
        padding: 15px;
    }

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

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

    .page-gdpr__btn-primary {
        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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    /* Button container for multiple buttons (if applicable) */
    .page-gdpr__button-group {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */\        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-gdpr__section,
    .page-gdpr__content-area,
    .page-gdpr__dark-section,
    .page-gdpr__faq-section {
        padding: 20px 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-gdpr p,
    .page-gdpr li {
        font-size: 15px;
    }

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px;
    }
}

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