/* style/gdpr.css */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set for clarity, matching body default */
}

.page-gdpr__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gdpr__top-section {
  background-color: #017439; /* Main brand color for hero section */
  color: #ffffff; /* White text on dark background */
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  text-align: center;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for H1 */
}

.page-gdpr__intro-text {
  font-size: clamp(1em, 2vw, 1.2em);
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

.page-gdpr__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-gdpr__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button text color */
  border: 2px solid #C30808;
}

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

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

.page-gdpr__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005a2e;
}

.page-gdpr__section {
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439; /* Main brand color for section titles */
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-gdpr__sub-title {
  font-size: clamp(1.3em, 2.5vw, 1.8em);
  color: #017439; /* Main brand color for sub titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
}

.page-gdpr a {
  color: #017439;
  text-decoration: underline;
}

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

.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 25px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-gdpr__image-wrapper {
  text-align: center;
  margin-bottom: 20px;
}

.page-gdpr__image-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-gdpr__top-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 30px;
  }

  .page-gdpr__main-title {
    font-size: 2em !important; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-gdpr__intro-text {
    font-size: 1em !important;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
  }

  .page-gdpr__btn,
  .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 {
    padding: 30px 0;
  }

  .page-gdpr__section-title {
    font-size: 1.5em !important;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-gdpr__sub-title {
    font-size: 1.2em !important;
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 0 10px;
  }

  .page-gdpr p {
    font-size: 0.95em !important;
    padding: 0 10px;
  }

  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-gdpr__article-wrap {
    padding: 0 15px; /* Adjust inner padding for mobile content */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__image-caption {
    font-size: 0.8em;
    padding: 0 10px;
  }
}

@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.8em;
  }
  .page-gdpr__intro-text {
    font-size: 1.1em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__sub-title {
    font-size: 1.5em;
  }
}