/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #0a0a0a (dark), so text must be light */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  padding-bottom: 60px; /* Space for footer */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
  background-color: #1a1a1a; /* Slightly lighter dark background for hero */
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  min-width: 200px;
  min-height: 200px;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure content takes full width within max-width */
  margin: 0 auto;
  z-index: 1;
  padding: 0 15px; /* Add some padding on sides for smaller screens */
  box-sizing: border-box;
}

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

.page-terms-conditions__description {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for description */
  margin-bottom: 30px;
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

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

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary color for text */
  border: 2px solid #26A9E0;
}

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

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-terms-conditions__dark-bg {
  background-color: #0a0a0a; /* Consistent with body background */
  color: #ffffff;
}

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

.page-terms-conditions__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #f0f0f0; /* Slightly lighter than white for subtitles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-terms-conditions p {
  margin-bottom: 1em;
  font-size: 1.05em;
  color: #e0e0e0; /* Off-white for paragraphs */
}

.page-terms-conditions__content-image {
  width: 100%;
  max-width: 800px; /* Recommended size for content images */
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-terms-conditions__faq-list {
  margin-top: 40px;
}

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

.page-terms-conditions__faq-item details > summary {
  list-style: none; /* Hide default marker */
}
.page-terms-conditions__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0; /* Brand color for FAQ questions */
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: #222;
}

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

.page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 0; /* Remove extra margin for paragraphs inside FAQ answers */
}

.page-terms-conditions__inline-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-terms-conditions__inline-link:hover {
    color: #1e87b8;
}

/* CTA Section at the bottom */
.page-terms-conditions__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-terms-conditions__cta-section .page-terms-conditions__section-title {
  margin-bottom: 20px;
}

.page-terms-conditions__cta-section p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-terms-conditions__btn-large {
  padding: 15px 30px;
  font-size: 1.15em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.6em;
  }
}

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

  .page-terms-conditions__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 40px;
  }

  .page-terms-conditions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 20px;
  }

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

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

  .page-terms-conditions__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    width: 100%;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    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__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-terms-conditions p {
    font-size: 0.95em;
  }

  .page-terms-conditions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 30px auto;
  }

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

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

  .page-terms-conditions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    padding: 60px 15px;
  }
}

/* Image specific rules to ensure minimum size and no small icons */
.page-terms-conditions img {
  min-width: 200px;
  min-height: 200px;
}
.page-terms-conditions__hero-image {
    min-width: unset; /* Hero can be wider than 200px easily */
    min-height: unset;
}
.page-terms-conditions__content-image {
    min-width: 200px;
    min-height: 200px;
}