/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-gdpr__hero-content {
    max-width: 900px;
    z-index: 2;
    margin-bottom: 40px;
}

.page-gdpr__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for title highlight */
    line-height: 1.2;
}

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

.page-gdpr__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 400px; /* Limit button group width */
    margin: 0 auto;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow button text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    flex-grow: 1; /* Allow buttons to grow within flex container */
}

.page-gdpr__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-gdpr__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-gdpr__hero-image-wrapper {
    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.2; /* Subtle background image */
}

/* Content Area */
.page-gdpr__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

.page-gdpr__dark-section {
    padding: 60px 20px;
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff; /* White text for dark sections */
}

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

.page-gdpr__text-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    position: relative; /* For image positioning */
}

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

.page-gdpr__highlight {
    font-weight: bold;
    color: #017439; /* Brand primary color for highlights on light background */
}

.page-gdpr__dark-section .page-gdpr__highlight {
    color: #FFFF00; /* Highlight color on dark background */
}

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

.page-gdpr__list-item {
    margin-bottom: 10px;
}

.page-gdpr__text-link {
    color: #017439; /* Brand primary for links on light background */
    text-decoration: underline;
}

.page-gdpr__text-link:hover {
    color: #004a25;
}

.page-gdpr__dark-section .page-gdpr__text-link {
    color: #FFFF00; /* Highlight color for links on dark background */
}

.page-gdpr__dark-section .page-gdpr__text-link:hover {
    color: #ffee00;
}

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

.page-gdpr__card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-gdpr__card-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
}

/* Images within content */
.page-gdpr__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure images are block level for margins */
}

.page-gdpr__image--left {
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    width: 400px; /* Example size, will be responsive */
    height: 300px; /* Example size, will be responsive */
    object-fit: cover;
}

.page-gdpr__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    width: 400px; /* Example size, will be responsive */
    height: 300px; /* Example size, will be responsive */
    object-fit: cover;
}

/* Clear floats for text after images */
.page-gdpr__text-block::after {
    content: "";
    display: table;
    clear: both;
}

/* FAQ Section */
.page-gdpr__faq-container {
    margin-top: 30px;
}

.page-gdpr__faq-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #e8e8e8;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
    margin: 0;
    font-size: 1.1em; /* Ensure title size consistency */
    color: inherit;
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Plus to X (or rotate to minus) */
}

.page-gdpr__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #f9f9f9;
    color: #555555;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content, !important for priority */
    padding: 15px 25px 25px;
}

.page-gdpr__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Call to Action Section */
.page-gdpr__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-gdpr__cta-title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #FFFF00; /* Highlight color for CTA title */
}

.page-gdpr__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-gdpr__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-gdpr__btn-large:hover {
    background-color: #a80707;
    border-color: #a80707;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__hero-title {
        font-size: 2.8em;
    }
    .page-gdpr__section-title {
        font-size: 2.2em;
    }
    .page-gdpr__cta-title {
        font-size: 2.4em;
    }
    .page-gdpr__image--left,
    .page-gdpr__image--right {
        width: 100%;
        float: none;
        margin: 0 auto 30px auto;
    }
    .page-gdpr__text-block::after {
        display: none; /* No need to clear floats if images are block */
    }
}

@media (max-width: 768px) {
    .page-gdpr__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }
    .page-gdpr__hero-title {
        font-size: 2em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
    }
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__content-area,
    .page-gdpr__dark-section,
    .page-gdpr__cta-section {
        padding: 40px 15px;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__cta-title {
        font-size: 2em;
    }
    .page-gdpr__text-block {
        font-size: 1em;
    }
    .page-gdpr__grid {
        grid-template-columns: 1fr;
    }

    /* Images responsive */
    .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__image-wrapper,
    .page-gdpr__text-block,
    .page-gdpr__faq-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px; /* Add padding to prevent content touching edges */
      padding-right: 15px; /* Add padding to prevent content touching edges */
    }
    
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px 25px 25px !important; /* Re-apply padding for active FAQ */
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.6em;
    }
    .page-gdpr__cta-title {
        font-size: 1.8em;
    }
    .page-gdpr__btn-large {
        font-size: 1em;
        padding: 15px 25px;
    }
}