/* style/gdpr.css */

/* Base styles for the GDPR page content */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Space above footer */
}

/* Hero Section */
.page-gdpr__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
    background: linear-gradient(135deg, #017439, #005f2e); /* Brand colors for hero background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-gdpr__hero-content {
    max-width: 600px;
    color: #ffffff;
}

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

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

.page-gdpr__hero-image-wrapper {
    max-width: 500px;
    flex-shrink: 0;
}

.page-gdpr__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-gdpr__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-gdpr__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #ffffff; /* Light text for dark body background */
}

.page-gdpr__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-gdpr__dark-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast within dark body */
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-gdpr__dark-section .page-gdpr__section-title {
    color: #ffffff; /* White title on dark section */
}

.page-gdpr__dark-section .page-gdpr__paragraph {
    color: #f0f0f0;
}

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

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

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-gdpr__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-gdpr__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

/* Links within content */
.page-gdpr__link {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gdpr__link:hover {
    color: #00a040;
    text-decoration: underline;
}

/* FAQ Section */
.page-gdpr__faq-section {
    padding: 60px 0;
    margin-bottom: 30px;
}

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

.page-gdpr__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-gdpr__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: normal;
}

.page-gdpr__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439; /* Brand color for toggle icon */
    transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 15px 20px;
}

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

/* Call to Action Section */
.page-gdpr__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(45deg, #017439, #00a040); /* Brand colors */
    border-radius: 8px;
    margin: 40px auto;
    max-width: 1000px;
}

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

.page-gdpr__cta-section .page-gdpr__paragraph {
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-gdpr__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    }

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

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

    .page-gdpr__container {
        padding: 15px;
    }

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

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

    .page-gdpr__btn-primary,
    .page-gdpr__btn-secondary {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 15px 20px !important;
        font-size: 1.1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-gdpr__button-group {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-gdpr__hero-image {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }

    /* Images within content sections */
    .page-gdpr img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* Container for images (sections, cards, etc.) */
    .page-gdpr__section,
    .page-gdpr__card,
    .page-gdpr__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden; /* Prevent horizontal scroll */
    }

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

    .page-gdpr__dark-section,
    .page-gdpr__faq-item,
    .page-gdpr__cta-section {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px); /* Adjust width for padding */
        box-sizing: border-box;
    }
}

/* Ensure no CSS filter on images */
.page-gdpr img {
  filter: none !important;
}

/* Content area images minimum size check for content area */
.page-gdpr__hero-image,
.page-gdpr__content-area img,
.page-gdpr__list-item img,
.page-gdpr__faq-answer img,
.page-gdpr__cta-section img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .page-gdpr__hero-image,
    .page-gdpr__content-area img,
    .page-gdpr__list-item img,
    .page-gdpr__faq-answer img,
    .page-gdpr__cta-section img {
        min-width: unset;
        min-height: unset;
    }
}