/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for contrast checks */
}

.page-gdpr__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Primary color for titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__main-title {
    font-size: 3.2em;
    color: #FFFFFF; /* White text for hero section */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: 1.2em;
    color: #f0f0f0; /* Slightly off-white for description */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.page-gdpr__list {
    list-style: disc inside;
    margin-bottom: 1em;
    padding-left: 20px;
}

.page-gdpr__list li {
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #26A9E0 0%, #007bff 100%); /* Blue gradient background for hero */
    overflow: hidden; /* Ensure content does not overflow */
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image if image is behind */
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    position: absolute; /* Position absolutely to allow content to overlay */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Send image to background */
    opacity: 0.2; /* Make background image subtle */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover; /* Cover the container */
    border-radius: 0; /* No border radius for background hero image */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2; /* Ensure text is above image */
    text-align: center;
    width: 100%;
    padding: 20px;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-gdpr__cta-button:hover {
    background: #d46a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image with text block layout */
.page-gdpr__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-gdpr__image-text-block--reversed {
    flex-direction: row-reverse;
}

.page-gdpr__image-text-block img {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.page-gdpr__text-content {
    flex: 1;
    max-width: 50%;
}

.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-gdpr__content-image--center {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

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

.page-gdpr__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Ensure text is dark on light card background */
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

/* Contact list */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-gdpr__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-right: 15px;
    margin-bottom: 15px; /* For mobile stacking */
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    background: #1e87c0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-gdpr__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
    background: #f0f8ff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-gdpr__faq-container {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9; /* Light background for answer */
    color: #333333; /* Dark text for answer */
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-gdpr__faq-item.active .page-gdpr__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
    background: #f5f5f5;
}

.page-gdpr__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-gdpr__faq-question:active {
    background: #eeeeee;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333; /* Dark text for question */
}

.page-gdpr__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: #26A9E0; /* Primary color when active */
    transform: rotate(45deg); /* Plus to X for active state */
}

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

    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-gdpr__description {
        font-size: 1em;
    }

    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__section {
        padding: 40px 15px;
    }

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

    .page-gdpr p, .page-gdpr__list li {
        font-size: 1em;
    }

    .page-gdpr__image-text-block {
        flex-direction: column;
        gap: 20px;
    }

    .page-gdpr__image-text-block img,
    .page-gdpr__text-content {
        max-width: 100%;
        width: 100%;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

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

    .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-right: 0;
        margin-bottom: 10px;
    }

    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-gdpr__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-gdpr__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important; /* Ensure padding/border is included in width */
    }
    
    .page-gdpr__hero-image img {
        width: 100% !important;
        height: 100% !important; /* Hero image needs to cover its container */
    }

    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__image-text-block,
    .page-gdpr__text-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}