.page-terms-conditions {
  color: #ffffff; /* Body background is #000000, so text needs to be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
  overflow: hidden;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

.page-terms-conditions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333; /* Light background, so dark text */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

.page-terms-conditions__subsection-title {
  font-size: 1.8em;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #333333;
}

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

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

.page-terms-conditions__list-item::marker {
  color: #26A9E0;
}

.page-terms-conditions__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none; /* Allow clicks to pass through to video/link */
}

.page-terms-conditions__video-cta {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__video-cta:hover {
  background-color: #d16b05;
}

.page-terms-conditions__faq-list {
  margin-top: 50px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-terms-conditions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #ffffff;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  padding: 20px 25px;
  background-color: #ffffff; /* Light background for answer text */
  color: #333333;
  border-top: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-answer .page-terms-conditions__paragraph {
  margin-bottom: 0;
}

.page-terms-conditions__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  margin-top: 60px;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-terms-conditions__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  padding: 15px 35px;
  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__btn-primary:hover {
  background-color: #d16b05;
  transform: translateY(-2px);
}

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

.page-terms-conditions a:hover {
  text-decoration: underline;
}

/* Ensure contrast for text on brand color background */
.page-terms-conditions__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-terms-conditions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header for mobile */
  }

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

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

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

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

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

  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 15px;
  }

  .page-terms-conditions__image-inline,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions__video-cta,
  .page-terms-conditions__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1em !important;
  }

  .page-terms-conditions__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-terms-conditions__faq-answer {
    padding: 15px 20px;
  }

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

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

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