/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 */
}

/* Sections */
.page-gdpr__section {
  padding: 60px 20px;
  text-align: left;
}

.page-gdpr__dark-section {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff;
}

.page-gdpr__light-bg {
  background-color: #ffffff; /* White background for content areas */
  color: #333333; /* Dark text for light backgrounds */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-gdpr__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for emphasis, high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Titles */
.page-gdpr__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: #017439; /* Primary brand color for titles on light background */
}

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

/* Paragraphs */
.page-gdpr p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

/* Lists */
.page-gdpr__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-gdpr__list--white .page-gdpr__list-item {
  color: #ffffff;
}

/* 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;
  cursor: pointer;
  max-width: 100%; /* Important for mobile responsiveness */
  box-sizing: border-box; /* Include padding and border in element's total width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.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: #e02020;
  border-color: #e02020;
}

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

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

/* Images */
.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* No filter property to change color */
}

/* Links */
.page-gdpr a {
  color: #FFFF00; /* Highlight links with yellow, high contrast */
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.page-gdpr__link-white {
  color: #ffffff;
}

.page-gdpr__link-white:hover {
  color: #FFFF00;
}

/* Call to Action Bottom */
.page-gdpr__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Primary brand color */
}

.page-gdpr__text-center {
  text-align: center;
}

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

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 20px;
  background-color: #f8f8f8; /* Light background for FAQ */
  color: #333333;
}

.page-gdpr__faq-container-inner {
  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 5px rgba(0, 0, 0, 0.05);
}

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

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

.page-gdpr__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: #017439; /* Primary brand color for FAQ question titles */
}

.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); /* Change to 'x' or rotate for '-' */
}

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

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
  padding-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.2em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 400px;
  }

  .page-gdpr__main-title {
    font-size: 1.8em;
    line-height: 1.3;
  }
  .page-gdpr__intro-text {
    font-size: 1em;
  }
  .page-gdpr__section {
    padding: 40px 15px;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  .page-gdpr p {
    font-size: 1em;
  }
  .page-gdpr__list {
    margin-left: 15px;
  }

  /* Mobile image 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__faq-section,
  .page-gdpr__cta-bottom,
  .page-gdpr__faq-container-inner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .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: 12px 20px !important; /* Adjust padding for mobile */
  }

  /* FAQ mobile adjustments */
  .page-gdpr__faq-question {
    padding: 15px;
  }
  .page-gdpr__faq-title {
    font-size: 1em;
  }
  .page-gdpr__faq-answer {
    padding: 0 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-section {
    min-height: 350px;
  }
  .page-gdpr__main-title {
    font-size: 1.5em;
  }
  .page-gdpr__intro-text {
    font-size: 0.95em;
  }
  .page-gdpr__section-title {
    font-size: 1.4em;
  }
}

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