/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly set for consistency */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.page-gdpr__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6); /* Darken background image for text readability */
}

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

.page-gdpr__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF; /* White text for hero title */
}

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

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

/* General Section Styles */
.page-gdpr__section {
    padding: 60px 20px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #333333;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-gdpr__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gdpr__section-title--white {
    color: #ffffff;
}

.page-gdpr__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

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

.page-gdpr__text-block h3 {
    font-size: 1.6em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gdpr__text-block--white p,
.page-gdpr__text-block--white li {
    color: #f0f0f0;
}

.page-gdpr__text-block--white h3 {
    color: #ffffff;
}

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

/* Dark Section */
.page-gdpr__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

/* Grid Container for Rights */
.page-gdpr__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-gdpr__grid-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items on dark background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-gdpr__grid-item-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Call to Action Section */
.page-gdpr__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #017439, #005a2e); /* Gradient with brand color */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-gdpr__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-gdpr__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-gdpr__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-gdpr__cta-image {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: auto;
    opacity: 0.2;
    z-index: 1;
    transform: rotate(15deg);
    pointer-events: none;
    display: block;
}

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Red for primary action, as per custom color rule for register/login */
    color: #FFFF00; /* Yellow text for register/login, as per custom color rule */
    border: 2px solid #C30808;
}

.page-gdpr__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
}

.page-gdpr__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color for secondary button text */
    border: 2px solid #017439;
}

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-gdpr__faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

.page-gdpr__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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: #f9f9f9;
    color: #017439; /* Brand primary for FAQ questions */
    transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
    background-color: #f0f0f0;
}

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

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

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

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important;
    padding: 20px;
}

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

/* Contact Section */
.page-gdpr__contact-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #017439;
    color: #ffffff;
}

.page-gdpr__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    font-size: 1.1em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-gdpr__contact-list li {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-gdpr__contact-list strong {
    color: #ffffff;
}

.page-gdpr__contact-list a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gdpr__contact-list a:hover {
    text-decoration: underline;
    color: #e0e0e0;
}

/* Links */
.page-gdpr a {
    color: #017439; /* Brand primary for general links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr a:hover {
    color: #005a2e;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2em;
    }
    .page-gdpr__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-gdpr__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        text-align: center;
    }

    .page-gdpr__section,
    .page-gdpr__content-area,
    .page-gdpr__cta-section,
    .page-gdpr__faq-section,
    .page-gdpr__contact-section {
        padding: 40px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

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

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

    .page-gdpr__text-block h3 {
        font-size: 1.4em;
    }

    .page-gdpr__content-image,
    .page-gdpr__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 30px auto !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
    }

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

    .page-gdpr__grid-item {
        padding: 25px;
    }

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

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

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

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

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

    .page-gdpr__faq-question h3 {
        font-size: 1.1em;
    }

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

    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }

    .page-gdpr__contact-list {
        font-size: 1em;
        text-align: center;
    }
    .page-gdpr__contact-list li {
        text-align: center;
    }
}

/* Ensure no image filters are used */
.page-gdpr img {
    filter: none;
}