/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Custom main text color */
    line-height: 1.6;
    padding-bottom: 50px; /* Space for footer */
}

/* Ensure no double padding from shared header */
/* .page-gdpr { padding-top: var(--header-offset); } - NO, handled by body in shared.css */

.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;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-gdpr__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-gdpr__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size, avoid fixed large */
    font-weight: 700;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gdpr__subtitle {
    font-size: 1.2em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
}

/* CTA Button */
.page-gdpr__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Main text color for button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow word break */
    box-sizing: border-box;
}

.page-gdpr__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-gdpr__cta-button--dark {
    background: #0A4B2C; /* Deep Green */
    border: 2px solid #2E7A4E; /* Border color */
}

.page-gdpr__cta-button--dark:hover {
    background: #1E3A2A; /* Slightly lighter Deep Green */
    transform: translateY(-2px);
}

.page-gdpr__cta-button--secondary {
    background: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    color: #F2FFF6; /* Main text color */
}

.page-gdpr__cta-button--secondary:hover {
    background: #2E7A4E; /* Border color */
    transform: translateY(-2px);
}

/* Section Titles */
.page-gdpr__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #F2FFF6; /* Main text color */
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    padding-top: 40px;
}

.page-gdpr__sub-section-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: #F2FFF6; /* Main text color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Text Blocks */
.page-gdpr__text-block {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 20px;
    text-align: justify;
}

/* Card Grid */
.page-gdpr__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

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


/* Cards */
.page-gdpr__card {
    background-color: #11271B; /* Custom card background */
    color: #F2FFF6; /* Main text color for card */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Custom border color */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
    flex-grow: 1;
}

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

.page-gdpr__list-item {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-gdpr__list-item::before {
    content: '✓';
    color: #2AD16F; /* Green from button gradient */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-gdpr__list--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.page-gdpr__list--horizontal .page-gdpr__list-item {
    flex: 1 1 calc(33% - 20px); /* 3 items per row on desktop */
    min-width: 280px;
    background-color: #11271B; /* Custom card background */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #2E7A4E;
    box-sizing: border-box;
    text-align: center;
    padding-left: 20px; /* Adjust for centered text */
}

.page-gdpr__list--horizontal .page-gdpr__list-item::before {
    display: none; /* Hide checkmark for horizontal list */
}

/* Images within content */
.page-gdpr__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Dark Section specific styles */
.page-gdpr__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 12px;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__text-block,
.page-gdpr__dark-section .page-gdpr__list-item {
    color: #F2FFF6; /* Ensure light text on dark background */
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding-top: 40px;
}

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

.page-gdpr__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #F2FFF6; /* Main text color */
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #1E3A2A; /* Slightly darker */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: #1E3A2A;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #2AD16F; /* Green from button gradient */
    margin-left: 15px;
}

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

.page-gdpr__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.5;
}

.page-gdpr__faq-answer p {
    margin: 0;
}

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


/* Final CTA Section */
.page-gdpr__cta-final-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #0A4B2C; /* Deep Green */
    margin-top: 50px;
    border-radius: 12px;
}

/* --- Responsive Design --- */

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

    .page-gdpr__container {
        padding: 0 15px; /* Smaller padding on mobile */
    }

    .page-gdpr__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-gdpr__main-title {
        font-size: 2em;
    }

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

    .page-gdpr__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .page-gdpr__section-title {
        font-size: 1.8em;
        padding-top: 20px;
    }

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

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

    .page-gdpr__card-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

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

    .page-gdpr__list--horizontal .page-gdpr__list-item {
        flex: 1 1 100%; /* Single column on mobile */
        min-width: unset;
        text-align: left;
    }

    /* All images must be responsive */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/content must be responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__third-party-section,
    .page-gdpr__cookie-contact-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Adjust padding for sections to avoid double padding if container also has it */
    .page-gdpr__introduction-section,
    .page-gdpr__rights-section,
    .page-gdpr__data-processing-section,
    .page-gdpr__security-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Button containers */
    .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;
      display: flex; /* Ensure flex for wrapping */
      flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Tablet (max-width: 1024px) - Adjustments for larger tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-gdpr__container {
        padding: 0 30px;
    }

    .page-gdpr__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .page-gdpr__card-grid--two-columns {
        grid-template-columns: 1fr;
    }

    .page-gdpr__list--horizontal .page-gdpr__list-item {
        flex: 1 1 calc(50% - 20px); /* 2 items per row on tablet */
    }
}