.page-terms-conditions {
  background-color: #08160F;
  color: #F2FFF6;
  font-family: sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-terms-conditions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6;
  margin-bottom: 20px;
  /* No fixed font-size, rely on responsive scaling and other properties */
}

.page-terms-conditions__description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-terms-conditions__content-area {
  padding: 40px 0;
}

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

.page-terms-conditions__section-title {
  color: #57E38D; /* Glow color for section titles */
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #1E3A2A; /* Divider color */
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 20px;
  color: #A7D9B8;
  font-size: 1.05em;
}

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

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  color: #F2FFF6;
  font-size: 1.05em;
}

.page-terms-conditions__image-wrapper {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-terms-conditions__image-wrapper--center {
  text-align: center;
}

.page-terms-conditions__image-wrapper--right {
  text-align: right;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  display: inline-block; /* For alignment */
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-terms-conditions__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #11271B; /* Card BG color */
  border-radius: 10px;
  border: 1px solid #2E7A4E;
}

.page-terms-conditions__cta-text {
  font-size: 1.2em;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-terms-conditions__cta-button--secondary {
  background: #0A4B2C; /* Deep Green for secondary CTA */
  box-shadow: 0 4px 15px rgba(10, 75, 44, 0.4);
}

.page-terms-conditions__cta-button--secondary:hover {
  box-shadow: 0 6px 20px rgba(10, 75, 44, 0.6);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-content {
    padding: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Use clamp for H1 */
  }

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

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

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item,
  .page-terms-conditions__cta-text {
    font-size: 0.95em;
  }

  .page-terms-conditions__container {
    padding: 0 15px;
  }

  /* Mobile content area images must not cause horizontal scroll */
  .page-terms-conditions__content-image {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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

  .page-terms-conditions__cta-button {
    padding: 10px 20px;
    font-size: 1em;
  }
}

/* Ensure all content img in .page-terms-conditions has a min-size in CSS */
.page-terms-conditions img:not(.page-terms-conditions__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure CSS doesn't override HTML width/height to be smaller */
/* These rules are illustrative and ensure compliance with the image optimization requirements */
.page-terms-conditions__hero-image[width="1200"][height="675"] {
  /* max-width: 100%; height: auto; is suitable for responsiveness without overriding */
}
.page-terms-conditions__content-image[width="800"][height="600"] {
  /* max-width: 100%; height: auto; is suitable for responsiveness without overriding */
}
.page-terms-conditions__content-image[width="600"][height="400"] {
  /* max-width: 100%; height: auto; is suitable for responsiveness without overriding */
}