.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

.page-terms-conditions__dark-bg {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff; /* White text for dark backgrounds */
}

.page-terms-conditions__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333; /* Dark text for light backgrounds */
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden; /* Prevent image overflow */
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff; /* White text for hero section */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 90%;
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0; /* Slightly off-white for contrast */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 40px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-terms-conditions__cta-button:hover {
  background: #d46c00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__container {
  max-width: 960px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Primary color for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  font-weight: 700;
}

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

.page-terms-conditions__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 1.6;
}

.page-terms-conditions__list-item strong {
  color: #26A9E0; /* Primary color for strong text in list items */
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Constrain content images */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-terms-conditions a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #1a7bb5;
  text-decoration: underline;
}

.page-terms-conditions__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__cta-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 25px;
}

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

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

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    max-width: 100%;
  }

  .page-terms-conditions__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .page-terms-conditions__hero-image {
    margin-top: 20px;
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-terms-conditions__list {
    margin-left: 20px;
  }

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

  .page-terms-conditions__image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-terms-conditions__cta-section {
    padding: 30px 15px;
  }

  .page-terms-conditions__cta-text {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure all img tags within content area adhere to min-size */
  .page-terms-conditions__content-area img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

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

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

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