/* style/gdpr.css */

/* Custom properties for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bg-card: #11271B;
    --bg-main: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page, assuming body has a dark background from shared.css */
.page-gdpr {
    background-color: var(--bg-main); /* Fallback if body doesn't cover */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

/* Ensure images are responsive and not small icons */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    border-radius: 8px; /* Example style */
}

/* Main sections */
.page-gdpr__section-spacing {
    padding: 60px 0;
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--bg-main);
    overflow: hidden; /* Ensure no overflow */
}

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

.page-gdpr__hero-image {
    width: 100%; /* HTML width/height attributes for CLS */
    height: auto;
    border-radius: 0; /* Hero image typically full width, no rounded corners */
}

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

.page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1, no fixed large size */
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-gdpr__subtitle {
    font-size: 1.15em;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles */
.page-gdpr__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--color-gold); /* Using gold for section titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
    font-weight: bold;
    position: relative;
}

.page-gdpr__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

/* Lists */
.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    color: var(--text-secondary);
}

.page-gdpr__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1em;
}

.page-gdpr__list li::before {
    content: '•'; /* Custom bullet point */
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-gdpr__list--columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Cards */
.page-gdpr__card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--text-main); /* Light text on dark card background */
}

.page-gdpr__card-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Content Grid for layout */
.page-gdpr__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Dark Sections for alternating background */
.page-gdpr__dark-section {
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Image wrappers within content */
.page-gdpr__image-wrapper {
    margin: 40px auto;
    width: 100%;
    max-width: 800px; /* Max width for content images */
    box-sizing: border-box;
    overflow: hidden;
}

.page-gdpr__image-wrapper--center {
    text-align: center;
}

.page-gdpr__content-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
}

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

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

.page-gdpr__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
    position: relative;
    user-select: none;
}

.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;
    margin-right: 15px;
    color: var(--text-main);
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

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

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

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

/* Contact Section */
.page-gdpr__contact-details {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.page-gdpr__contact-details p {
    margin-bottom: 10px;
}

.page-gdpr__contact-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }

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

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

    .page-gdpr__section-spacing {
        padding: 40px 0;
    }

    .page-gdpr__card {
        padding: 25px;
    }

    .page-gdpr__content-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }

    .page-gdpr__list--columns {
        grid-template-columns: 1fr;
    }
}

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

    /* Mobile specific image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size is kept */
        min-height: 200px !important;
    }
    
    /* Mobile specific container adaptation */
    .page-gdpr__container,
    .page-gdpr__section-spacing,
    .page-gdpr__hero-section,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__hero-content,
    .page-gdpr__data-collection-section,
    .page-gdpr__legal-basis-section,
    .page-gdpr__rights-section,
    .page-gdpr__security-section,
    .page-gdpr__retention-cookies-section,
    .page-gdpr__faq-section,
    .page-gdpr__contact-section,
    .page-gdpr__content-grid,
    .page-gdpr__rights-grid,
    .page-gdpr__faq-list,
    .page-gdpr__contact-details {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, small padding here */
        padding-bottom: 30px !important;
    }

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

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

    .page-gdpr__card {
        padding: 20px;
    }

    .page-gdpr__card-title {
        font-size: 1.3em;
    }

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

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

    .page-gdpr__image-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }

    /* Button specific mobile adaptation (if any buttons were added) */
    .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;
        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;
        gap: 10px;
    }
    .page-gdpr__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}