.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Default body background */
}

.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  margin-top: 20px;
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 100%;
  letter-spacing: -0.02em;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 400px; /* Limit max width for button group */
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%;
  box-sizing: border-box;
}

.page-terms-conditions__btn--primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

.page-terms-conditions__btn--primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-terms-conditions__btn--secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-terms-conditions__content-section {
  padding: 40px 0;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.page-terms-conditions__article-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-weight: 600;
}

.page-terms-conditions h3 {
  font-size: 1.5em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.05em;
  color: #333333;
}

.page-terms-conditions ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-terms-conditions li {
  margin-bottom: 8px;
  color: #333333;
}

.page-terms-conditions__image-figure {
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

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

.page-terms-conditions__promo-box {
  background-color: #017439;
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  margin-top: 50px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__promo-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff;
}

.page-terms-conditions__promo-text {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }

  .page-terms-conditions__description {
    font-size: 1em;
  }

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

  .page-terms-conditions h3 {
    font-size: 1.3em;
  }

  .page-terms-conditions p {
    font-size: 1em;
  }

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

  .page-terms-conditions__promo-text {
    font-size: 1.05em;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 350px;
  }
}

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

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    margin-bottom: 30px;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 250px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__hero-content {
    padding: 0 15px;
    margin-top: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-terms-conditions__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 90%;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions__content-section {
    padding: 30px 0;
  }

  .page-terms-conditions__article-wrap {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions h3 {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-terms-conditions p {
    font-size: 1em;
    line-height: 1.6;
  }

  .page-terms-conditions ul {
    margin-left: 20px;
  }

  .page-terms-conditions li {
    font-size: 1em;
  }

  .page-terms-conditions__image-figure {
    margin: 20px auto;
    padding: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__image-caption {
    font-size: 0.9em;
  }

  .page-terms-conditions__promo-box {
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__promo-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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