.page-terms-conditions {
  color: #333333; /* Dark text for light body background */
}

.page-terms-conditions__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Dark background for hero section */
  color: #FFFFFF; /* Light text for dark hero background */
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-terms-conditions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login color for emphasis */
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for readability */
  position: relative;
  z-index: 1;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

.page-terms-conditions__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.page-terms-conditions__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-terms-conditions__button--login {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-terms-conditions__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  line-height: 1.8;
  font-size: 1.05em;
}

.page-terms-conditions__article {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

.page-terms-conditions__paragraph {
  margin-bottom: 20px;
  color: #333333;
}

.page-terms-conditions__link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }

  .page-terms-conditions__intro-text {
    font-size: 1.1em;
  }

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

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

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

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

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

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

  /* Ensure images in content area are responsive and not too small */
  .page-terms-conditions__article img,
  .page-terms-conditions__content-area img {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Enforce minimum size even on mobile */
    min-height: 200px; /* Enforce minimum size even on mobile */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__intro-text {
    font-size: 0.95em;
  }

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