/* style/terms-conditions.css */

/* Base styles for the page */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #ffffff; /* Assuming body background is light */
}

.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: #f5f5f5;
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  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 {
  max-width: 900px;
  text-align: center;
  z-index: 1;
  padding: 0 15px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.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: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  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: #1e87c2;
  border-color: #1e87c2;
}

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

.page-terms-conditions__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87c2;
  border-color: #1e87c2;
}

.page-terms-conditions__content-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 25px;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  color: #333333;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

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

.page-terms-conditions__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

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

/* FAQ styles (if used) - using details/summary structure */
.page-terms-conditions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px 20px;
}

.page-terms-conditions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-weight: bold;
  color: #26A9E0;
  font-size: 1.1em;
}

.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;
  line-height: 1;
  margin-left: 10px;
}

.page-terms-conditions__faq-answer {
  padding-top: 15px;
  color: #555555;
  border-top: 1px dashed #e0e0e0;
  margin-top: 15px;
}

/* 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 {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-terms-conditions__content-section {
    padding: 40px 15px;
  }

  .page-terms-conditions__container {
    padding: 0 10px;
  }

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

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

  .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__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-terms-conditions__cta-bottom p {
    font-size: 1.1em;
  }
}

/* Ensure content images are at least 200px wide for all non-header/footer images */
.page-terms-conditions__content-section img,
.page-terms-conditions__hero-section img {
  min-width: 200px;
  min-height: 200px; /* Assuming square or height is proportional to width */
}

/* Color contrast safety for various elements */
.page-terms-conditions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-terms-conditions__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-terms-conditions__btn-login:hover {
  background-color: #c96700;
  border-color: #c96700;
}