/* style/terms-conditions.css */

/* Base styles for the page */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Brand color background for hero */
  color: #ffffff;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  height: auto;
  display: block;
  object-fit: cover; /* Ensures image covers the area */
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
}

.page-terms-conditions__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: 0.05em;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-terms-conditions__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

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

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for section titles */
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-terms-conditions__section-title--light {
  color: #ffffff; /* White color for titles on dark backgrounds */
}

.page-terms-conditions__sub-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__content-area p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 800px; /* Example max-width for content images */
  min-width: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: #000000; /* Dark background for FAQ */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-terms-conditions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: #ffffff;
  user-select: none;
  list-style: none; /* Remove default marker for details summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for WebKit browsers */
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

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

  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-terms-conditions__section-title {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  /* Images responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* All containers with images should also be responsive */
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-area,
  .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;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

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

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