/* style/gdpr.css */

/* --- Base Styles --- */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Default body background is white */
}

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

/* --- Header Offset --- */
/* Ensure the first content section accounts for the fixed header */
.page-gdpr__hero-banner {
    padding-top: var(--header-offset, 120px); /* Desktop default, overridden by shared.css for mobile */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

/* --- Sections --- */
.page-gdpr__section {
    padding: 60px 0;
}

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

.page-gdpr__sub-title {
    font-size: 24px;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* --- Hero Banner (Main Title & Intro) --- */
.page-gdpr__hero-banner {
    background: linear-gradient(135deg, #26A9E0, #3CBEF2); /* Gradient with brand primary color */
    color: #FFFFFF; /* White text on dark/colored background */
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.page-gdpr__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #FFFFFF;
}

.page-gdpr__intro-text {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* --- Buttons --- */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    text-align: center;
}

.page-gdpr__btn-primary {
    background-color: #EA7C07; /* Login color for primary action, high contrast */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-gdpr__btn-primary:hover {
    background-color: #d16d06;
    border-color: #d16d06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text on hero banner's dark background */
    border: 2px solid #FFFFFF;
}

.page-gdpr__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Content Area --- */
.page-gdpr__content-area {
    padding: 40px 20px;
    line-height: 1.8;
}

.page-gdpr__text-block p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #333333;
}

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

.page-gdpr__list li {
    margin-bottom: 10px;
    font-size: 17px;
    color: #333333;
}

.page-gdpr__list li strong {
    color: #000000;
}

.page-gdpr__text-block a {
    color: #26A9E0; /* Primary brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__text-block a:hover {
    color: #1a7fb2;
}

/* --- Image Styles --- */
.page-gdpr__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* --- Background Colors for Sections --- */
.page-gdpr__dark-section {
    background-color: #26A9E0; /* Primary brand color for dark sections */
    color: #FFFFFF;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title {
    color: #FFFFFF;
}

.page-gdpr__dark-section .page-gdpr__text-block p,
.page-gdpr__dark-section .page-gdpr__list li {
    color: #f0f0f0;
}

.page-gdpr__dark-section .page-gdpr__text-block a {
    color: #FFFFFF;
}

.page-gdpr__light-bg {
    background-color: #f9f9f9; /* Light grey background */
    color: #333333;
}

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

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #FFFFFF; /* Ensure FAQ items have white background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* ⚠️ Using !important ensures priority, value is large enough */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    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: #26A9E0; /* Highlight active question */
}

.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: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevents h3 from blocking click event */
    color: #333333;
}

.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; /* Prevents icon from blocking click event */
    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 for active toggle */
    transform: rotate(180deg); /* Rotate for minus sign effect */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 42px;
    }

    .page-gdpr__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-banner {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__main-title {
        font-size: 32px;
    }

    .page-gdpr__intro-text {
        font-size: 16px;
    }

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

    .page-gdpr__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: 20px;
    }

    .page-gdpr__text-block p,
    .page-gdpr__list li {
        font-size: 16px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-gdpr__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0;
        margin-right: 0;
        border-radius: 4px;
    }
    
    .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 16px;
        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;
    }

    /* Prevent horizontal scrolling */
    .page-gdpr {
        overflow-x: hidden;
    }
    .page-gdpr__section,
    .page-gdpr__container,
    .page-gdpr__content-area,
    .page-gdpr__hero-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 28px;
    }

    .page-gdpr__section-title {
        font-size: 24px;
    }
    .page-gdpr__text-block p,
    .page-gdpr__list li {
        font-size: 15px;
    }
}