.page-terms-conditions {
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a1a; /* Ensure consistency with shared.css body background */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: 0;
}

.page-terms-conditions__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text box */
  border-radius: 10px;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-terms-conditions__section-wrapper {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for content block */
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__section-heading {
  font-size: 2em;
  color: #FFD700; /* Gold primary color */
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 2px solid #8B0000; /* Red auxiliary color */
  padding-bottom: 10px;
}

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

.page-terms-conditions__link {
  color: #FFD700; /* Gold for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-terms-conditions__cta-section {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__cta-text {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #8B0000; /* Red auxiliary color for button */
  color: #FFD700; /* Gold text for button */
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-terms-conditions__cta-button:hover {
  background-color: #FFD700; /* Gold background on hover */
  color: #8B0000; /* Red text on hover */
  transform: translateY(-3px);
  border-color: #8B0000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions__section-heading {
    font-size: 1.8em;
  }
  .page-terms-conditions__paragraph {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    min-height: 300px;
  }
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__section-heading {
    font-size: 1.6em;
  }
  .page-terms-conditions__section-wrapper {
    padding: 25px 20px;
  }
  .page-terms-conditions__cta-text {
    font-size: 1.2em;
  }
  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
  }
  .page-terms-conditions__content-area {
    padding: 0 15px;
  }
  .page-terms-conditions__section-wrapper {
    overflow-x: hidden; /* Prevent horizontal scroll within content block */
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-section {
    padding: 40px 10px;
  }
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 0.9em;
  }
  .page-terms-conditions__section-heading {
    font-size: 1.4em;
  }
  .page-terms-conditions__paragraph {
    font-size: 0.9em;
  }
  .page-terms-conditions__section-wrapper {
    padding: 20px 15px;
  }
  .page-terms-conditions__cta-text {
    font-size: 1em;
  }
  .page-terms-conditions__cta-button {
    padding: 10px 20px;
    font-size: 1em;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-terms-conditions__content-area img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow image to scale */
  height: auto;
  display: block;
  margin: 20px auto; /* Center images */
}

/* Ensure no filter is applied to images by default within the main content */
.page-terms-conditions img {
  filter: none; /* No filter for images by default */
}

/* Specific filter for hero image for readability */
.page-terms-conditions__hero-image {
  filter: brightness(0.4); /* Darken hero image for text readability */
}