/* style/gdpr.css */

/* Base styles for the page-gdpr scope */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Body background is white */
}

/* Container for consistent content width */
.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section titles */
.page-gdpr__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-gdpr__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, will switch to row for desktop */
    align-items: center;
    gap: 40px;
    padding: 10px 20px 60px 20px; /* Small top padding, then generous bottom padding */
    background: linear-gradient(135deg, #e0ffe0, #ffffff); /* Light gradient background */
    color: #333333;
}

.page-gdpr__hero-content {
    text-align: center;
    max-width: 800px;
}

.page-gdpr__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-gdpr__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555555;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover, mobile will be contain */
}

/* Buttons */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-gdpr__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* Dark Section styling */
.page-gdpr__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 20px;
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-intro {
    color: #f0f0f0;
}

.page-gdpr__dark-section .page-gdpr__card-title {
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__card-text {
    color: #f0f0f0;
}

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

.page-gdpr__principle-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-gdpr__principle-card:hover {
    transform: translateY(-5px);
}

.page-gdpr__principle-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Rights Section */
.page-gdpr__rights-section {
    padding: 60px 20px;
    background-color: #f8fcf8; /* Very light green background */
    color: #333333;
}

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

.page-gdpr__right-item {
    background-color: #ffffff;
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__right-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

.page-gdpr__data-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__data-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-gdpr__security-list li {
    background-color: #f0fff0; /* Lightest green */
    border-left: 5px solid #017439;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-gdpr__security-feature-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 20px;
    background-color: #f8fcf8; /* Light background for FAQ */
}

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

.page-gdpr__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0fff0; /* Light green background for question */
    list-style: none; /* Hide default details marker */
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #017439;
}

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

/* Contact Section */
.page-gdpr__contact-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #017439; /* Dark section */
    color: #ffffff;
}

.page-gdpr__contact-section .page-gdpr__section-title {
    color: #ffffff;
}

.page-gdpr__contact-section .page-gdpr__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-gdpr__contact-section .page-gdpr__cta-button {
    margin: 0 10px 20px 10px; /* Spacing for multiple buttons */
}

/* Image responsive base */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 20px 30px;
    }

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

    .page-gdpr__section-intro {
        font-size: 1em;
    }

    .page-gdpr__hero-section {
        gap: 30px;
        padding: 10px 30px 50px 30px;
    }

    .page-gdpr__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-gdpr__description {
        font-size: 1.1em;
    }

    .page-gdpr__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__data-processing-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-gdpr__principle-card,
    .page-gdpr__data-card {
        padding: 25px;
    }

    .page-gdpr__right-item,
    .page-gdpr__security-list li {
        padding: 20px;
    }

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

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

/* Mobile screens */
@media (max-width: 768px) {
    /* General content padding */
    .page-gdpr__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-gdpr__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Hero Section - force column for mobile */
    .page-gdpr__hero-section {
        flex-direction: column !important;
        padding: 10px 15px 40px 15px !important; /* Small top padding, then generous bottom padding */
        gap: 20px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjust H1 for smaller screens */
    }

    .page-gdpr__description {
        font-size: 1em;
    }

    .page-gdpr__hero-image {
        object-fit: contain !important; /* Ensure image is fully visible, not cropped */
        aspect-ratio: unset !important; /* Remove aspect ratio if set */
        max-height: none !important; /* Remove max height if set */
    }

    /* Buttons - ensure full width and wrapping */
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important; /* Remove horizontal margins */
        margin-right: 0 !important;
    }
    
    .page-gdpr__contact-section .page-gdpr__cta-button {
        margin-bottom: 10px !important; /* Adjust bottom margin for stacked buttons */
    }

    /* Button containers */
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        display: flex !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    /* Image responsiveness for all images within .page-gdpr */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All sections and cards to ensure no overflow */
    .page-gdpr__principles-section,
    .page-gdpr__rights-section,
    .page-gdpr__data-processing-section,
    .page-gdpr__security-section,
    .page-gdpr__faq-section,
    .page-gdpr__contact-section {
        padding: 40px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-gdpr__principle-card,
    .page-gdpr__right-item,
    .page-gdpr__data-card,
    .page-gdpr__security-list li,
    .page-gdpr__faq-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 20px !important;
    }

    /* Grid layouts for mobile */
    .page-gdpr__principles-grid,
    .page-gdpr__rights-list,
    .page-gdpr__data-processing-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }

    .page-gdpr__principle-icon,
    .page-gdpr__data-icon {
        width: 60px !important;
        height: 60px !important;
    }

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

    .page-gdpr__faq-answer {
        font-size: 0.95em;
        padding: 15px 18px;
    }
}