/* style/terms-conditions.css */
.page-terms-conditions {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: var(--primary-color); /* Dark background from shared.css */
  color: #f0f0f0; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 40px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__section:last-of-type {
  border-bottom: none;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-top: 20px;
}

.page-terms-conditions__subsection-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 15px;
}

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

.page-terms-conditions__paragraph a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__paragraph a:hover {
  color: #e6c200;
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-terms-conditions__list-item {
  margin-bottom: 8px;
}

.page-terms-conditions__content-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 4px 12px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-terms-conditions__button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-terms-conditions__cta-banner {
  background-color: #2a313d; /* A slightly lighter dark tone */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-terms-conditions__cta-content {
  position: relative;
  z-index: 1;
}

.page-terms-conditions__cta-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-5px);
}

/* 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__section-title {
    font-size: 1.8em;
  }

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

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

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

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

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

  .page-terms-conditions__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Ensure all images within content area are responsive and not smaller than 200px */
  .page-terms-conditions__content-area img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
  }

  .page-terms-conditions__hero-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
  }

  .page-terms-conditions__cta-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
  }

  /* Ensure no horizontal scroll */
  .page-terms-conditions {
    overflow-x: hidden;
  }
}