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

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 80px;
  color: #ffffff;
  background-color: #26A9E0; /* Primary brand color */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

.page-gdpr__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

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

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* General Content Sections */
.page-gdpr__content-section,
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__data-processing-section,
.page-gdpr__security-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__cta-final {
  padding: 60px 0;
}

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

.page-gdpr__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

.page-gdpr__light-bg .page-gdpr__section-title {
  color: #26A9E0;
}

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

.page-gdpr__sub-title {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit; /* Inherit from parent section */
}

.page-gdpr__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

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

/* Grid Layout */
.page-gdpr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-gdpr__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-gdpr__dark-section .page-gdpr__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-gdpr__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-gdpr__card-text {
  font-size: 0.95em;
  line-height: 1.6;
}

/* CTA Block */
.page-gdpr__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #f0f8ff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.page-gdpr__cta-block .page-gdpr__cta-text {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #26A9E0;
}

/* Video Section */
.page-gdpr__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

/* Contact Info */
.page-gdpr__contact-info {
  margin-top: 30px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

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

.page-gdpr__contact-info a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* FAQ Section */
.page-gdpr__faq-section {
  text-align: center;
}

.page-gdpr__faq-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
  border-radius: 10px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-gdpr__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  color: #26A9E0;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.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;
  background-color: #ffffff;
}

.page-gdpr__faq-item.active .page-gdpr__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

/* Final CTA */
.page-gdpr__cta-final {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

.page-gdpr__cta-final .page-gdpr__description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-gdpr__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-gdpr__main-title {
    font-size: 2.2em;
  }

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

  .page-gdpr__grid--2-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-gdpr__main-title {
    font-size: 1.8em;
    line-height: 1.3;
  }

  .page-gdpr__description {
    font-size: 1em;
  }

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

  .page-gdpr__sub-title {
    font-size: 1.4em;
  }

  .page-gdpr__grid {
    grid-template-columns: 1fr;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-large,
  .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;
    margin-bottom: 10px; /* Add some spacing for stacked buttons */
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-gdpr__hero-section .page-gdpr__container {
    padding: 0 15px;
  }

  .page-gdpr__container {
    padding: 0 15px;
  }

  /* Image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-gdpr__hero-image-wrapper,
  .page-gdpr__card-image,
  .page-gdpr__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-gdpr__video-wrapper,
  .page-gdpr__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__faq-question,
  .page-gdpr__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.5em;
  }

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

  .page-gdpr__sub-title {
    font-size: 1.2em;
  }

  .page-gdpr__hero-section,
  .page-gdpr__content-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__data-processing-section,
  .page-gdpr__security-section,
  .page-gdpr__cookies-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-final {
    padding: 40px 0;
  }

  .page-gdpr__faq-title {
    font-size: 1em;
  }
}