.page-terms-conditions {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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: #2F6BFF;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Ensure image doesn't overflow */
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
  line-height: 1.2;
}

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

.page-terms-conditions__button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__button--secondary {
  background: #6FA3FF;
  border: 1px solid #6FA3FF;
}

.page-terms-conditions__button--secondary:hover {
  background: #4A8BFF;
  border-color: #4A8BFF;
}

.page-terms-conditions__content-section {
  padding: 40px 20px;
  background-color: #F4F7FB;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-terms-conditions__section-title:first-of-type {
  margin-top: 0;
}

.page-terms-conditions__section-text {
  font-size: 1em;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  line-height: 1.5;
}

.page-terms-conditions__list-item strong {
  color: #000000;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-terms-conditions__inline-link {
  color: #2F6BFF;
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__inline-link:hover {
  color: #6FA3FF;
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-bottom: 30px;
  }

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

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

  .page-terms-conditions__button-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-terms-conditions__button {
    width: 100%;
    padding: 10px 20px;
  }

  .page-terms-conditions__container {
    padding: 20px;
  }

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

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

  /* Enforce mobile image scaling */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-section {
    padding-bottom: 20px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

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

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

  .page-terms-conditions__section-title {
    font-size: 1.4em;
    margin-top: 25px;
  }
}