.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

.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: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Primary brand color for hero section */
  color: #ffffff; /* White text for dark background */
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2; /* Make background image subtle */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for main content */
  color: #333333; /* Dark text for white background */
}

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

.page-terms-conditions h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-terms-conditions ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions li {
  margin-bottom: 8px;
}

.page-terms-conditions a {
  color: #26A9E0; /* Primary brand color for links */
  text-decoration: underline;
}

.page-terms-conditions a:hover {
  color: #1a7bb2;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary buttons */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #d16b05;
}

.page-terms-conditions__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f0f8ff; /* Light background for CTA */
  margin-top: 40px;
  border-radius: 8px;
}

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

/* FAQ Section Styling */
.page-terms-conditions__faq-section {
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.page-terms-conditions__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-terms-conditions__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-terms-conditions__faq-question:hover {
  background-color: #e6e6e6;
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Primary brand color for FAQ questions */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #26A9E0;
}

.page-terms-conditions__faq-answer {
  padding: 15px 20px;
  background-color: #ffffff;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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


/* Responsive Design */
/* All images basic responsive styles */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video basic responsive styles */
.page-terms-conditions video,
.page-terms-conditions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Video container basic responsive styles */
.page-terms-conditions__video-section,
.page-terms-conditions__video-container,
.page-terms-conditions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All buttons basic responsive styles */
.page-terms-conditions__cta-button,
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary,
.page-terms-conditions a[class*="button"],
.page-terms-conditions a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button container basic responsive styles */
.page-terms-conditions__cta-buttons,
.page-terms-conditions__button-group,
.page-terms-conditions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for mobile */
  }

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

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

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

  .page-terms-conditions h3 {
    font-size: 1.3em;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-area,
  .page-terms-conditions__cta-section,
  .page-terms-conditions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile video responsiveness */
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-terms-conditions__video-section {
    padding-top: 10px !important;
  }
  
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .page-terms-conditions__cta-button,
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some spacing between stacked buttons */
  }
  
  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex context for wrap */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}