/* style/terms-conditions.css */

/* --- Base Styles & Color Contrast --- */
.page-terms-conditions {
  color: #ffffff; /* Body background #0a0a0a is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background is handled by sections */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #0a0a0a; /* Match body background for seamless look */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 1200px; /* Constrain image width */
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

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

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #0a0a0a; /* Dark background for content sections */
  color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #26A9E0; /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-terms-conditions__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

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

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

.page-terms-conditions__list-item a {
  color: #26A9E0; /* Links in content */
  text-decoration: underline;
}

/* --- Buttons --- */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #1e87bb; /* Slightly darker on hover */
  border-color: #1e87bb;
}

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #EA7C07; /* Login custom color */
  border: 2px solid #EA7C07;
}

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

/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
  margin-top: 60px;
  padding: 30px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  border-radius: 8px;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  color: #ffffff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
}

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

.page-terms-conditions__faq-item {
  background-color: #0a0a0a; /* Dark background for each FAQ item */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  outline: none;
  color: #ffffff; /* Light text for question */
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item summary:hover {
  background-color: rgba(38, 169, 224, 0.1); /* Subtle hover effect */
}

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

.page-terms-conditions__faq-item summary::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: 15px;
  color: #26A9E0; /* Brand color for toggle icon */
}

/* State for open/closed is handled by JS for the toggle text */

.page-terms-conditions__faq-answer {
  padding: 0 25px 20px;
  color: #f0f0f0; /* Light text for answer */
  font-size: 0.95em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-terms-conditions__content-area {
    padding: 30px 15px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }
}

@media (max-width: 768px) {
  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Mobile video responsiveness (if any) */
  .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; /* body already handles --header-offset */
  }

  /* Mobile button responsiveness */
  .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; /* Force full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove horizontal margins for full width */
    margin-right: 0 !important;
    margin-bottom: 10px !important; /* Add vertical spacing */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-terms-conditions__hero-content {
    padding: 0 15px;
  }
  .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;
    display: flex; /* Ensure flex container for buttons */
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }
  .page-terms-conditions__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 20px 15px;
  }
}