/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is from shared.css */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #1a1a2e); /* Blend with body bg */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-gdpr__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-gdpr__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Slightly transparent to let background color show */
}

/* General Section Styles */
.page-gdpr__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from parent section */
}

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

/* Light Background Sections */
.page-gdpr__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-gdpr__dark-bg {
    background-color: #1a1a2e; /* Match body background */
    color: #ffffff;
    padding: 60px 0;
}
.page-gdpr__dark-bg .page-gdpr__section-title {
    color: #26A9E0; /* Still use brand color for titles */
}


/* Principles Section */
.page-gdpr__principles-section {
    padding: 60px 0;
}

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

.page-gdpr__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

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

.page-gdpr__right-item {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gdpr__right-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

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

.page-gdpr__right-description {
    font-size: 1em;
    color: #555555;
}

/* Security Section */
.page-gdpr__security-section {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 60px 0;
}

.page-gdpr__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-gdpr__security-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-gdpr__security-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-gdpr__security-heading {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-gdpr__security-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
}

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

.page-gdpr__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Ensure text is dark on light background */
}

.page-gdpr__faq-item details {
    border: none;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf7fc; /* Lighter background for question */
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Remove default marker */
}
.page-gdpr__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

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

.page-gdpr__faq-qtext {
    flex-grow: 1;
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

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

/* Contact CTA Section */
.page-gdpr__contact-cta {
    text-align: center;
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}
.page-gdpr__contact-cta .page-gdpr__section-title {
    color: #26A9E0;
}
.page-gdpr__contact-cta .page-gdpr__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-gdpr__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-gdpr__btn-primary:hover {
    background-color: #1e87bb;
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-gdpr__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-gdpr__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__card-title,
    .page-gdpr__right-title,
    .page-gdpr__security-heading {
        font-size: 1.3em;
    }
    .page-gdpr__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 0 15px !important; /* Mobile padding */
    }

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

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

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

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

    .page-gdpr__paragraph {
        font-size: 0.95em !important;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Maintain min size */
        min-height: 200px !important; /* Maintain min size */
    }
    
    /* Ensure image containers are also responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__grid,
    .page-gdpr__rights-list,
    .page-gdpr__security-list,
    .page-gdpr__faq-list,
    .page-gdpr__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are already on .page-gdpr__container */
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness (if any) */
    .page-gdpr video,
    .page-gdpr__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-gdpr__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Button responsiveness */
    .page-gdpr__cta-button,
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .page-gdpr a[class*="button"],
    .page-gdpr a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Full width buttons */
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text to wrap */
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Stack vertically */
        padding-left: 15px; /* Add some padding for text within button */
        padding-right: 15px;
    }
    .page-gdpr__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-gdpr__card,
    .page-gdpr__right-item,
    .page-gdpr__security-item {
        padding: 20px !important;
    }

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

    .page-gdpr__faq-answer {
        padding: 15px 20px !important;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em !important;
    }
    .page-gdpr__section-title {
        font-size: 1.5em !important;
    }
    .page-gdpr__hero-section,
    .page-gdpr__content-area,
    .page-gdpr__principles-section,
    .page-gdpr__security-section,
    .page-gdpr__faq-section,
    .page-gdpr__contact-cta {
        padding: 40px 0 !important;
    }
}