/* style/gdpr.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

/* Ensures body padding-top is handled by shared.css */
/* No padding-top: var(--header-offset) here to avoid double padding */

.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;
    min-height: 500px;
    color: var(--text-main);
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: 10px; /* Small top padding, header offset handled by body */
    padding-bottom: 60px;
}

.page-gdpr__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for better text contrast if text were overlaid, but here it's image-above-text */
}

.page-gdpr__hero-content-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-gdpr__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-gdpr__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-gdpr__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-gdpr__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Section General Styles */
.page-gdpr__introduction-section,
.page-gdpr__data-collection-section,
.page-gdpr__data-usage-section,
.page-gdpr__data-protection-section,
.page-gdpr__user-rights-section,
.page-gdpr__data-retention-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__updates-section {
    padding: 60px 0;
}

.page-gdpr__light-bg {
    background-color: var(--background-color); /* Use dark background for light text as per color scheme */
    color: var(--text-main);
}

.page-gdpr__dark-bg {
    background-color: var(--card-bg); /* Use card background for contrast sections */
    color: var(--text-main);
}

.page-gdpr__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--gold-color); /* Use gold for section titles */
    position: relative;
    padding-bottom: 10px;
}

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

.page-gdpr__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-gdpr__text-block p {
    margin-bottom: 15px;
}

.page-gdpr__text-block ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-gdpr__text-block li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-gdpr__link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.page-gdpr__content-grid .page-gdpr__text-block {
    flex: 1;
    min-width: 300px;
}

.page-gdpr__image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__image-item {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px; /* Ensure image itself has border-radius */
}

/* FAQ Section */
.page-gdpr__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--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;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-gdpr__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0; /* For JS-controlled toggle */
    overflow: hidden; /* For JS-controlled toggle */
    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 for content */
    padding-top: 15px;
}

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

/* Last Updated */
.page-gdpr__last-updated {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 40px;
}

/* CTA Buttons Centered */
.page-gdpr__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-gdpr__hero-section {
        min-height: 400px;
        padding-top: 10px;
    }

    .page-gdpr__section-title {
        margin-bottom: 25px;
    }

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

    .page-gdpr__content-grid--reverse {
        flex-direction: column; /* Revert reverse on mobile */
    }
}

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

    .page-gdpr__hero-section {
        padding-bottom: 40px;
    }

    .page-gdpr__main-title {
        font-size: 2.2rem;
    }

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

    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-gdpr__section-title {
        font-size: 2rem;
    }

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

    /* Mobile image adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container,
    .page-gdpr__hero-content-wrapper,
    .page-gdpr__image-container,
    .page-gdpr__faq-list,
    .page-gdpr__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-gdpr__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    /* No video section in this page, but keeping the rule as per general instruction for video responsiveness. */
    .page-gdpr__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-gdpr__video-container,
    .page-gdpr__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-gdpr__main-title {
        font-size: 1.8rem;
    }
    .page-gdpr__section-title {
        font-size: 1.6rem;
    }
}