/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Fallback to white if var is not set */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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;
    text-align: center;
    padding: 80px 20px;
    color: #ffffff;
    background-color: #017439; /* Main brand color */
    overflow: hidden;
}

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

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

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

.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.2; /* Subtle overlay */
}

/* CTA Buttons */
.page-gdpr__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

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

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

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

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

/* Content Sections */
.page-gdpr__content-section {
    padding: 60px 0;
}

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

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

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

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

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

/* Lists */
.page-gdpr__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
    padding-left: 0;
}

.page-gdpr__list--white {
    color: #f0f0f0;
}

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

.page-gdpr__list-item strong {
    color: #ffffff; /* Ensure contrast on dark bg */
}

/* Image Text Grid */
.page-gdpr__image-text-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-gdpr__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-gdpr__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    display: block; /* Important for proper spacing */
    margin: 0 auto;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-gdpr__image-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-gdpr__image-container--full-width .page-gdpr__image {
    width: 100%;
    object-fit: cover;
}


/* Data Protection Measures Grid */
.page-gdpr__measures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-gdpr__measure-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #ffffff;
}

.page-gdpr__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.page-gdpr__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Sub-section titles */
.page-gdpr__subsection-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Contact Info */
.page-gdpr__contact-info {
    background-color: #005a2b; /* Slightly darker brand green */
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    color: #ffffff;
    text-align: center;
}

.page-gdpr__contact-link {
    color: #FFFF00; /* Highlighted link color */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
    color: #fff;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light background for contrast */
}

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

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
    font-weight: bold;
}

.page-gdpr__faq-toggle {
    font-size: 1.5em;
    color: #017439;
    font-weight: bold;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
}

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

.page-gdpr__faq-answer .page-gdpr__text-block {
    margin-bottom: 0;
    color: #333333;
}

/* Bottom CTA Section */
.page-gdpr__cta-bottom-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-gdpr__cta-bottom-content {
    max-width: 800px;
}

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

@media (max-width: 768px) {
    .page-gdpr {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile too */
    }
    .page-gdpr__hero-section {
        padding: 60px 20px; /* Adjust hero padding to not conflict with overall page padding-top */
    }
    .page-gdpr__hero-title {
        font-size: 2.2em;
    }
    .page-gdpr__hero-description {
        font-size: 1em;
    }
    .page-gdpr__section-title {
        font-size: 1.8em;
    }
    .page-gdpr__image-text-grid {
        flex-direction: column;
    }
    .page-gdpr__image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-gdpr__measures-grid {
        grid-template-columns: 1fr;
    }
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .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-section,
    .page-gdpr__content-section,
    .page-gdpr__faq-section,
    .page-gdpr__cta-bottom-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* FAQ Specific Mobile Adjustments */
    .page-gdpr__faq-question {
        padding: 15px;
    }
    .page-gdpr__faq-title {
        font-size: 1.1em;
    }
    .page-gdpr__faq-answer {
        padding: 0 15px;
    }
    .page-gdpr__faq-item.active .page-gdpr__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-gdpr__hero-title {
        font-size: 1.8em;
    }
    .page-gdpr__section-title {
        font-size: 1.5em;
    }
    .page-gdpr__hero-description {
        font-size: 0.95em;
    }
    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        font-size: 1em;
        padding: 10px 15px;
    }
}