/* style/gdpr.css */

/* Custom Color Palette */
:root {
    --primary-color: #11A84E; /* Green */
    --secondary-color: #22C768; /* Lighter Green */
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg: #11271B;
    --background-color: #08160F; /* Main background, matching shared.css assumed dark body */
    --text-main: #F2FFF6; /* Off-white for main text on dark backgrounds */
    --text-secondary: #A7D9B8; /* Lighter green for secondary text */
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the GDPR page */
.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-color); /* This should align with body background from shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
    overflow: hidden; /* Ensure no image overflow */
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Fixed height for large screens */
    overflow: hidden;
    position: relative;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Minimum size requirement */
}

.page-gdpr__hero-content {
    background-color: var(--card-bg); /* Dark background for hero text */
    color: var(--text-main);
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    border-radius: 8px;
    margin-top: 20px; /* Space between image and content */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.page-gdpr__link-highlight {
    color: var(--glow-color); /* Highlight color for links within text */
    text-decoration: underline;
}
.page-gdpr__link-highlight:hover {
    color: var(--primary-color);
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-gdpr__btn-primary {
    background: var(--button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-main); /* White-ish text on dark 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-color: transparent;
    color: var(--primary-color); /* Primary color text on transparent background */
    border: 2px solid var(--primary-color);
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(var(--primary-color), 0.5);
}

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-gdpr__content-section:last-of-type {
    border-bottom: none;
}

.page-gdpr__light-bg {
    background-color: var(--background-color); /* Main dark background */
    color: var(--text-main);
}

.page-gdpr__dark-section {
    background-color: var(--card-bg); /* Slightly darker background for contrast sections */
    color: var(--text-main);
}

.page-gdpr__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-gdpr__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-gdpr__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-gdpr__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-gdpr__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--glow-color);
    font-weight: bold;
}

.page-gdpr__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

/* FAQ Section */
.page-gdpr__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
    color: var(--glow-color);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    color: var(--text-main);
}

.page-gdpr__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

/* Details element specific styling */
.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 browsers */
}

/* Contact Section */
.page-gdpr__contact-section {
    background-color: var(--deep-green);
    color: var(--text-main);
    padding: 60px 0;
    text-align: center;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-content {
        padding: 30px;
    }
    .page-gdpr__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-gdpr__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-gdpr__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    .page-gdpr__hero-image-wrapper {
        max-height: 400px;
    }

    .page-gdpr__hero-content {
        padding: 25px 15px;
        margin-top: 15px;
    }

    .page-gdpr__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em); /* Adjust H1 for mobile */
    }

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

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-gdpr__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: clamp(1.2em, 4vw, 1.5em);
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-gdpr__text-block,
    .page-gdpr__list-item,
    .page-gdpr__faq-answer p,
    .page-gdpr__contact-item {
        font-size: 0.95em;
    }

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

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

    /* Mobile image responsiveness */
    .page-gdpr img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-section,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__hero-content,
    .page-gdpr__content-section,
    .page-gdpr__contact-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections to prevent content touching edges */
        /* Overridden below for specific sections to avoid double padding with container */
    }
    .page-gdpr__content-section,
    .page-gdpr__contact-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-gdpr__content-section .page-gdpr__container,
    .page-gdpr__contact-section .page-gdpr__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 0;
        padding-right: 0;
    }
    .page-gdpr__hero-section .page-gdpr__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}