/* style/gdpr.css */

/* Custom Colors from Prompt */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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-deep-green: #0A4B2C;
    --color-divider: #1E3A2A;
}

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Body background color is handled by shared.css */
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    overflow: hidden;
    background-color: var(--color-deep-green); /* A darker green for hero background */
}

.page-gdpr__hero-image {
    width: 100%;
    max-width: 1920px; /* Request size */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above image if there's any positioning conflict */
}

.page-gdpr__main-title {
    color: var(--color-gold);
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-description {
    font-size: clamp(1em, 2vw, 1.2em);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-gdpr__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-button-gradient-start);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: var(--color-text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-gdpr__dark-bg {
    background-color: var(--color-card-bg); /* Use dark background for contrast */
    color: var(--color-text-main);
}

.page-gdpr__section-title {
    font-size: 2.2em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-gdpr__sub-title {
    font-size: 1.6em;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

.page-gdpr__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

.page-gdpr__link {
    color: var(--color-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Grid Layout for content with images */
.page-gdpr__grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-gdpr__grid-layout--reverse {
    grid-template-columns: 1fr; /* Default for mobile */
}

@media (min-width: 768px) {
    .page-gdpr__grid-layout {
        grid-template-columns: 1fr 1fr;
    }
    .page-gdpr__grid-layout--reverse {
        grid-template-columns: 1fr 1fr;
    }
    .page-gdpr__grid-layout--reverse .page-gdpr__grid-item:first-child {
        order: 2;
    }
    .page-gdpr__grid-layout--reverse .page-gdpr__grid-item:last-child {
        order: 1;
    }
}

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

.page-gdpr__image--full-width {
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
}

/* Contact List */
.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.page-gdpr__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.page-gdpr__contact-list li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

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

.page-gdpr__faq-list {
    margin-top: 40px;
}

.page-gdpr__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

.page-gdpr__faq-question::-webkit-details-marker {
    display: none;
}

.page-gdpr__faq-qtext {
    flex-grow: 1;
}

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−';
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .page-gdpr__container,
    .page-gdpr__hero-content {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-gdpr__hero-section {
        padding-bottom: 30px;
        padding-top: 10px !important; /* body has padding-top, ensure this is small */
    }

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

    .page-gdpr__hero-description {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !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: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: 1.4em;
    }

    .page-gdpr__text-block,
    .page-gdpr__list li,
    .page-gdpr__faq-answer {
        font-size: 1em;
    }

    .page-gdpr__grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-gdpr__grid-layout--reverse .page-gdpr__grid-item:first-child {
        order: initial; /* Reset order for mobile */
    }
    .page-gdpr__grid-layout--reverse .page-gdpr__grid-item:last-child {
        order: initial; /* Reset order for mobile */
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content */
    .page-gdpr__hero-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section,
    .page-gdpr__container,
    .page-gdpr__grid-item,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to container, section, item for mobile to prevent overflow */
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Ensure no horizontal scroll */
    }
    .page-gdpr__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-gdpr__hero-image {
        border-radius: 0;
    }
    .page-gdpr__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* WCAG AA Contrast Fixes (if needed) */
/* Assuming body background is dark from shared.css, text-main and text-secondary are light */
/* If a section has a light background, we need dark text */
/* Example: If a future section has a light background, apply .page-gdpr__light-bg */
.page-gdpr__light-bg {
  background-color: #ffffff; /* Example light background */
  color: #333333; /* Dark text for contrast */
}
.page-gdpr__light-bg .page-gdpr__link {
  color: var(--color-deep-green);
}
.page-gdpr__light-bg .page-gdpr__sub-title {
  color: var(--color-deep-green);
}