/* style/gdpr.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --background-dark: #1a1a2e; /* From shared.css body background */
    --button-register-login: #C30808;
    --font-register-login: #FFFF00;
}

/* Base Styles for GDPR Page */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

.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;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    min-height: 600px;
    color: var(--text-on-dark);
    background-color: var(--primary-color);
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    overflow: hidden;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-gdpr__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    font-weight: bold;
}

.page-gdpr__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

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

.page-gdpr__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

/* General Content Sections */
.page-gdpr__content-area {
    padding: 60px 0;
    background-color: var(--secondary-color); /* Light background for content */
    color: var(--text-on-light); /* Dark text on light background */
}

.page-gdpr__dark-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background for contrast sections */
    color: var(--text-on-dark); /* Light text on dark background */
}

.page-gdpr__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
    font-weight: bold;
}

.page-gdpr__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-gdpr__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-gdpr__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Image-Text Section */
.page-gdpr__image-text-section .page-gdpr__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-gdpr__image-text-section--reverse .page-gdpr__flex-container {
    flex-direction: row-reverse;
}

.page-gdpr__text-content {
    flex: 1;
}

.page-gdpr__image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-gdpr__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-gdpr__card {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-gdpr__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-gdpr__card-text {
    font-size: 1em;
    line-height: 1.5;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-gdpr__btn-primary {
    background-color: var(--button-register-login);
    color: var(--font-register-login);
    border: 2px solid var(--button-register-login);
    margin-right: 15px;
}

.page-gdpr__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

.page-gdpr__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-gdpr__cta-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
}

.page-gdpr__video-cta {
    margin-top: 30px;
    margin-right: 0;
}

/* Contact Links */
.page-gdpr__contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-gdpr__contact-link:hover {
    text-decoration: underline;
}

/* Video Section */
.page-gdpr__video-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-gdpr__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gdpr__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-on-dark);
}

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.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(--text-on-dark);
    transition: color 0.3s ease;
}

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

.page-gdpr__faq-title {
    margin: 0;
    flex-grow: 1;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg);
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-gdpr__hero-section {
        min-height: 500px;
        padding: 60px 0;
    }

    .page-gdpr__main-title {
        font-size: 2.8em;
    }

    .page-gdpr__hero-description {
        font-size: 1.1em;
    }

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

    .page-gdpr__sub-title {
        font-size: 1.6em;
    }

    .page-gdpr__image-text-section .page-gdpr__flex-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-gdpr__image-text-section--reverse .page-gdpr__flex-container {
        flex-direction: column;
    }

    .page-gdpr__card {
        padding: 25px;
    }
}

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

    .page-gdpr__hero-section {
        padding: 40px 0;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

    .page-gdpr__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-gdpr__sub-title {
        font-size: 1.4em;
    }

    .page-gdpr__content-area,
    .page-gdpr__dark-section,
    .page-gdpr__faq-section {
        padding: 40px 0;
    }

    .page-gdpr__container {
        padding: 0 15px;
    }

    .page-gdpr__list,
    .page-gdpr__text-block {
        font-size: 1em;
    }

    /* Mobile image responsive adaptation */
    .page-gdpr img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that contain images/videos/buttons */
    .page-gdpr__hero-image-container,
    .page-gdpr__image-container,
    .page-gdpr__video-wrapper,
    .page-gdpr__cta-buttons,
    .page-gdpr__grid-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-gdpr__image-container,
    .page-gdpr__video-wrapper {
        padding: 0 15px; /* Add padding to prevent content touching edges */
    }

    /* Mobile video responsive adaptation */
    .page-gdpr video,
    .page-gdpr__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile button responsive adaptation */
    .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; /* Full width for buttons on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0 !important; /* Remove right margin */
        margin-bottom: 10px; /* Add bottom margin for stacked buttons */
    }

    .page-gdpr__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

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

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

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

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

    .page-gdpr__section-title {
        font-size: 1.6em;
    }

    .page-gdpr__sub-title {
        font-size: 1.2em;
    }
}