/* style/gdpr.css */

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

/* Base styles for the page content area */
.page-gdpr {
    background-color: var(--color-background);
    color: var(--color-text-main); /* Dark background, so use light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    background-color: var(--color-deep-green); /* Darker background for hero */
    overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-gdpr__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 30px 20px 0;
    box-sizing: border-box;
    color: var(--color-text-main);
}

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font-size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold); /* Gold for main title */
}

.page-gdpr__description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Headings */
.page-gdpr__heading {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__sub-heading {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Text and Paragraphs */
.page-gdpr__text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

/* Lists */
.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    color: var(--color-text-main);
}

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

/* Image blocks within content */
.page-gdpr__image-text-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-gdpr__image-text-block .page-gdpr__image-wrapper {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.page-gdpr__image-text-block .page-gdpr__text-content {
    flex: 2;
    min-width: 300px;
    box-sizing: border-box;
}

.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    /* Ensure min size for content images */
    min-width: 200px;
    min-height: 200px;
}

.page-gdpr__content-image--center {
    margin: 40px auto;
    display: block;
    max-width: 800px; /* Example max width for centered image */
}

/* Links */
.page-gdpr__link {
    color: var(--color-glow); /* Use glow color for links */
    text-decoration: underline;
}

.page-gdpr__link:hover {
    color: var(--color-gold);
    text-decoration: none;
}

/* Buttons */
.page-gdpr__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* Light text on dark button */
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* CTA Section */
.page-gdpr__cta-section {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--color-card-bg); /* Use card background for CTA section */
    border-top: 1px solid var(--color-divider);
}

.page-gdpr__cta-section .page-gdpr__heading {
    color: var(--color-gold);
}

.page-gdpr__cta-section .page-gdpr__text {
    max-width: 800px;
    margin: 0 auto 30px;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: var(--color-deep-green);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: var(--color-deep-green);
    color: var(--color-gold);
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-qtext {
    color: var(--color-gold);
}


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

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

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

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

/* Policy Links Section */
.page-gdpr__policy-links-section .page-gdpr__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Contact Section */
.page-gdpr__contact-section .page-gdpr__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

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

    .page-gdpr__section {
        padding: 30px 15px;
    }

    .page-gdpr__hero-section {
        padding: 10px 0 40px;
    }

    .page-gdpr__hero-content {
        padding: 20px 15px 0;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

    .page-gdpr__heading {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-gdpr__sub-heading {
        font-size: clamp(1.2em, 5vw, 1.5em);
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    .page-gdpr__image-text-block {
        flex-direction: column;
        gap: 20px;
    }

    .page-gdpr__image-text-block .page-gdpr__image-wrapper,
    .page-gdpr__image-text-block .page-gdpr__text-content {
        min-width: unset;
        width: 100%;
    }

    /* Mobile image responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
    }
    
    .page-gdpr__hero-image {
        min-width: unset !important; /* Hero image can scale down without min-width constraint */
        min-height: unset !important;
    }

    /* All containers with images/content */
    .page-gdpr__section,
    .page-gdpr__image-text-block,
    .page-gdpr__image-wrapper,
    .page-gdpr__text-content,
    .page-gdpr__faq-list,
    .page-gdpr__cta-section,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Buttons mobile responsiveness */
    .page-gdpr__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-gdpr__cta-section .page-gdpr__text {
        padding-left: 0;
        padding-right: 0;
    }

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

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