/* style/gdpr.css */

/* Base Styles for GDPR Page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #121212, so light text */
    background-color: #121212; /* Inherit from shared or explicitly set for safety */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    text-align: center;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff; /* White text for brand color background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden; /* Prevent image overflow */
}

.page-gdpr__hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add some padding for smaller screens */
}

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

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

.page-gdpr__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* CTA Buttons in Hero */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for button max-width */
    max-width: 100%; /* Ensure button adapts */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    text-align: center;
}

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

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

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

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

/* Content Area */
.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #121212; /* Body background color */
    color: #ffffff; /* Light text for dark background */
    box-sizing: border-box;
}

.page-gdpr__container {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand color for titles */
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: 1.6em;
    color: #ffffff; /* White text for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-gdpr__paragraph a {
    color: #26A9E0; /* Link color */
    text-decoration: none;
}

.page-gdpr__paragraph a:hover {
    text-decoration: underline;
}

.page-gdpr__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

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

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

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

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for dark card background */
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: #e0e0e0;
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item.active {
    background-color: rgba(255, 255, 255, 0.15); /* Even lighter when active */
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    color: #26A9E0;
}

.page-gdpr__faq-title {
    margin: 0;
    color: inherit; /* Inherit from question for hover effect */
    font-size: 1em; /* Adjust to fit parent */
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0; /* Brand color for toggle icon */
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an X */
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #e0e0e0;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 20px;
}

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

    .page-gdpr__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-gdpr__hero-title {
        font-size: 2.2em;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100%; /* Full width buttons on mobile */
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-gdpr__content-area,
    .page-gdpr__hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

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

    .page-gdpr__paragraph,
    .page-gdpr__list-item,
    .page-gdpr__card-text {
        font-size: 0.95em;
    }

    .page-gdpr__card-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-gdpr__faq-answer {
        padding: 0 20px;
    }

    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure containers with images are also responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}

/* General image and video rules (non-mobile specific, but ensures base responsiveness) */
.page-gdpr img,
.page-gdpr video {
    max-width: 100%;
    height: auto;
    display: block;
}

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