.page-terms-conditions {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #FFFFFF; /* Explicitly set page background to white */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Minimum height for hero section */
}

.page-terms-conditions__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for hero content */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-terms-conditions__hero-overlay {
  position: absolute;
  text-align: center;
  padding: 20px;
  color: #FFFFFF;
  max-width: 900px;
  z-index: 1;
}

.page-terms-conditions__hero-title {
  font-size: clamp(2em, 5vw, 3.5em);
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
  font-size: clamp(1em, 2vw, 1.25em);
  margin-bottom: 30px;
  color: #F0F0F0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions__hero-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
}

.page-terms-conditions__hero-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-terms-conditions__hero-button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-terms-conditions__hero-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-terms-conditions__hero-button--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-terms-conditions__content-area {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #FFFFFF;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.page-terms-conditions__article {
  padding: 0;
}

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

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

.page-terms-conditions__paragraph a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions__paragraph a:hover {
  text-decoration: underline;
}

.page-terms-conditions__section-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Ensure content images are not too wide */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__section-image--small {
  max-width: 400px;
}

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

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

  .page-terms-conditions__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-terms-conditions__hero-button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .page-terms-conditions__content-area {
    margin: 20px auto;
    padding: 15px;
  }

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

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

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

  /* Ensure all images within the content area are responsive and do not overflow */
  .page-terms-conditions__content-area img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

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

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

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