/* style/gdpr.css */

/* Base styles for the GDPR page */
.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light background */
  background-color: #ffffff; /* Explicitly set for contrast */
  line-height: 1.6;
}

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

/* Top Section */
.page-gdpr__top-section {
  background-color: #f0f8f0; /* Light green tint */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 900px;
}

.page-gdpr__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-gdpr__cta-buttons {
  display: flex;
  gap: 15px;
  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: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

/* Content Section */
.page-gdpr__content-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-gdpr__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #333333;
}

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

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

.page-gdpr__list.page-gdpr__list--ordered {
  list-style: decimal;
}

.page-gdpr__image-figure {
  margin: 30px 0;
  text-align: center;
}

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

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

/* Promo Box */
.page-gdpr__promo-box {
  background-color: #e6f2e6;
  border: 1px solid #c9e0c9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-gdpr__promo-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-gdpr__promo-text {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 25px;
}

/* Related Links Section */
.page-gdpr__related-links-section {
  padding: 40px 0;
  background-color: #f9f9f9;
  border-top: 1px solid #eeeeee;
}

.page-gdpr__related-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-gdpr__related-links-item a {
  display: block;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 5px;
  text-decoration: none;
  color: #017439;
  font-weight: 500;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-gdpr__related-links-item a:hover {
  background-color: #f0f8f0;
  border-color: #017439;
}

/* Ensure all links within content are styled */
.page-gdpr__text-block a,
.page-gdpr__list-item a {
  color: #017439;
  text-decoration: underline;
  font-weight: 500;
}

.page-gdpr__text-block a:hover,
.page-gdpr__list-item a:hover {
  color: #005a2e;
  text-decoration: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. Top Section Title + CTA */
  .page-gdpr__top-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 30px;
  }

  .page-gdpr__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-gdpr__description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  /* 4. Buttons and button containers */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-gdpr__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 2. Single column long text containers */
  .page-gdpr__container,
  .page-gdpr__article-wrap {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-gdpr__section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-gdpr__text-block,
  .page-gdpr__list-item {
    font-size: 1em;
  }

  .page-gdpr__list {
    margin-left: 20px;
  }

  /* 3. Generic images and figures */
  .page-gdpr__image,
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }

  .page-gdpr__image-figure {
    margin: 20px 0;
  }

  .page-gdpr__image-caption {
    font-size: 0.85em;
  }

  .page-gdpr__promo-box {
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-gdpr__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .page-gdpr__promo-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-gdpr__related-links-section {
    padding: 30px 0;
  }

  .page-gdpr__related-links-list {
    flex-direction: column;
    gap: 10px;
  }

  .page-gdpr__related-links-item a {
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
  }
}