/* style/gdpr.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-on-dark-bg: #ffffff;
    --text-on-light-bg: #333333;
    --border-color: #e0e0e0;
}

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for the main page content, assuming a dark body background from shared.css */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-gdpr__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

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

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

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

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

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-on-dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-on-dark-bg);
}

.page-gdpr__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
    padding-top: 40px;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    color: inherit;
}

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

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.7;
}

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

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

.page-gdpr__image--centered {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background-color: var(--login-button-color); /* Using login button color for primary CTA */
    color: var(--register-login-font-color);
    border: 2px solid var(--login-button-color);
    margin: 10px;
}

.page-gdpr__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin: 10px;
}

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

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

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

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

.page-gdpr__faq-item {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__faq-item:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-on-light-bg);
    background-color: #e8e8e8;
    border-bottom: 1px solid var(--border-color);
}

.page-gdpr__faq-question:hover {
    color: var(--primary-color);
}

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.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;
    background-color: #ffffff;
    color: var(--text-on-light-bg);
}

.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;
    font-size: 1.1em;
    line-height: 1.6;
}

.page-gdpr__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 60px 15px 30px;
    }
    .page-gdpr__hero-title {
        font-size: 2.2em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-gdpr__sub-title {
        font-size: 1.3em;
    }
    .page-gdpr__text-block p,
    .page-gdpr__list-item,
    .page-gdpr__faq-answer p {
        font-size: 1em;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important;
        margin: 10px 0;
    }
    .page-gdpr__cta-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-gdpr__container {
        padding: 15px;
    }

    /* Image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }

    /* Containers with images/content */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile hero */
    }

    .page-gdpr__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-gdpr__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
    .page-gdpr__faq-question h3 {
        font-size: 1em;
    }
    .page-gdpr__faq-toggle {
        font-size: 1.5em;
    }
}