/* style/gdpr.css */

/* Custom properties for colors based on the provided palette */
:root {
    --page-gdpr-bg: #08160F; /* Background */
    --page-gdpr-card-bg: #11271B; /* Card BG */
    --page-gdpr-text-main: #F2FFF6; /* Text Main */
    --page-gdpr-text-secondary: #A7D9B8; /* Text Secondary */
    --page-gdpr-border: #2E7A4E; /* Border */
    --page-gdpr-glow: #57E38D; /* Glow */
    --page-gdpr-gold: #F2C14E; /* Gold */
    --page-gdpr-divider: #1E3A2A; /* Divider */
    --page-gdpr-deep-green: #0A4B2C; /* Deep Green */
    --page-gdpr-primary-color: #11A84E; /* Main color */
    --page-gdpr-secondary-color: #22C768; /* Auxiliary color */
    --page-gdpr-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
}

.page-gdpr {
    background-color: var(--page-gdpr-bg);
    color: var(--page-gdpr-text-main); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding to the bottom of the main content */
}

/* HERO Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically if space allows */
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    box-sizing: border-box;
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and content */
    border-radius: 8px;
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-gdpr__main-title {
    font-size: 2.8em; /* Use em/rem for responsiveness, avoid fixed px */
    font-weight: 700;
    color: var(--page-gdpr-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 100%; /* Ensure H1 doesn't overflow */
    box-sizing: border-box;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 30px;
    max-width: 100%; /* Ensure P doesn't overflow */
    box-sizing: border-box;
}

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

/* Section Titles */
.page-gdpr__section-title {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--page-gdpr-text-main);
    margin-bottom: 30px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}

/* Text Blocks */
.page-gdpr__text-block {
    font-size: 1em;
    color: var(--page-gdpr-text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Image content within sections */
.page-gdpr__image-content {
    width: 100%;
    max-width: 800px; /* Example max-width for content images */
    min-width: 200px; /* Minimum size requirement */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no CSS filters are applied */
}

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

.page-gdpr__right-card {
    background-color: var(--page-gdpr-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-gdpr-border);
    transition: transform 0.3s ease;
}

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

.page-gdpr__card-title {
    font-size: 1.4em;
    color: var(--page-gdpr-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-gdpr__card-text {
    font-size: 0.95em;
    color: var(--page-gdpr-text-secondary);
    line-height: 1.6;
}

/* Protection List */
.page-gdpr__protection-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-gdpr__list-item {
    background-color: var(--page-gdpr-card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--page-gdpr-divider);
}

.page-gdpr__list-title {
    font-size: 1.3em;
    color: var(--page-gdpr-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Contact List */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.page-gdpr__contact-item {
    font-size: 1.1em;
    color: var(--page-gdpr-text-main);
    margin-bottom: 10px;
}

.page-gdpr__contact-label {
    font-weight: 700;
    color: var(--page-gdpr-gold);
}

.page-gdpr__contact-link {
    color: var(--page-gdpr-glow); /* Use glow for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: var(--page-gdpr-primary-color);
    text-decoration: underline;
}

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

.page-gdpr__faq-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--page-gdpr-text-main);
    outline: none;
    list-style: none; /* Hide default marker */
}

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-gdpr-glow);
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or similar effect */
}

.page-gdpr__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--page-gdpr-text-secondary);
    line-height: 1.7;
}

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

.page-gdpr__faq-answer a {
    color: var(--page-gdpr-glow);
    text-decoration: underline;
}

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    background: var(--page-gdpr-btn-gradient);
    color: #ffffff; /* White text for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slightly reverse gradient or darken */
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: 2.5em;
    }

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

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-gdpr__hero-image {
        margin-bottom: 15px;
    }

    .page-gdpr__main-title {
        font-size: 2em !important; /* Smaller font for mobile H1 */
        margin-bottom: 10px;
    }

    .page-gdpr__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-gdpr__container {
        padding: 20px 15px;
    }

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

    .page-gdpr__text-block {
        font-size: 0.95em;
    }

    .page-gdpr__rights-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    
    .page-gdpr__right-card,
    .page-gdpr__list-item,
    .page-gdpr__faq-item {
        padding: 15px;
    }

    .page-gdpr__card-title,
    .page-gdpr__list-title {
        font-size: 1.2em;
    }

    .page-gdpr__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }
    .page-gdpr__faq-answer {
        padding: 0 15px 15px;
    }

    /* Mobile image responsive adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsive adaptation (if any, not used in this page) */
    .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: 10px !important;
    }

    /* Mobile button responsive adaptation */
    .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; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }
    
    .page-gdpr__cta-buttons,
    .page-gdpr__button-group,
    .page-gdpr__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 10px; /* Space between buttons */
        overflow: hidden !important;
    }

    .page-gdpr__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Ensure all content containers have proper padding and width */
    .page-gdpr__section, /* General section class, ensure it's not too broad */
    .page-gdpr__card, /* Specific card class */
    .page-gdpr__container { /* Specific container class */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* No CSS filters allowed for images */
.page-gdpr img {
    filter: none;
}