/* style/gdpr.css */

/* Custom Properties based on provided color scheme */
:root {
    --page-gdpr-bg: #08160F; /* Background */
    --page-gdpr-card-bg: #11271B; /* Card BG */
    --page-gdpr-text-main: #F2FFF6; /* Text Main */
    --page-gdpr-text-secondary: #A7D9B8; /* Text Secondary */
    --page-gdpr-border: #2E7A4E; /* Border */
    --page-gdpr-glow: #57E38D; /* Glow */
    --page-gdpr-gold: #F2C14E; /* Gold */
    --page-gdpr-divider: #1E3A2A; /* Divider */
    --page-gdpr-deep-green: #0A4B2C; /* Deep Green */
    --page-gdpr-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

.page-gdpr {
    background-color: var(--page-gdpr-bg); /* Use specified background color */
    color: var(--page-gdpr-text-main); /* Use specified main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

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

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

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

.page-gdpr__dark-section {
    background-color: var(--page-gdpr-deep-green); /* Example: using deep green for dark sections */
    color: var(--page-gdpr-text-main);
}

.page-gdpr__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as per requirement */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow from images */
}

.page-gdpr__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability, not changing color */
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
    border-radius: 8px;
    margin-top: 100px; /* Push content down to avoid overlapping the very top of the image */
}

.page-gdpr__main-title {
    color: var(--page-gdpr-gold); /* Using gold for main title */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-description {
    color: var(--page-gdpr-text-main);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--page-gdpr-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-gdpr__sub-title {
    font-size: 1.8rem;
    color: var(--page-gdpr-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-gdpr__text-block {
    margin-bottom: 20px;
    color: var(--page-gdpr-text-secondary); /* Using secondary text color for paragraphs */
}

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

.page-gdpr__list-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--page-gdpr-text-main);
}

.page-gdpr__list-item p {
    color: var(--page-gdpr-text-secondary);
    margin-top: 10px;
    margin-bottom: 0;
}

.page-gdpr__list-item h3 {
    color: var(--page-gdpr-gold);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none; /* Remove default button border */
}

.page-gdpr__btn-primary {
    background: var(--page-gdpr-button-gradient);
    color: #ffffff; /* White text for contrast */
}

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

.page-gdpr__btn-secondary {
    background-color: var(--page-gdpr-card-bg); /* Using card background for secondary button */
    color: var(--page-gdpr-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-gdpr-border);
}

.page-gdpr__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--page-gdpr-deep-green); /* Deeper green on hover */
}

/* Image with text layout */
.page-gdpr__image-with-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-gdpr__image-with-text--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__image-with-text .page-gdpr__content-image {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    display: block; /* Ensure block level for max-width/height auto */
}

.page-gdpr__image-with-text .page-gdpr__text-content {
    flex: 2;
    min-width: 300px;
}

/* Contact List */
.page-gdpr__contact-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-gdpr__contact-item {
    margin-bottom: 10px;
    color: var(--page-gdpr-text-main);
}

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

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

/* Time element */
.page-gdpr time {
    font-weight: bold;
    color: var(--page-gdpr-gold);
}

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

.page-gdpr__faq-item {
    background-color: var(--page-gdpr-card-bg);
    border: 1px solid var(--page-gdpr-border);
    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-weight: 600;
    color: var(--page-gdpr-text-main);
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: var(--page-gdpr-deep-green);
}

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

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

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

/* Responsive Images, Videos, Buttons - MUST BE INCLUDED */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-gdpr video,
.page-gdpr__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-gdpr__video-section,
.page-gdpr__video-container,
.page-gdpr__video-wrapper,
.page-gdpr__hero-image-wrapper { /* Added hero image wrapper for consistency */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-gdpr__cta-button,
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary,
.page-gdpr a[class*="button"],
.page-gdpr a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gdpr__cta-buttons,
.page-gdpr__button-group,
.page-gdpr__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-gdpr {
        font-size: 15px; /* Slightly smaller base font on mobile */
    }

    .page-gdpr__container {
        padding: 0 15px; /* Adjust padding for mobile */
    }

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

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

    .page-gdpr__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 size for mobile */
    }

    .page-gdpr__hero-description {
        font-size: 1rem;
    }

    .page-gdpr__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: 1.5rem;
    }

    .page-gdpr__list-item h3 {
        font-size: 1.2rem;
    }

    .page-gdpr__image-with-text {
        flex-direction: column; /* Stack image and text on mobile */
        gap: 30px;
    }

    .page-gdpr__image-with-text--reverse {
        flex-direction: column; /* Still stack on mobile, direction doesn't matter much */
    }

    .page-gdpr__image-with-text .page-gdpr__content-image {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
    }

    .page-gdpr__image-with-text .page-gdpr__text-content {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
    }

    /* Forced responsive styles for images, videos, buttons */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gdpr video,
    .page-gdpr__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gdpr__video-section,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper,
    .page-gdpr__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-gdpr__cta-button,
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary,
    .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 !important; /* Add padding for button text */
        padding-right: 15px !important;
    }
    
    .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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 15px; /* Adjust gap for mobile buttons */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__intro-section,
    .page-gdpr__rights-section,
    .page-gdpr__data-handling-section,
    .page-gdpr__cookie-section,
    .page-gdpr__dpo-contact-section,
    .page-gdpr__updates-section,
    .page-gdpr__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fixed header spacing for video/hero section */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* body handles header offset, this is decorative */
    }
}

/* Color contrast fixes/checks */
.page-gdpr a {
    color: var(--page-gdpr-gold); /* Ensure link color is visible */
}

.page-gdpr a:hover {
    color: var(--page-gdpr-glow);
}

/* Ensure text on card background is readable */
.page-gdpr__card, .page-gdpr__list-item {
    background-color: var(--page-gdpr-card-bg);
    color: var(--page-gdpr-text-main);
}
.page-gdpr__card p, .page-gdpr__list-item p {
    color: var(--page-gdpr-text-secondary);
}

/* Ensure text on deep green background is readable */
.page-gdpr__dark-section {
    background-color: var(--page-gdpr-deep-green);
    color: var(--page-gdpr-text-main);
}
.page-gdpr__dark-section p {
    color: var(--page-gdpr-text-secondary);
}
.page-gdpr__dark-section a {
    color: var(--page-gdpr-gold);
}