/* 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; /* Default body background */
}

/* Fixed header offset - assuming shared.css does not apply to body */
.page-gdpr {
    padding-top: var(--header-offset, 120px);
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-gdpr__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

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

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2; /* Subtle background image */
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-gdpr__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    background-color: #d46b00;
}

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

.page-gdpr__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* General Section Styles */
.page-gdpr__intro-section,
.page-gdpr__commitment-section,
.page-gdpr__data-collection-section,
.page-gdpr__user-rights-section,
.page-gdpr__security-section,
.page-gdpr__data-retention-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section {
    padding: 60px 0;
}

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

.page-gdpr__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

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

.page-gdpr__text-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-gdpr__text-link:hover {
    color: #1a7bbd;
}

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

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

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

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

.page-gdpr__card,
.page-gdpr__right-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-gdpr__card-title,
.page-gdpr__right-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-gdpr__card-text,
.page-gdpr__right-description {
    font-size: 1em;
    line-height: 1.6;
}

/* Contact Section */
.page-gdpr__contact-info {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #26A9E0; /* Question background */
    color: #ffffff; /* White text for question */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
    margin: 0;
    font-size: 1.2em;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fdfdfd; /* Answer background */
    color: #333333; /* Dark text for answer */
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or -) visually */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.5em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
}

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

    /* Hero Section */
    .page-gdpr__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-gdpr__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-gdpr__hero-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;
        padding: 12px 20px;
    }

    /* Section titles */
    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Text blocks */
    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__card-text,
    .page-gdpr__right-description {
        font-size: 0.95em;
    }

    /* Card Grid */
    .page-gdpr__card-grid,
    .page-gdpr__rights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Container padding for mobile */
    .page-gdpr__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All sections and containers containing images/buttons/videos must be constrained */
    .page-gdpr__hero-section,
    .page-gdpr__intro-section,
    .page-gdpr__commitment-section,
    .page-gdpr__data-collection-section,
    .page-gdpr__user-rights-section,
    .page-gdpr__security-section,
    .page-gdpr__data-retention-section,
    .page-gdpr__contact-section,
    .page-gdpr__faq-section,
    .page-gdpr__card,
    .page-gdpr__right-card,
    .page-gdpr__faq-item,
    .page-gdpr__contact-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ specific adjustments */
    .page-gdpr__faq-question {
        padding: 15px 20px;
    }
    .page-gdpr__faq-title {
        font-size: 1.1em;
    }
    .page-gdpr__faq-answer {
        padding: 0 20px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure no filter on images */
.page-gdpr img {
    filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-gdpr__hero-section img,
.page-gdpr__commitment-section img,
.page-gdpr__user-rights-section img,
.page-gdpr__security-section img,
.page-gdpr__contact-section img {
    min-width: 200px;
    min-height: 200px;
}