/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for content area */
}

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

/* Section styling */
.page-gdpr__hero-section,
.page-gdpr__commitment-section,
.page-gdpr__rights-section,
.page-gdpr__dpo-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-cta {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for dark backgrounds */
    padding: 60px 0;
    position: relative;
}

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

.page-gdpr__content-section,
.page-gdpr__principles-section,
.page-gdpr__security-section,
.page-gdpr__transfer-section,
.page-gdpr__faq-section {
    background-color: #ffffff; /* Auxiliary brand color for light sections */
    color: #333333; /* Dark text for light backgrounds */
    padding: 60px 0;
}

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

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Image styling */
.page-gdpr__hero-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-gdpr__hero-image,
.page-gdpr__commitment-image,
.page-gdpr__principles-image,
.page-gdpr__security-image,
.page-gdpr__transfer-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Grid for commitment section */
.page-gdpr__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-gdpr__commitment-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__commitment-heading,
.page-gdpr__principles-heading,
.page-gdpr__rights-heading,
.page-gdpr__security-heading,
.page-gdpr__dpo-info h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: inherit;
}

/* List styling */
.page-gdpr__principles-list,
.page-gdpr__rights-list,
.page-gdpr__security-list,
.page-gdpr__dpo-responsibilities {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gdpr__principles-item,
.page-gdpr__rights-item,
.page-gdpr__security-item {
    background-color: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-gdpr__rights-list .page-gdpr__rights-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-gdpr__rights-list .page-gdpr__rights-heading {
    color: #ffffff;
}

.page-gdpr__dpo-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    color: #ffffff;
}

.page-gdpr__dpo-responsibilities li {
    margin-bottom: 10px;
    list-style: disc;
    margin-left: 20px;
}

/* Call to action buttons */
.page-gdpr__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.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;
    border: 2px solid #017439;
}

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

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 40px;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-gdpr__faq-answer {
    padding: 20px;
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

/* Details tag specific styles for native expand/collapse */
.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: #f0f0f0;
    border-bottom: none;
}

.page-gdpr__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

/* Links within content */
.page-gdpr a {
    color: #017439;
    text-decoration: underline;
}

.page-gdpr a:hover {
    color: #005a2e;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }

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

    .page-gdpr__commitment-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-gdpr__hero-section,
    .page-gdpr__commitment-section,
    .page-gdpr__rights-section,
    .page-gdpr__dpo-section,
    .page-gdpr__cookies-section,
    .page-gdpr__contact-cta,
    .page-gdpr__content-section,
    .page-gdpr__principles-section,
    .page-gdpr__security-section,
    .page-gdpr__transfer-section,
    .page-gdpr__faq-section {
        padding: 40px 0;
    }

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

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

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

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

    .page-gdpr__text-block {
        font-size: 1em;
    }

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

    .page-gdpr__commitment-item,
    .page-gdpr__principles-item,
    .page-gdpr__rights-item,
    .page-gdpr__security-item,
    .page-gdpr__faq-item {
        padding: 15px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-gdpr__cta-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Images responsiveness for mobile */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}