/* style/gdpr.css */

/* General Styles */
.page-gdpr {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity */
}

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

.page-gdpr__hero-section {
    position: relative;
    background-color: #017439; /* Brand color for hero background */
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure no horizontal scroll from hero image */
}

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

.page-gdpr__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-gdpr__main-title {
    font-size: 38px;
    font-weight: 700;
    color: #FFFFFF; /* White text on brand green background */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__description {
    font-size: 18px;
    color: #F0F0F0; /* Slightly off-white for contrast */
    margin-bottom: 30px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.page-gdpr__content-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-gdpr__section-title {
    font-size: 32px;
    color: #017439; /* Brand color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-gdpr__section-title--light {
    color: #FFFFFF; /* White text for dark background sections */
}

.page-gdpr__sub-title {
    font-size: 24px;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 600;
}

.page-gdpr__paragraph {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333333;
}

.page-gdpr__image-text-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-gdpr__image-text-block--reversed {
    flex-direction: row-reverse;
}

.page-gdpr__content-image {
    flex: 1;
    min-width: 300px; /* Ensure images are not too small */
    max-width: 50%; /* Adjust width for desktop layout */
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gdpr__content-image--full-width {
    max-width: 100%;
    margin-bottom: 30px;
}

.page-gdpr__list {
    flex: 1;
    min-width: 300px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-gdpr__list-item {
    background-color: #F9F9F9;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    font-size: 16px;
    color: #333333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-gdpr__list-item strong {
    color: #017439;
}

.page-gdpr__cta-block {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: #F0F8FF; /* Light blue background for CTA */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__cta-text {
    font-size: 20px;
    color: #333333;
    margin-bottom: 30px;
    font-weight: 500;
}

.page-gdpr__btn-primary {
    display: inline-block;
    background: #017439;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-gdpr__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background for FAQ */
    color: #FFFFFF; /* Light text for dark background */
}

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

/* FAQ styles using <details> */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #005a2d; /* Darker border for contrast on dark bg */
  overflow: hidden;
  background: #005a2d; /* Slightly darker brand color for FAQ item background */
  color: #FFFFFF; /* White text */
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFFFFF; /* White text */
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: #004d26; /* Even darker on hover */
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFFFFF; /* White text */
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF; /* White toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #017439; /* Main brand color for answer background */
  border-radius: 0 0 5px 5px;
  color: #F0F0F0; /* Slightly off-white text for answer */
}

.page-gdpr__link-inline {
    color: #FFFF00; /* Custom color for links in dark section, for contrast */
    text-decoration: underline;
}

.page-gdpr__link-inline:hover {
    color: #FFD700; /* Lighter yellow on hover */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gdpr__container {
        padding: 15px;
    }

    .page-gdpr__hero-image {
        margin-bottom: 20px;
    }

    .page-gdpr__main-title {
        font-size: 32px;
    }

    .page-gdpr__description {
        font-size: 16px;
        max-width: 90%;
    }

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

    .page-gdpr__sub-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-gdpr__paragraph {
        font-size: 15px;
    }

    .page-gdpr__image-text-block {
        gap: 20px;
    }

    .page-gdpr__content-image {
        max-width: 45%;
    }

    .page-gdpr__list-item {
        font-size: 15px;
        padding: 12px 18px;
    }

    .page-gdpr__cta-text {
        font-size: 18px;
    }

    .page-gdpr__btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
    details.page-gdpr__faq-item summary.page-gdpr__faq-question { padding: 15px 18px; }
    .page-gdpr__faq-qtext { font-size: 15px; }
    details.page-gdpr__faq-item .page-gdpr__faq-answer { padding: 0 18px 18px; }
}

@media (max-width: 768px) {
    /* 1. Hero Section */
    .page-gdpr__hero-section {
        padding-top: 10px !important; /* Fixed top padding, body handles header offset */
        padding-bottom: 30px;
    }
    .page-gdpr__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0; /* Remove border-radius on mobile for full width */
        box-shadow: none;
        margin-bottom: 20px;
    }
    .page-gdpr__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gdpr__main-title {
        font-size: 28px;
        margin-bottom: 10px;
        max-width: 100%;
    }
    .page-gdpr__description {
        font-size: 15px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* 2. Content Sections */
    .page-gdpr__content-section,
    .page-gdpr__faq-section {
        padding: 40px 0;
    }
    .page-gdpr__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gdpr__section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .page-gdpr__sub-title {
        font-size: 20px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-gdpr__paragraph {
        font-size: 15px;
        margin-bottom: 15px;
    }

    /* 3. Image and Text Block */
    .page-gdpr__image-text-block {
        flex-direction: column; /* Stack image and text vertically */
        gap: 20px;
        margin-bottom: 30px;
    }
    .page-gdpr__image-text-block--reversed {
        flex-direction: column; /* Keep same stacking order */
    }
    .page-gdpr__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Reset min-width for mobile */
        max-width: 100%; /* Ensure it takes full width */
    }
    .page-gdpr__list {
        min-width: unset;
        width: 100%;
    }
    .page-gdpr__list-item {
        font-size: 14px;
        padding: 10px 15px;
    }

    /* 4. CTA Block and Button */
    .page-gdpr__cta-block {
        padding: 30px 20px;
        margin-top: 40px;
    }
    .page-gdpr__cta-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-gdpr__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
    }

    /* 5. FAQ Section */
    .page-gdpr__faq-section {
        padding: 40px 0;
    }
    details.page-gdpr__faq-item summary.page-gdpr__faq-question { 
        padding: 15px !important; 
        flex-wrap: wrap;
    }
    .page-gdpr__faq-qtext {
        font-size: 15px !important;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
    }
    .page-gdpr__faq-toggle {
        font-size: 20px !important;
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    details.page-gdpr__faq-item .page-gdpr__faq-answer { 
        padding: 0 15px 15px !important; 
    }
    .page-gdpr__link-inline {
        font-size: 14px; /* Adjust font size for mobile */
    }

    /* General image and container rules for mobile */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are handled by .page-gdpr__container */
    }
}