/* style/gdpr.css */

/* General Styles for the GDPR Page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming shared.css sets body to light or white */
}

/* Container for content sections */
.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;
    color: #ffffff; /* Text color for dark background */
    background-color: #017439; /* Brand primary color */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-gdpr__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Use specified font color for titles in hero */
}

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

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 0;
}

.page-gdpr__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.page-gdpr__list,
.page-gdpr__ordered-list {
    list-style-type: disc;
    margin: 20px 0;
    padding-left: 40px;
}

.page-gdpr__ordered-list {
    list-style-type: decimal;
}

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

/* Links */
.page-gdpr__link {
    color: #FFFF00; /* Link color for dark background */
    text-decoration: underline;
}
.page-gdpr__light-bg .page-gdpr__link {
    color: #017439; /* Link color for light background */
}

.page-gdpr__link:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.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: #017439;
}

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

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

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

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

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

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    user-select: none;
    color: #FFFF00; /* FAQ question color */
    position: relative;
    list-style: none; /* Hide default marker */
}

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

.page-gdpr__faq-question {
    flex-grow: 1;
}

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

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0; /* Lighter text for answer */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.2em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__contact-item,
    .page-gdpr__faq-item summary {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
    .page-gdpr__content-section,
    .page-gdpr__faq-section {
        padding: 40px 0;
    }
    .page-gdpr__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    /* Images */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__image-container, /* If any explicit image container */
    .page-gdpr__content-section,
    .page-gdpr__hero-section,
    .page-gdpr__faq-section,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons */
    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        align-items: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button container */
        overflow: hidden !important;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-right: 0 !important; /* Remove right margin for stacking */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ */
    .page-gdpr__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.5em;
    }
    .page-gdpr__section-title {
        font-size: 1.3em;
    }
    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__contact-item,
    .page-gdpr__faq-item summary {
        font-size: 0.95em;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        padding: 10px 20px;
    }
}