/* style/gdpr.css */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background, so light text */
  background-color: #000000; /* Matching shared body background */
}

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  overflow: hidden;
}

.page-gdpr__hero-container {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

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

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
}

.page-gdpr__btn-primary {
  background-color: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Custom font color for register/login */
  border: none;
}

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

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

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

.page-gdpr__content-section,
.page-gdpr__rights-section,
.page-gdpr__cookie-section,
.page-gdpr__commitment-section {
  background-color: #ffffff; /* Light background for content */
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

.page-gdpr__principles-section,
.page-gdpr__measures-section,
.page-gdpr__contact-section {
  background-color: #017439; /* Brand primary color for sections */
  color: #ffffff; /* Light text for brand primary background */
  padding: 60px 20px;
}

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

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

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

.page-gdpr__text-link {
  color: #FFFF00; /* Custom color for links in dark sections */
  text-decoration: underline;
}

.page-gdpr__text-link:hover {
  color: #f0f0f0;
}

.page-gdpr__light-bg .page-gdpr__text-link {
  color: #017439; /* Brand primary for links in light sections */
}

.page-gdpr__light-bg .page-gdpr__text-link:hover {
  color: #005a2e;
}

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

.page-gdpr__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #ffffff; /* Light text for dark card background */
}

.page-gdpr__light-bg .page-gdpr__card {
  background-color: #f9f9f9; /* Light background for cards in light sections */
  color: #333333; /* Dark text for light card background */
  border: 1px solid #e0e0e0;
}

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

.page-gdpr__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
}

.page-gdpr__rights-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
  color: inherit;
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: inherit;
}

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

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-gdpr__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
  }
  .page-gdpr__main-title {
    font-size: 2em;
  }
  .page-gdpr__hero-description {
    font-size: 1em;
  }
  .page-gdpr__section-title {
    font-size: 1.8em;
  }
  .page-gdpr__grid {
    grid-template-columns: 1fr;
  }
  .page-gdpr__card {
    padding: 25px;
  }
  .page-gdpr__cta-button {
    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__container,
  .page-gdpr__hero-container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-gdpr__hero-image {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.8em;
  }
  .page-gdpr__section-title {
    font-size: 1.6em;
  }
  .page-gdpr__cta-button {
    padding: 12px 20px;
  }
}