.page-terms-conditions {
  background-color: #100224;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 20px;
}

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

.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 */
  padding-bottom: 40px;
  background-color: #017439;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  object-fit: cover;
  display: block;
  /* On desktop, image is above text. On mobile, it will also be above text. */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  margin-top: 20px;
}

.page-terms-conditions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* Using clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-terms-conditions__hero-description {
  font-size: 1.1rem;
  color: #E0E0E0;
  margin-bottom: 30px;
}

.page-terms-conditions__content-area {
  padding: 40px 0;
  background-color: #100224;
}

.page-terms-conditions__section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  color: #FFFFFF;
  font-size: 1rem;
}

.page-terms-conditions__last-updated {
  font-size: 0.9rem;
  color: #AAAAAA;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 30px;
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-terms-conditions__list-strong {
  color: #017439;
  font-weight: bold;
}

.page-terms-conditions__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-terms-conditions__contact-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__contact-link:hover {
  color: #01904a;
}

.page-terms-conditions__cta-wrapper {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-height: 44px; /* Ensure touch target size */
  line-height: 1.2; /* Adjust line height for button text */
}

.page-terms-conditions__cta-button:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-bottom: 20px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-terms-conditions__hero-description {
    font-size: 1rem;
  }

  .page-terms-conditions__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 0.95rem;
  }

  .page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min-size for content images */
    min-height: 200px; /* Enforce min-size for content images */
  }

  /* Ensure no horizontal scroll */
  .page-terms-conditions__container {
    padding: 0 15px;
    overflow-x: hidden;
  }

  .page-terms-conditions__cta-button {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
  }
}

@media (max-width: 549px) {
  .page-terms-conditions__hero-content {
    padding: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .page-terms-conditions__hero-description {
    font-size: 0.9rem;
  }

  .page-terms-conditions__section-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .page-terms-conditions__list {
    padding-left: 15px;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-terms-conditions img {
  min-width: 200px;
  min-height: 200px;
}