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

.page-terms-conditions__hero-section {
  position: relative;
  padding: 80px 20px;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  text-align: center;
  padding-top: 80px; /* Adjusted to avoid double padding if shared handles body */
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-terms-conditions__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: -40px; /* Overlap with hero slightly */
  position: relative;
  z-index: 1;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #017439; /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #017439;
  padding-bottom: 10px;
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-terms-conditions__text-block a {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
  color: #e0e000;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

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

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

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
    margin-top: -20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

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

  .page-terms-conditions__text-block {
    font-size: 0.95em;
  }

  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__container,
  .page-terms-conditions__cta-buttons--bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure contrast for specific elements on dark background */
.page-terms-conditions h1, .page-terms-conditions h2, .page-terms-conditions h3, .page-terms-conditions h4, .page-terms-conditions h5, .page-terms-conditions h6 {
    color: #017439; /* Brand green for titles */
}

.page-terms-conditions__hero-section h1 {
    color: #ffffff; /* White for hero title on green background */
}

.page-terms-conditions__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-terms-conditions__light-bg {
  background-color: #1a1a1a; /* Adjusted to be dark, but lighter than body */
  color: #ffffff;
}