/* style/gdpr.css */

/* Color Variables (from custom palette) */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
    --deep-green-rgb: 10, 75, 44; /* RGB for rgba usage */
}

/* Global styles for the page-gdpr scope */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary); /* Default text color */
    background-color: var(--background); /* #08160F */
}

.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, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure no overflow from video */
}

.page-gdpr__hero-video-wrapper {
    position: relative;
    width: 100%; /* Explicitly set for desktop */
    max-width: 1200px; /* To match container width */
    margin-bottom: 30px; /* Space between video and text */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-gdpr__hero-video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.page-gdpr__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.page-gdpr__description {
    font-size: 1.2rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-gdpr__section {
    padding: 80px 0;
    background-color: var(--background); /* Default background */
}

.page-gdpr__dark-section {
    background-color: var(--card-bg); /* #11271B */
}

.page-gdpr__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-gdpr__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--glow); /* #57E38D */
    border-radius: 2px;
}

.page-gdpr__light-bg-title {
    color: var(--text-main); /* #F2FFF6, still light text on dark background */
}

/* Content Grid */
.page-gdpr__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-gdpr__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-gdpr__text-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-gdpr__text-block h3 {
    font-size: 1.5rem;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
}

.page-gdpr__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-gdpr__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

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

.page-gdpr__card {
    background-color: var(--card-bg); /* #11271B */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-secondary); /* #A7D9B8 */
    border: 1px solid var(--border); /* #2E7A4E */
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
}

.page-gdpr__card-title {
    font-size: 1.4rem;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-gdpr__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-gdpr__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--glow); /* #57E38D */
    font-weight: bold;
}

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

/* Links */
.page-gdpr__link {
    color: var(--glow); /* #57E38D */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: var(--gold); /* #F2C14E */
    text-decoration: underline;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Default for desktop, important for mobile */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-gdpr__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-green) 0%, #2AD16F 100%); /* Slightly darker hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--glow); /* #57E38D */
    color: var(--card-bg); /* #11271B */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-gdpr__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--card-bg); /* #11271B */
    border-top: 1px solid var(--divider); /* #1E3A2A */
}

.page-gdpr__cta-content {
    max-width: 900px;
}

.page-gdpr__cta-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-gdpr__cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 40px;
}

.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding-bottom: 80px;
}

.page-gdpr__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-gdpr__faq-item {
    background-color: var(--card-bg); /* #11271B */
    border: 1px solid var(--border); /* #2E7A4E */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-gdpr__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main); /* #F2FFF6 */
    list-style: none; /* Hide default marker */
    position: relative;
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-item summary:hover {
    background-color: rgba(var(--deep-green-rgb), 0.5); /* Slightly lighter hover */
}

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

.page-gdpr__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--glow); /* #57E38D */
    transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
}

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

/* Image and Video Responsive Styles (Mandatory) */
.page-gdpr img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.page-gdpr__image-wrapper,
.page-gdpr__hero-video-wrapper,
.page-gdpr__video-container,
.page-gdpr__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-gdpr__content-grid {
        flex-direction: column;
    }
    .page-gdpr__content-grid--reverse {
        flex-direction: column;
    }
}

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

    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-gdpr__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-gdpr__description {
        font-size: 1rem;
    }

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

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

    .page-gdpr__content-grid {
        gap: 30px;
    }

    .page-gdpr__principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 25px;
    }

    .page-gdpr__card-title {
        font-size: 1.2rem;
    }

    .page-gdpr__list li {
        padding-left: 25px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        margin-bottom: 10px; /* Space between stacked buttons */
        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: 10px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-gdpr__cta-section {
        padding: 60px 15px;
    }

    .page-gdpr__cta-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

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

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

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

    /* Forced responsive image/video/container styles */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr video,
    .page-gdpr__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-video-wrapper,
    .page-gdpr__image-wrapper,
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper,
    .page-gdpr__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-gdpr__hero-video-wrapper,
    .page-gdpr__image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}