/* style/gdpr.css */

/* Base Styles for .page-gdpr */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-gdpr__container--center {
    text-align: center;
}

.page-gdpr__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure no overflow */
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__sub-title {
    font-size: 1.8em;
    color: #ffffff; /* Default for dark sections */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
}

.page-gdpr__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-gdpr__list-item {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #ffffff; /* Default for dark sections */
}

.page-gdpr__list-item::before {
    content: '✓';
    color: #017439; /* Brand color for list markers */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Specific color adjustments for sections */
.page-gdpr__dark-section {
    background-color: #0a0a0a; /* Ensure dark background for text contrast */
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__paragraph,
.page-gdpr__dark-section .page-gdpr__list-item {
    color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__sub-title {
    color: #ffffff; /* Explicitly white for dark sections */
}

.page-gdpr__light-bg {
    background-color: #f5f5f5; /* Light background for text contrast */
}

.page-gdpr__light-bg .page-gdpr__section-title,
.page-gdpr__light-bg .page-gdpr__paragraph,
.page-gdpr__light-bg .page-gdpr__list-item {
    color: #333333;
}

.page-gdpr__light-bg .page-gdpr__sub-title {
    color: #017439; /* Brand color for sub-titles on light backgrounds */
}

.page-gdpr__light-bg .page-gdpr__list-item::before {
    color: #017439; /* Brand color for list markers */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-gdpr__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    background-size: cover;
    filter: brightness(0.4); /* Darken video for text readability */
    object-fit: cover;
}

.page-gdpr__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

.page-gdpr__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
}

.page-gdpr__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-gdpr__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-gdpr__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

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

.page-gdpr__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-gdpr__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Images */
.page-gdpr__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* No filter allowed */
}

.page-gdpr__image--center {
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 50%; /* Adjust for floating */
}

.page-gdpr__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 50%; /* Adjust for floating */
}

.page-gdpr__introduction::after,
.page-gdpr__user-rights::after,
.page-gdpr__data-protection::after {
    content: "";
    display: table;
    clear: both;
}

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

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

.page-gdpr__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Plus to X effect */
}

.page-gdpr__faq-answer {
    padding: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker for answer */
}

.page-gdpr__faq-answer a {
    color: #017439; /* Brand color for links in FAQ */
    text-decoration: underline;
}

.page-gdpr__faq-answer a:hover {
    color: #00a04a;
}

/* Call to Action Section */
.page-gdpr__cta {
    background-color: #017439; /* Brand color */
    text-align: center;
}

.page-gdpr__cta .page-gdpr__section-title,
.page-gdpr__cta .page-gdpr__paragraph {
    color: #ffffff;
}

.page-gdpr__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gdpr__hero-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.5em;
    }

    .page-gdpr__image--right,
    .page-gdpr__image--left {
        float: none;
        margin: 0 auto 30px auto;
        max-width: 80%;
    }
}

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

    .page-gdpr__hero-section {
        padding: 80px 0;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-gdpr__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain width for better look */
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-gdpr__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-gdpr__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-gdpr__paragraph {
        font-size: 1em;
    }

    .page-gdpr__list-item {
        padding-left: 20px;
    }

    .page-gdpr__list-item::before {
        font-size: 0.9em;
        left: 0;
    }

    /* Images responsiveness */
    .page-gdpr img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }

    /* Video responsiveness */
    .page-gdpr video,
    .page-gdpr__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-gdpr__video-section,
    .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;
    }

    .page-gdpr__hero-video {
        width: 100%;
        height: auto;
        position: relative;
        transform: none;
        top: auto;
        left: auto;
    }

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

    .page-gdpr__faq-answer {
        font-size: 1em;
        padding: 15px;
    }
}

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

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

    .page-gdpr__hero-actions {
        gap: 10px;
    }
}