/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Fixed header offset - apply to the first main content section if body doesn't handle it */
.page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* General container for content sections */
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-gdpr__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-gdpr__main-title {
    font-size: 2.8em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-gdpr__text-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Background color variants for sections */
.page-gdpr__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-gdpr__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-gdpr__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

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

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

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color text */
    border: 2px solid #26A9E0;
}

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b8;
    border-color: #1e87b8;
}

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

/* Grid layout for content */
.page-gdpr__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-gdpr__grid-item p {
    margin-bottom: 15px;
}

/* Features Grid */
.page-gdpr__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-gdpr__feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    object-fit: cover; /* Ensure image covers the circular area */
    background-color: #ffffff; /* White background for icons */
    padding: 10px;
}

.page-gdpr__feature-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-gdpr__feature-card p {
    color: #f0f0f0;
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* Rights Section */
.page-gdpr__rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__right-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-gdpr__right-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-gdpr__right-card p {
    color: #555555;
    flex-grow: 1;
}

/* Data Collection Section */
.page-gdpr__info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__info-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* White text for dark background */
}

.page-gdpr__info-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-gdpr__info-card p {
    color: #f0f0f0;
    flex-grow: 1;
}

/* Data Protection Section */
.page-gdpr__protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gdpr__protection-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-gdpr__protection-item .page-gdpr__image {
    margin-bottom: 20px;
}

.page-gdpr__protection-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

/* Contact Section */
.page-gdpr__contact-info {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
}

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

.page-gdpr__contact-link {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: #f0f0f0;
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensure content hides when collapsed */
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-gdpr__faq-question:hover {
    background-color: #f0f0f0;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #555555;
    transition: transform 0.3s ease;
}

/* For details tag, the toggle is handled by JS in this case to ensure consistent +/- */
.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(0deg); /* No rotation, just change text to '-' */
}

.page-gdpr__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-gdpr__faq-answer p {
    margin-bottom: 10px;
}

/* Call to Action Section */
.page-gdpr__cta-section {
    padding: 60px 20px;
    text-align: center;
}

.page-gdpr__cta-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-gdpr__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Design --- */

/* Mobile-first approach, so these are overrides for larger screens */
@media (min-width: 769px) {
    .page-gdpr__main-title {
        font-size: 3.5em;
    }
    .page-gdpr__section-title {
        font-size: 2.5em;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-gdpr__features-grid,
    .page-gdpr__rights-grid,
    .page-gdpr__info-cards,
    .page-gdpr__protection-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
    }
    .page-gdpr__cta-title {
        font-size: 3em;
    }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 15px; /* Smaller padding on mobile */
    }

    .page-gdpr__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 40px;
    }

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

    .page-gdpr__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-gdpr__grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 30px;
    }

    .page-gdpr__features-grid,
    .page-gdpr__rights-grid,
    .page-gdpr__info-cards,
    .page-gdpr__protection-grid {
        grid-template-columns: 1fr; /* Single column for all card grids */
        gap: 25px;
    }

    .page-gdpr__feature-card,
    .page-gdpr__right-card,
    .page-gdpr__info-card,
    .page-gdpr__protection-item {
        padding: 20px;
    }

    .page-gdpr__feature-title,
    .page-gdpr__right-title,
    .page-gdpr__info-title,
    .page-gdpr__protection-title {
        font-size: 1.3em;
    }

    .page-gdpr__hero-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 15px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-gdpr__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack CTA buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure all images are responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-gdpr__grid-item,
    .page-gdpr__feature-card,
    .page-gdpr__right-card,
    .page-gdpr__info-card,
    .page-gdpr__protection-item,
    .page-gdpr__container,
    .page-gdpr__section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* FAQ specific mobile adjustments */
    .page-gdpr__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-gdpr__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}