/* style/gdpr.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #28a745;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --card-bg-light: #ffffff;
    --border-color-light: #e0e0e0;
    --button-hover-dark: #0056b3;
    --button-hover-light: #218838;
}

.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared.css body, but explicitly set for context */
}

/* Fixed navigation bar spacing */
.page-gdpr__hero-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3); /* Darker blue gradient for hero */
    color: var(--text-on-dark);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.page-gdpr__hero-image {
    width: 100%;
    max-width: 800px; /* Constrain image width for better presentation */
    margin-bottom: 30px;
}

.page-gdpr__hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

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

.page-gdpr__hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-on-dark);
}

.page-gdpr__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

.page-gdpr__hero-link {
    color: #f0f8ff; /* Lighter color for links on dark background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__hero-link:hover {
    color: #a0dfff;
}

.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-on-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-gdpr__cta-button:hover {
    background: var(--button-hover-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-link {
    color: var(--text-on-dark);
    text-decoration: none;
}

.page-gdpr__cta-link:hover {
    text-decoration: underline;
}

.page-gdpr__main-content-section {
    padding: 60px 20px;
    background-color: #121212; /* Ensure consistent dark background */
    color: var(--text-on-dark);
}

.page-gdpr__content-container {
    max-width: 1000px; /* Content width slightly narrower for readability */
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg-light); /* Light background for content cards */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-light); /* Dark text on light background */
}

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

.page-gdpr__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-on-light);
}

.page-gdpr__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__text-link:hover {
    color: var(--button-hover-dark);
}

.page-gdpr__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-on-light);
}

.page-gdpr__list-item {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-on-light);
}

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

.page-gdpr__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

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

.page-gdpr__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-gdpr__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #218838);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--large:hover {
    background: linear-gradient(135deg, #218838, #1a6f2f);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-gdpr__faq-section {
    padding: 60px 20px;
    background-color: #121212; /* Ensure consistent dark background */
    color: var(--text-on-dark);
}

.page-gdpr__faq-list {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg-light); /* Light background for FAQ items */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9; /* Slightly darker background for answer */
    color: var(--text-on-light); /* Dark text on light background */
    font-size: 16px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg-light);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-on-light); /* Dark text on light background */
}

.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;
    color: var(--primary-color); /* Primary color for question titles */
}

.page-gdpr__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

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

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

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

    .page-gdpr__content-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: 140px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
    }

    .page-gdpr__hero-title {
        font-size: 28px;
    }

    .page-gdpr__hero-description {
        font-size: 15px;
    }

    .page-gdpr__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-gdpr__main-content-section, .page-gdpr__faq-section {
        padding: 40px 15px;
    }

    .page-gdpr__content-container {
        padding: 25px;
        border-radius: 8px;
    }

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

    .page-gdpr__text-block, .page-gdpr__list-item, .page-gdpr__faq-answer {
        font-size: 15px;
    }

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

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

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

    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
    
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gdpr__hero-image,
    .page-gdpr__image-wrapper,
    .page-gdpr__content-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}

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

    .page-gdpr__hero-description {
        font-size: 14px;
    }

    .page-gdpr__cta-button--large {
        padding: 10px 25px;
        font-size: 16px;
    }

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

    .page-gdpr__text-block, .page-gdpr__list-item, .page-gdpr__faq-answer {
        font-size: 14px;
    }

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

    .page-gdpr__faq-question h3 {
        font-size: 15px;
    }
    .page-gdpr__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}