/* style/terms-conditions.css */
.page-terms-conditions {
  color: #ffffff; /* Body background is dark, so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text contrast */
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-terms-conditions__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: #FFFFFF;
}

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

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

.page-terms-conditions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-terms-conditions__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-terms-conditions__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 30px;
  box-sizing: border-box;
  color: #FFFFFF; /* Light text for dark body background */
}

.page-terms-conditions__section-title {
  font-size: clamp(1.8em, 2.8vw, 2.5em);
  font-weight: 600;
  margin-bottom: 25px;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

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

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

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

/* FAQ Section */
.page-terms-conditions__faq-list {
  margin-top: 30px;
}

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-terms-conditions__faq-item summary {
  list-style: none; /* Remove default marker for details tag */
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for details tag in WebKit */
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  color: #FFFFFF; /* Question text is white */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-terms-conditions__faq-answer {
  padding: 0 25px 18px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-terms-conditions__contact-section .page-terms-conditions__cta-buttons {
  margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-terms-conditions__section {
    padding: 25px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }

  .page-terms-conditions p,
  .page-terms-conditions li,
  .page-terms-conditions__faq-answer {
    font-size: 0.9em;
  }

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

  /* Ensure all images are responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure content area images are not too small */
.page-terms-conditions__content-area img {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

/* Color contrast fixes based on body background (dark) */
.page-terms-conditions__dark-bg {
  color: #ffffff; /* Deep dark background, use white text */
  background: #26A9E0; /* Example for brand color background */
}

.page-terms-conditions__light-bg {
  color: #333333; /* Light background, use dark text */
  background: #ffffff;
}

.page-terms-conditions__medium-bg {
  color: #000000; /* Medium background, default dark text */
  background: #FFFFFF;
}

.page-terms-conditions__text-block {
  color: #f0f0f0; /* Ensure readability on dark body */
}

.page-terms-conditions__card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border for contrast */
}

.page-terms-conditions__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

/* Buttons contrast already handled with primary/secondary styles */