.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 40px;
  background-color: #f8f8f8; /* Light background for hero */
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gdpr__main-heading {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-gdpr__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #555555;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px;
  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;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-gdpr__content-section {
  padding: 60px 0;
}

.page-gdpr__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-gdpr__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-gdpr__sub-heading {
  font-size: 2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-gdpr__dark-bg .page-gdpr__sub-heading {
  color: #ffffff;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.page-gdpr__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
}

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

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

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gdpr__list-item {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
}

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

.page-gdpr__image-wrapper {
  margin: 40px auto;
  max-width: 1000px;
  text-align: center;
  overflow: hidden;
}

.page-gdpr__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-gdpr__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-gdpr__faq-title {
  margin: 0;
  flex-grow: 1;
  color: #017439;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  max-height: 0; /* Initial state for hidden answer */
  overflow: hidden;
  padding: 0 25px; /* Apply horizontal padding even when collapsed */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px; /* Vertical padding when active */
}

.page-gdpr__faq-answer .page-gdpr__paragraph {
  margin-bottom: 0;
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__main-heading {
    font-size: 2.5em;
  }
  .page-gdpr__sub-heading {
    font-size: 1.8em;
  }
  .page-gdpr__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 0 30px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-gdpr__container {
    padding: 0 15px;
  }
  .page-gdpr__main-heading {
    font-size: 2em;
  }
  .page-gdpr__intro-text,
  .page-gdpr__paragraph,
  .page-gdpr__list-item,
  .page-gdpr__card-text,
  .page-gdpr__faq-question {
    font-size: 1em;
  }
  .page-gdpr__sub-heading {
    font-size: 1.5em;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100%; /* Full width buttons on mobile */
    padding: 12px 20px;
  }
  .page-gdpr__card-grid {
    grid-template-columns: 1fr;
  }
  .page-gdpr__hero-image,
  .page-gdpr__content-image,
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__image-wrapper,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-gdpr__faq-question,
  .page-gdpr__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 15px; /* Adjust padding for mobile active state */
  }
}

/* Ensure content area images are not smaller than 200px */
.page-gdpr__content-image {
  min-width: 200px;
  min-height: 200px;
}
.page-gdpr__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Text contrast fixes for dark background */
.page-gdpr__text-contrast-fix {
  color: #ffffff !important;
}