/* style/terms-conditions.css */

/* Base styles for the terms-conditions page, ensuring light text on dark body background */
.page-terms-conditions {
  color: #ffffff; /* Light text for readability on dark body background (#0a0a0a) */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by 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 */
  text-align: center;
  overflow: hidden;
  background-color: rgba(38, 169, 224, 0.1); /* Subtle brand color tint */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Ensure image wrapper doesn't exceed max width */
  margin-bottom: 30px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-terms-conditions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #1e87b5;
  transform: translateY(-2px);
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for content area */
  color: #333333; /* Dark text for readability on white background */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-top: -50px; /* Overlap with hero section slightly */
  position: relative;
  z-index: 2;
}

.page-terms-conditions__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__article {
  margin-bottom: 40px;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.4em;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__text-block {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

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

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

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

.page-terms-conditions__content-area a:hover {
  color: #1e87b5;
}

.page-terms-conditions__image-text-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-terms-conditions__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-terms-conditions__content-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-terms-conditions__text-content {
  flex: 1;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: #26A9E0; /* Brand color background for FAQ */
  color: #ffffff; /* White text on brand color background */
  padding: 40px;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__section-title--faq {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 30px;
}

.page-terms-conditions__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.page-terms-conditions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.page-terms-conditions__faq-answer {
  padding: 0 20px 15px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    padding: 0 15px;
  }

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

  .page-terms-conditions__image-text-block {
    flex-direction: column;
  }

  .page-terms-conditions__image-text-block--reverse {
    flex-direction: column;
  }

  .page-terms-conditions__content-image {
    max-width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

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

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

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

  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-area,
  .page-terms-conditions__faq-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Force responsive images */
  .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-area,
  .page-terms-conditions__container,
  .page-terms-conditions__image-text-block,
  .page-terms-conditions__faq-section,
  .page-terms-conditions__faq-list,
  .page-terms-conditions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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;
    padding-right: 15px;
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Body handles --header-offset */
  }
}