/* style/gdpr.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Auxiliary */
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--background-dark); /* Background for main content area */
}

/* Sections */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    background-color: var(--card-bg); /* Darker background for hero */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-gdpr__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any background effects */
    color: var(--text-main);
}

.page-gdpr__main-title {
    font-size: clamp(2.2em, 4vw, 3em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--gold-color); /* Gold for main title */
}

.page-gdpr__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, var(--button-gradient-end) 0%, var(--button-gradient-start) 100%);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-gdpr__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-gdpr__btn-secondary:hover {
    background: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 0 15px var(--secondary-color);
}

.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--background-dark); /* Ensure content area has a background */
    color: var(--text-secondary); /* Default text for content area */
}

.page-gdpr__section-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-gdpr__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-main);
    text-align: center;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-gdpr__heading-4 {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-gdpr__paragraph {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.page-gdpr__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    color: var(--text-secondary);
}

.page-gdpr__list-item {
    margin-bottom: 0.5em;
}

.page-gdpr__list-item strong {
    color: var(--text-main);
}

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

.page-gdpr__content-area a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-gdpr__content-area a:hover {
    color: var(--primary-color);
}

/* FAQ Section */
.page-gdpr__faq-section {
    background-color: var(--card-bg); /* Darker background for FAQ */
    padding: 60px 20px;
    color: var(--text-secondary);
}

.page-gdpr__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.page-gdpr__faq-item {
    background-color: var(--background-dark); /* Slightly darker for each item */
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid var(--divider-color);
    color: var(--text-secondary);
}

.page-gdpr__faq-item:last-child {
    margin-bottom: 0;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-main);
    user-select: none;
}

/* Remove default details arrow */
.page-gdpr__faq-item summary {
    list-style: none;
}
.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__sub-title {
        font-size: 1.6em;
    }
    .page-gdpr__heading-4 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-gdpr__hero-image-wrapper,
    .page-gdpr__hero-image,
    .page-gdpr__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size even on mobile */
        min-height: 200px !important; /* Ensure minimum size even on mobile */
    }
    
    .page-gdpr__content-area,
    .page-gdpr__section-container,
    .page-gdpr__faq-section,
    .page-gdpr__faq-list,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-gdpr__hero-description {
        font-size: 0.95em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__sub-title {
        font-size: 1.4em;
    }
    .page-gdpr__heading-4 {
        font-size: 1.2em;
    }

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

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Ensure content area images maintain minimum size */
    .page-gdpr p img,
    .page-gdpr li img,
    .page-gdpr__image-inline {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Color Contrast Safeguards (based on provided color palette and dark background) */
.page-gdpr__dark-bg {
    background-color: var(--card-bg); /* Example dark background */
    color: var(--text-main); /* Light text on dark background */
}

.page-gdpr__bg {
    background-color: var(--background-dark); /* Deeper dark background */
    color: var(--text-secondary); /* Slightly less bright text */
}

.page-gdpr__text-main {
    color: var(--text-main); /* Explicitly use main text color */
}

.page-gdpr__text-secondary {
    color: var(--text-secondary); /* Explicitly use secondary text color */
}

/* Ensure link colors have sufficient contrast */
.page-gdpr a {
    color: var(--secondary-color); /* Light green for links */
}
.page-gdpr a:hover {
    color: var(--glow-color); /* Lighter green on hover */
}

/* No CSS filters for images */
.page-gdpr img {
    filter: none; /* Ensure no filters are applied */
}