/* style/gdpr.css */

/* Custom CSS Variables for this page */
:root {
    --primary-color: #26A9E0; /* Main brand color */
    --secondary-color: #FFFFFF; /* Accent color, often used for backgrounds */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light-gray: #f8f8f8;
    --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Ensure body background is light for dark text */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-gdpr__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-gdpr__light-bg {
    background-color: var(--bg-light-gray);
    color: var(--text-dark);
}

.page-gdpr__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section h1,
.page-gdpr__dark-section h2,
.page-gdpr__dark-section h3,
.page-gdpr__dark-section p,
.page-gdpr__dark-section a {
    color: var(--text-light);
}

.page-gdpr__sub-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-gdpr p {
    margin-bottom: 15px;
    font-size: 17px;
}

.page-gdpr__highlight {
    font-weight: bold;
    color: var(--primary-color); /* Emphasize with brand color */
}

.page-gdpr__dark-section .page-gdpr__highlight {
    color: var(--secondary-color); /* White on dark background */
}

.page-gdpr a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr a:hover {
    color: #1a7bb7; /* Slightly darker primary color */
    text-decoration: underline;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden; /* Ensure content doesn't spill */
}

.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 text is above image if layered */
}

.page-gdpr__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-gdpr__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-gdpr__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light); /* White text on dark hero background */
}

.page-gdpr__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light); /* White text on dark hero background */
}

.page-gdpr__hero-description a {
    color: var(--secondary-color); /* White link on dark background */
    text-decoration: underline;
}

.page-gdpr__hero-description a:hover {
    color: #e0e0e0;
}

.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: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-gdpr__cta-button:hover {
    background: #d46b00; /* Slightly darker orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image content 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);
    max-width: 800px; /* Example max-width for content images */
}

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

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

.page-gdpr__list strong {
    color: var(--primary-color);
}

.page-gdpr__dark-section .page-gdpr__list strong {
    color: var(--secondary-color);
}

/* Contact Info Card */
.page-gdpr__contact-info {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    text-align: center;
}

.page-gdpr__contact-info p {
    margin-bottom: 10px;
    font-size: 18px;
}

.page-gdpr__contact-info a {
    color: var(--primary-color);
    font-weight: 600;
}

.page-gdpr__contact-info img {
    max-width: 400px;
    margin-top: 20px;
    border-radius: 8px;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 20px;
    background-color: var(--bg-light-gray); /* Light background for FAQ */
    color: var(--text-dark);
}

.page-gdpr__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ item styles */
.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* FAQ default state - answer 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 20px; /* Adjust padding for consistency */
    opacity: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* ⚠️ Use!important, value large enough for any content */
    padding: 20px !important; /* Adjust padding for consistency */
    opacity: 1;
    background: #f9f9f9; /* Slightly different background for expanded answer */
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.page-gdpr__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

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

/* Question title style */
.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--primary-color);
}

/* Toggle icon */
.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; /* Prevent 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: var(--primary-color);
    transform: rotate(180deg); /* Rotate for minus sign effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-image img {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

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

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

    .page-gdpr__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    /* Hero Section Mobile */
    .page-gdpr__hero-section {
        padding: 60px 15px;
    }

    .page-gdpr__hero-image {
        margin-bottom: 20px;
    }

    .page-gdpr__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }

    .page-gdpr__hero-content {
        padding: 0 10px;
    }

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

    .page-gdpr__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    /* General image responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-gdpr__image-content {
        margin: 20px auto;
        border-radius: 4px;
    }

    /* Containers for images and buttons */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-container,
    .page-gdpr__faq-container,
    .page-gdpr__contact-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-gdpr__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gdpr__faq-question h3 {
        font-size: 16px;
        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 no filter on images */
.page-gdpr img {
    filter: none !important;
}