.page-terms-conditions {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Light background as per body background */
  color: #333333; /* Dark text for contrast on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: center;
  background-color: #000000; /* Dark section background for hero */
  color: #FFFFFF; /* Light text on dark background */
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Ensure hero section has a minimum height */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly dim the image to make text more readable */
}

.page-terms-conditions__hero-title {
  position: relative;
  z-index: 2;
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  max-width: 900px;
}

.page-terms-conditions__hero-description {
  position: relative;
  z-index: 2;
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
  max-width: 800px;
}

.page-terms-conditions__hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-terms-conditions__article-heading {
  font-size: 2em;
  color: #000000; /* Main text color for headings */
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45; /* Accent color for headings */
  padding-bottom: 10px;
}

.page-terms-conditions__article-paragraph {
  font-size: 1em;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-terms-conditions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-terms-conditions__btn--register {
  background-color: #FFFFFF; /* Register button background */
  color: #000000; /* Register button text */
  border: 2px solid #FFFFFF;
}

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

.page-terms-conditions__btn--login {
  background-color: #FCBC45; /* Login button background */
  color: #000000; /* Login button text */
  border: 2px solid #FCBC45;
}

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

.page-terms-conditions__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 8px;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #F0F0F0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-terms-conditions__disclaimer-section {
  background-color: #F8F8F8;
  color: #666666;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
  border-top: 1px solid #E0E0E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }

  .page-terms-conditions__article-heading {
    font-size: 1.8em;
  }

  .page-terms-conditions__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
  }

  .page-terms-conditions__hero-container {
    padding: 40px 15px;
    min-height: 300px;
  }

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

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

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

  .page-terms-conditions__btn {
    width: 80%;
    margin: 0 auto; /* Center buttons */
  }

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

  .page-terms-conditions__article-heading {
    font-size: 1.6em;
  }

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

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

  /* Mobile content area images must not overflow */
  .page-terms-conditions__article-image {
    max-width: 100%;
    height: auto;
  }
}

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

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

  .page-terms-conditions__article-heading {
    font-size: 1.4em;
  }

  .page-terms-conditions__cta-title {
    font-size: 1.6em;
  }

  .page-terms-conditions__btn {
    width: 90%;
  }
}