/* style/terms-conditions.css */

/* Base Styles */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly white background as per shared default */
  line-height: 1.6;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden; /* Prevent image overflow */
  background-color: #f0f8ff; /* Light blue background for visual separation */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above image if any overlap occurs (though not intended) */
}

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

.page-terms-conditions__intro-text {
  font-size: 1.15em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

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

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

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

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-terms-conditions__section-title--white {
  color: #ffffff;
}

.page-terms-conditions__subsection-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

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

.page-terms-conditions__list-item {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* Ensure no CSS filter changes image color */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-terms-conditions__cta-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #ffffff;
}

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

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

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

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

.page-terms-conditions__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

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

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

.page-terms-conditions__faq-answer a {
  color: #ffffff;
  text-decoration: underline;
}

/* Keywords highlighting (optional, for visual emphasis) */
.page-terms-conditions .keyword {
  font-weight: bold;
  color: #EA7C07; /* Use 'login' color for emphasis, ensure contrast */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
  }

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

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

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-bottom: 40px;
  }

  .page-terms-conditions__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    padding: 0 15px;
  }

  .page-terms-conditions__intro-text {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
    padding: 12px 15px;
  }

  .page-terms-conditions__cta-wrapper {
    flex-direction: column; /* Stack buttons in CTA wrapper */
    align-items: center;
    padding: 0 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em;
    padding: 0 15px;
  }

  .page-terms-conditions__subsection-title {
    font-size: 1.2em;
    padding: 0 15px;
  }

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 0.95em;
  }

  .page-terms-conditions__list {
    margin-left: 15px;
    padding-right: 15px; /* Add right padding for list */
  }

  /* Images responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Container padding for mobile to prevent overflow */
  .page-terms-conditions__container,
  .page-terms-conditions__content-section,
  .page-terms-conditions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

  .page-terms-conditions__faq-toggle {
    font-size: 1.2em;
  }
}

/* Ensure no filter is used on images */
.page-terms-conditions img {
  filter: none !important;
}

/* Ensure content area images are at least 200x200 */
.page-terms-conditions__content-image {
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-terms-conditions__content-image {
    min-width: unset !important; /* Allow mobile to scale down but respect max-width: 100% */
    min-height: unset !important;
  }
}

/* Specific color for keyword (ensure contrast) */
.page-terms-conditions .keyword {
  color: #EA7C07; /* Login color, ensure good contrast on white bg */
}