/* style/gdpr.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-font-color: #FFFF00;
    --body-bg: #0a0a0a; /* From shared.css body background */
}

.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--body-bg);
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

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

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-gdpr__content-section,
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__protection-section,
.page-gdpr__cookies-section,
.page-gdpr__dpo-section,
.page-gdpr__updates-section,
.page-gdpr__cta-section {
    padding: 60px 0;
}

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

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

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

.page-gdpr__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Article Content with Image */
.page-gdpr__article-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
}

.page-gdpr__article-content p {
    flex: 1;
    min-width: 300px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-gdpr__image {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-gdpr__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    width: 400px;
    height: 300px;
}

.page-gdpr__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    width: 400px;
    height: 300px;
}

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

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--text-on-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-gdpr__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-gdpr__card p {
    font-size: 1em;
    line-height: 1.6;
}

/* Protection Section Specific */
.page-gdpr__grid--protection {
    text-align: center;
}

.page-gdpr__protection-item {
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-on-dark);
}

.page-gdpr__protection-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-gdpr__protection-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

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

.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-out, padding 0.3s ease-out;
    background-color: var(--body-bg);
    color: var(--text-on-dark);
}

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

.page-gdpr__faq-answer p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Lists */
.page-gdpr__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-top: 20px;
    font-size: 1.05em;
}

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

/* DPO Contact Info */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
}

.page-gdpr__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-font-color);
    border: 2px solid var(--button-register-bg);
}

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

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

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

.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* Links */
.page-gdpr__link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: #005a2d;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-gdpr__hero-section {
        padding: 80px 20px;
        min-height: 300px;
    }

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

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

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

    .page-gdpr__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-gdpr__article-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-gdpr__image,
    .page-gdpr__image--right,
    .page-gdpr__image--left {
        float: none;
        margin: 0 auto 20px auto;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    .page-gdpr__card-title {
        font-size: 1.3em;
    }

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

    .page-gdpr__faq-answer {
        padding: 15px 20px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-gdpr__container,
    .page-gdpr__content-section,
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__protection-section,
    .page-gdpr__cookies-section,
    .page-gdpr__dpo-section,
    .page-gdpr__updates-section,
    .page-gdpr__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; 
    }
}

/* Ensure all images within content area are at least 200px */
.page-gdpr__article-content img,
.page-gdpr__protection-item img {
    min-width: 200px;
    min-height: 200px;
}

/* No filter on images */
.page-gdpr img {
    filter: none;
}