.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-gdpr__dark-section {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-gdpr__hero-section {
  position: relative;
  padding: 80px 0 40px; /* Adjust padding-top for header offset */
  padding-top: var(--header-offset, 120px); /* Ensure header offset is applied */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2;
}

.page-gdpr__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gdpr__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-gdpr__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons 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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-gdpr__btn--full-width {
  width: 100%;
  max-width: 400px; /* Limit max width for better appearance */
}

.page-gdpr__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-gdpr__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__security-video-section,
.page-gdpr__protection-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section {
  padding: 80px 0;
}

.page-gdpr__principles-grid,
.page-gdpr__rights-list,
.page-gdpr__protection-grid,
.page-gdpr__cookie-types {
  display: grid;
  gap: 30px;
}

.page-gdpr__principles-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-gdpr__rights-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-gdpr__protection-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-gdpr__cookie-types {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.page-gdpr__right-item {
  text-align: center;
  padding: 20px;
}

.page-gdpr__right-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-gdpr__right-title {
  font-size: 1.3em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-gdpr__right-item p {
  color: #E0E0E0;
}

.page-gdpr__protection-section .page-gdpr__card--alt {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__protection-section .page-gdpr__card--alt .page-gdpr__card-title {
  color: #FFFF00;
}

.page-gdpr__protection-section .page-gdpr__card--alt p {
  color: #E0E0E0;
}

.page-gdpr__outro-text {
  text-align: center;
  font-size: 1.1em;
  margin-top: 50px;
  color: inherit;
}

.page-gdpr__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
}

.page-gdpr__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 10px;
}

.page-gdpr__contact-info {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  color: #FFFFFF;
}

.page-gdpr__contact-info p,
.page-gdpr__contact-info li {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.page-gdpr__contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-gdpr__contact-info a {
  color: #FFFF00;
  text-decoration: none;
}

.page-gdpr__contact-info a:hover {
  text-decoration: underline;
}

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

.page-gdpr__faq-item {
  background-color: #F8F8F8;
  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;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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 25px;
  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; /* Sufficiently large height */
  padding: 15px 25px;
}

/* General link styling within content */
.page-gdpr a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-gdpr a:hover {
  text-decoration: underline;
}

.page-gdpr__hero-description a, .page-gdpr__outro-text a {
  color: #FFFF00;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-gdpr__hero-title {
    font-size: 2.5em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 60px 20px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

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

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

  .page-gdpr__cta-buttons {
    flex-direction: column;
    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-left: 15px;
    padding-right: 15px;
  }

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

  .page-gdpr__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-video-section,
  .page-gdpr__protection-section,
  .page-gdpr__cookies-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section {
    padding: 40px 0;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__card-title {
    font-size: 1.3em;
  }

  .page-gdpr__right-icon {
    width: 80px;
    height: 80px;
  }

  .page-gdpr__right-title {
    font-size: 1.1em;
  }

  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper,
  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    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 */
  }

  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-gdpr__faq-answer {
    padding: 0 20px;
  }

  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-title {
    font-size: 1.8em;
  }
  .page-gdpr__section-title {
    font-size: 1.5em;
  }
  .page-gdpr__right-icon {
    width: 60px;
    height: 60px;
  }
}