/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f4f4f4; /* From shared.css body background */
}

/* Fixed header offset - applied to the main content area or first section */
.page-gdpr {
    padding-top: var(--header-offset, 120px); /* Desktop default */
}

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

.page-gdpr__container--center {
    text-align: center;
}

.page-gdpr__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-gdpr__section--intro,
.page-gdpr__section--rights,
.page-gdpr__section--cookies,
.page-gdpr__section--faq {
    background-color: #ffffff;
}

.page-gdpr__section--principles,
.page-gdpr__section--security,
.page-gdpr__section--contact,
.page-gdpr__section--cta {
    background-color: #003366; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-gdpr__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-gdpr__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

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

.page-gdpr a {
    color: #003366;
    text-decoration: underline;
}

.page-gdpr a:hover {
    color: #FFCC00;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding-top handled by .page-gdpr */
    background: linear-gradient(135deg, #003366, #1a4d7a); /* Dark gradient for hero */
    color: #ffffff;
}

.page-gdpr__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.page-gdpr__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFCC00; /* Auxiliary color for emphasis */
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-gdpr__cta-button--register {
    background: #FFCC00;
    color: #003366;
}

.page-gdpr__cta-button--register:hover {
    background: #e6b800;
}

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

.page-gdpr__card {
    background-color: #1a4d7a; /* Slightly lighter dark blue for cards */
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-gdpr__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #FFCC00; /* Auxiliary color for card titles */
}

.page-gdpr__card p {
    font-size: 15px;
    margin-bottom: 0;
}

.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.page-gdpr__list li strong {
    color: #003366;
}
.page-gdpr__section--principles .page-gdpr__list li strong {
    color: #FFCC00; /* Adjust for dark background */
}
.page-gdpr__section--security .page-gdpr__list li strong {
    color: #FFCC00; /* Adjust for dark background */
}

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

/* FAQ styles */
.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px 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 15px;
    opacity: 0;
}

/* 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 ensure priority, value large enough to accommodate any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    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: #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-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

/* Question title style */
.page-gdpr__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Slightly larger for readability */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click events */
    color: #003366; /* Brand color for questions */
}

/* 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 events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: #FFCC00; /* Auxiliary color when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 42px;
    }
    .page-gdpr__hero-description {
        font-size: 18px;
    }
    .page-gdpr__section-title {
        font-size: 32px;
    }
    .page-gdpr__card-title {
        font-size: 20px;
    }
}

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

    .page-gdpr__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }

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

    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }

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

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

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

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

    .page-gdpr__grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 18px;
    }

    .page-gdpr__list {
        margin-left: 15px;
    }

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ mobile */
    .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;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 28px;
    }
    .page-gdpr__hero-description {
        font-size: 15px;
    }
    .page-gdpr__section-title {
        font-size: 24px;
    }
    .page-gdpr__cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
}