/* style/gdpr.css */

/* Custom Colors */
: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;
}

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

/* General section styling */
.page-gdpr__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

.page-gdpr__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Ensure content doesn't touch edges on larger screens */
    box-sizing: border-box;
}

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* H1 rules applied to H2, H3: clamp for size */
    color: var(--color-text-main);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    line-height: 1.2;
}

.page-gdpr__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-text-secondary); /* #A7D9B8 */
}

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

.page-gdpr__list-item {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--color-text-main);
}

.page-gdpr__list-item::before {
    content: '✓';
    color: var(--color-gold); /* #F2C14E */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    box-sizing: border-box;
    background-color: var(--color-background);
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
}

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

.page-gdpr__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-gdpr__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* H1 font size with clamp */
    color: var(--color-gold); /* #F2C14E */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-gdpr__intro-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to button container */
}

.page-gdpr__cta-buttons--center {
    justify-content: center;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    min-width: 180px; /* Minimum width for buttons */
}

.page-gdpr__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%); /* #2AD16F to #13994A */
    color: var(--color-text-main); /* #F2FFF6 */
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

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

.page-gdpr__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

/* Image content within sections */
.page-gdpr__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Min size for content images */
    min-height: 200px;
}

/* Card layout for user rights */
.page-gdpr__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); /* #11271B */
    color: var(--color-text-main); /* #F2FFF6 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px; /* Ensure cards have a minimum height */
}

.page-gdpr__card--gold-border {
    border: 1px solid var(--color-border); /* #2E7A4E */
}

.page-gdpr__card-title {
    font-size: 1.35rem;
    color: var(--color-gold); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* FAQ Section */
.page-gdpr__faq {
    background-color: var(--color-deep-green); /* #0A4B2C */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-gdpr__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.05); /* Using gold with opacity */
}

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

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

.page-gdpr__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding: 0 25px 20px;
}
.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    background-color: rgba(242, 193, 78, 0.05); /* Using gold with opacity */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

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

    .page-gdpr__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px !important;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        min-width: unset;
    }

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

    .page-gdpr__container {
        padding: 0; /* Remove padding from container to allow section padding to control width */
    }

    .page-gdpr__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 20px;
    }

    .page-gdpr__text-block {
        font-size: 0.95rem;
    }

    .page-gdpr__grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-gdpr__card {
        padding: 20px;
        min-height: unset;
    }

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

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

    .page-gdpr__image-content,
    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-gdpr__image-content {
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure all containing elements for images/buttons/videos are responsive */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-image-wrapper,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-gdpr__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }
    .page-gdpr__faq-item[open] .page-gdpr__faq-answer {
        padding: 0 20px 15px;
    }
}