/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: var(--background, #FFFFFF); /* Inherit from shared, default to white */
}

/* Fixed header offset */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    padding-bottom: 60px;
}

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

.page-gdpr__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

.page-gdpr__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-gdpr__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff; /* White for hero section */
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff; /* White for hero section */
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Main brand color */
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
    border-color: #005a2b;
}

.page-gdpr__intro-section, .page-gdpr__rights-section, .page-gdpr__protection-section, .page-gdpr__cookies-section, .page-gdpr__contact-section {
    padding: 60px 20px;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    color: inherit; /* Inherit color from parent section */
}

.page-gdpr__paragraph {
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

.page-gdpr__paragraph a {
    color: #017439; /* Link color */
    text-decoration: underline;
}

.page-gdpr__paragraph a:hover {
    color: #005a2b;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
}

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

.page-gdpr__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none !important; /* Prohibit any filter effects */
}

/* FAQ Section Styles */
.page-gdpr__faq-section {
    padding: 60px 20px;
}

.page-gdpr__faq-list {
    margin-top: 40px;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f8f8f8;
    color: #333333;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

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

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

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

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

.page-gdpr__faq-answer p {
    margin: 0;
}

/* Video Section Styles */
.page-gdpr__video-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-gdpr__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto;
    background-color: #000;
    border-radius: 8px;
}

.page-gdpr__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves like a block element */
    max-width: 100%; /* Responsive */
    filter: none !important; /* Prohibit any filter effects */
}

.page-gdpr__cta-buttons--video {
    margin-top: 20px;
}

/* Copyright Info */
.page-gdpr__copyright-info {
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    color: #555555;
    background-color: #f8f8f8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-gdpr__main-title {
        font-size: 2em;
    }

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

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

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

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important; /* Enforce mobile width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Content area images must be responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__image-wrapper,
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent overflow */
        overflow: hidden !important;
    }

    .page-gdpr__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile video section */
    }

    .page-gdpr__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    .page-gdpr__faq-question,
    .page-gdpr__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}