/* 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: #121212; /* Inherited from body or default for dark theme */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-gdpr__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-gdpr__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for registration */
    color: #FFFF00; /* Custom color for registration font */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

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

.page-gdpr__hero-image {
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__commitment-section,
.page-gdpr__dpo-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-gdpr__dark-section {
    background-color: #0d0d0d; /* Slightly lighter than body background for contrast */
    color: #ffffff;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #ffffff; /* Ensure contrast on dark backgrounds */
    font-weight: bold;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Lighter text for readability on dark background */
}

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

.page-gdpr__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    min-height: 200px; /* Ensure minimum height for cards */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__light-bg {
    background: #222222; /* Specific light background for cards on dark sections */
    color: #ffffff;
}

.page-gdpr__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #017439; /* Primary color for card titles */
    font-weight: bold;
}

.page-gdpr__card p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-gdpr__image-content {
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* User Rights List */
.page-gdpr__rights-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-gdpr__list-item {
    background: rgba(255, 255, 255, 0.05); /* Lighter background for list items */
    padding: 20px 30px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #017439; /* Accent border */
}

.page-gdpr__list-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
}

.page-gdpr__list-item p {
    color: #f0f0f0;
}

/* DPO Section */
.page-gdpr__dpo-section {
    background-color: #1a1a1a; /* Another dark shade for variety */
    color: #ffffff;
}

.page-gdpr__contact-info {
    font-size: 1.1em;
    margin-top: 30px;
}

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

.page-gdpr__contact-link {
    color: #017439; /* Primary brand color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: #02a050; /* Slightly lighter green on hover */
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: #0d0d0d; /* Dark background for FAQ */
    color: #ffffff;
}

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

.page-gdpr__faq-item {
    background: #222222; /* Card background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: #017439; /* Primary color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* Remove default marker for details summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-gdpr__faq-answer {
    padding: 20px 30px;
    font-size: 1em;
    color: #f0f0f0;
    background-color: #222222;
}

/* CTA Section */
.page-gdpr__cta-section {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 80px 20px;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-gdpr__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Primary brand color for text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    font-size: 1.1em;
}

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c; /* Darker green on hover */
}

/* Image specific CSS to ensure size and no filter */
.page-gdpr img {
    filter: none; /* Ensure no CSS filter is applied */
    -webkit-filter: none;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.4em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__principles-grid,
    .page-gdpr__commitment-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

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

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

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

    .page-gdpr__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-gdpr__principles-grid,
    .page-gdpr__commitment-grid {
        grid-template-columns: 1fr;
    }

    .page-gdpr__card {
        padding: 25px;
        min-height: auto;
    }

    .page-gdpr__card-title {
        font-size: 1.2em;
    }

    .page-gdpr__rights-list,
    .page-gdpr__faq-list {
        margin: 30px auto;
    }

    .page-gdpr__list-item {
        padding: 18px 25px;
    }

    .page-gdpr__list-title {
        font-size: 1.1em;
    }

    .page-gdpr__faq-question {
        padding: 18px 25px;
        font-size: 1.1em;
    }

    .page-gdpr__faq-answer {
        padding: 18px 25px;
    }

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

    .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;
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers do not cause horizontal scroll */
    .page-gdpr__container,
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__commitment-section,
    .page-gdpr__dpo-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-gdpr__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.4em;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        font-size: 1em;
        padding: 12px 15px;
    }
}