/* style/gdpr.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0;
    --button-login: #EA7C07;
    --border-light: #e0e0e0;
}

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

.page-gdpr__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--text-light);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-gdpr__hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-gdpr__content-section {
    padding: 60px 20px;
}

.page-gdpr__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-gdpr__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: var(--text-light);
}

.page-gdpr__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-gdpr__dark-section .page-gdpr__text-block {
    color: rgba(255, 255, 255, 0.85);
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.page-gdpr__dark-section .page-gdpr__list-item {
    color: rgba(255, 255, 255, 0.85);
}

.page-gdpr__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gdpr__dark-section .page-gdpr__inline-link {
    color: var(--secondary-color);
}

.page-gdpr__inline-link:hover {
    text-decoration: none;
}

.page-gdpr__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-gdpr__image-wrapper--center {
    text-align: center;
}

.page-gdpr__image-wrapper--left {
    float: left;
    margin-right: 30px;
    max-width: 400px;
}

.page-gdpr__image-wrapper--right {
    float: right;
    margin-left: 30px;
    max-width: 400px;
}

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

.page-gdpr__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

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

.page-gdpr__dark-section .page-gdpr__btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.page-gdpr__dark-section .page-gdpr__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-gdpr__contact-info {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

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

.page-gdpr__faq-section {
    padding: 60px 20px;
}

.page-gdpr__faq-list {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-question::marker {
    display: none;
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: var(--text-dark);
}

.page-gdpr__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−';
}

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
}

/* Clearfix for floated images */
.page-gdpr__content-section::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Responsive Styles --- */

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

    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

    .page-gdpr__hero-image-wrapper {
        margin-top: 15px;
    }

    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr__content-section {
        padding: 40px 15px;
    }

    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-gdpr__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-gdpr__text-block,
    .page-gdpr__list-item {
        font-size: 1rem;
    }

    .page-gdpr__image-wrapper {
        float: none;
        margin: 20px auto;
        max-width: 100%;
    }

    .page-gdpr__image-wrapper--left,
    .page-gdpr__image-wrapper--right {
        float: none;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .page-gdpr__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr__button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-gdpr__faq-toggle {
        font-size: 1.3rem;
    }

    .page-gdpr__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* Ensure all images within .page-gdpr are responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* All containers that might hold images or cause overflow */
    .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;
        overflow-x: hidden;
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-gdpr__hero-section {
        padding-bottom: 30px;
    }

    .page-gdpr__hero-image-wrapper {
        max-width: 90%;
    }

    .page-gdpr__image-wrapper--left,
    .page-gdpr__image-wrapper--right {
        float: none;
        margin-left: auto;
        margin-right: auto;
        max-width: 80%;
    }

    .page-gdpr__button-group {
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        padding: 12px 24px;
    }
}