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

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Desktop padding for fixed header */
}

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

.page-terms-conditions__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: #ffffff; /* White text over dark hero image */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-terms-conditions__hero-title {
  font-size: 3em;
  color: #E5A000; /* Auxiliary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}

.page-terms-conditions__hero-button,
.page-terms-conditions__action-button {
  display: inline-block;
  background-color: #E5A000; /* Auxiliary color for buttons */
  color: #0A2463; /* Primary color for button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__hero-button:hover,
.page-terms-conditions__action-button:hover {
  background-color: #f5db9c; /* Lighter shade on hover */
  transform: translateY(-2px);
}

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

.page-terms-conditions__section-title {
  color: #0A2463; /* Primary color for section titles */
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #E5A000; /* Auxiliary color for underline */
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-terms-conditions__inline-link {
  color: #0A2463; /* Primary color for inline links */
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__inline-link:hover {
  color: #E5A000; /* Auxiliary color on hover */
}

.page-terms-conditions__action-call {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #0A2463; /* Primary color for action call background */
  border-radius: 10px;
  color: #ffffff;
}

.page-terms-conditions__action-text {
  font-size: 1.4em;
  margin-bottom: 25px;
  color: #f5db9c; /* Complementary color for emphasis */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
    min-height: 300px;
  }

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

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

  .page-terms-conditions__hero-button,
  .page-terms-conditions__action-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

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

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

  .page-terms-conditions__action-text {
    font-size: 1.2em;
  }

  /* CRITICAL: Mobile content image overflow prevention */
  .page-terms-conditions__content-area img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure all images within the content area are at least 200px wide/high if they are not full width */
.page-terms-conditions__content-area img:not(.page-terms-conditions__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* or cover, depending on desired effect */
  display: block;
  margin: 20px auto;
}