/* style/gdpr.css */

/* Custom colors from requirements */
: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-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* General page styling */
.page-gdpr {
    background-color: var(--color-background); /* Using the specified background color */
    color: var(--color-text-main); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-gdpr__container--flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-gdpr__container--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

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

.page-gdpr__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--color-gold); /* Using gold for main titles for emphasis */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

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

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.page-gdpr__paragraph--centered {
    text-align: center;
}

.page-gdpr__link {
    color: var(--color-glow); /* Link color */
    text-decoration: underline;
}

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

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* body handles --header-offset, this is decorative padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

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

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

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
    min-width: 180px; /* Minimum button width */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
}

.page-gdpr__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background); /* Dark background for hover */
    transform: translateY(-2px);
}

/* Content Blocks with Image */
.page-gdpr__content-block {
    flex: 1;
    min-width: 0; /* Allow content to shrink */
}

.page-gdpr__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px; /* Minimum width for image block */
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

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

.page-gdpr__list-item {
    background-color: var(--color-card-bg); /* Use card bg for list items */
    color: var(--color-text-main);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.05em;
}

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

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

.page-gdpr__card {
    background-color: var(--color-card-bg); /* Dark background for cards */
    color: var(--color-text-main); /* Light text for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__card-text {
    font-size: 1em;
    color: var(--color-text-secondary);
}

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

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

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

.page-gdpr__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Webkit details marker */
}

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

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

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

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

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    font-weight: lighter;
    margin-left: 15px;
    color: var(--color-glow);
}

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

/* Contact Us Section */
.page-gdpr__contact-us {
    text-align: center;
}

.page-gdpr__contact-us .page-gdpr__content-block {
    text-align: left;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-gdpr__container--flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-gdpr__container--reverse {
        flex-direction: column-reverse;
    }

    .page-gdpr__image-block {
        order: -1; /* Image appears above text on mobile */
    }
}

@media (max-width: 768px) {
    .page-gdpr__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-gdpr__main-title {
        font-size: 1.8em; /* Smaller H1 on mobile */
    }

    .page-gdpr__intro-text {
        font-size: 1.1em;
    }

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

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button group */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important;
    }
    
    /* Image containers responsiveness */
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Section/Container padding for mobile */
    .page-gdpr__section,
    .page-gdpr__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-gdpr__hero-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-gdpr__cards-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
    }

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

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

    /* Ensure content blocks don't cause overflow */
    .page-gdpr__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure no filter is used on images */
.page-gdpr img {
    filter: none;
}