.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 not hidden by fixed header */
}

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  color: #ffffff;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for hero */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6; /* Slightly dim the background image for text readability */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Golden accent for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-terms-conditions__button {
  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;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 1em;
}

.page-terms-conditions__button--register {
  background-color: #FFFFFF; /* White background for register button */
  color: #000000; /* Black text for register button */
  border: 2px solid #FFFFFF;
}

.page-terms-conditions__button--register:hover {
  background-color: #f0f0f0;
  color: #000000;
}

.page-terms-conditions__button--login {
  background-color: #FCBC45; /* Golden background for login button */
  color: #000000; /* Black text for login button */
  border: 2px solid #FCBC45;
}

.page-terms-conditions__button--login:hover {
  background-color: #e0a030;
  color: #000000;
}

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

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

.page-terms-conditions__text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.page-terms-conditions__text-block p {
  flex: 1;
  min-width: 300px; /* Ensure text block has a minimum width */
  font-size: 1.1em;
  color: #333333;
}

.page-terms-conditions__image {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-terms-conditions__image--left {
  order: -1;
}

.page-terms-conditions__image--right {
  order: 1;
}

.page-terms-conditions__button--small {
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 15px;
  background-color: #000000; /* Dark background for general buttons */
  color: #FFFFFF; /* White text for general buttons */
  border: 1px solid #000000;
}

.page-terms-conditions__button--small:hover {
  background-color: #333333;
  color: #FFFFFF;
}

.page-terms-conditions__call-to-action {
  text-align: center;
  background-color: #f8f8f8;
  padding: 50px 20px;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__call-to-action-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-terms-conditions__call-to-action-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

  .page-terms-conditions__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-terms-conditions__text-block {
    flex-direction: column;
    align-items: center;
  }

  .page-terms-conditions__text-block p, .page-terms-conditions__image {
    min-width: unset;
    width: 100%;
  }

  .page-terms-conditions__image--left, .page-terms-conditions__image--right {
    order: unset;
  }

  .page-terms-conditions__button--small {
    width: auto;
    max-width: unset;
  }

  /* Ensure images in content area are responsive and not too small */
  .page-terms-conditions__content-area img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images on mobile */
    min-height: 200px;
  }
  .page-terms-conditions__call-to-action-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__call-to-action-description {
    font-size: 1em;
  }
}