/* style/terms-conditions.css */

/* Global styles for the page content, ensuring contrast with body background */
.page-terms-conditions {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure no overflow from image */
  box-sizing: border-box;
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and content */
  border-radius: 8px;
}

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

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

.page-terms-conditions__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 20px;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Text Main */
  margin-top: 50px;
  margin-bottom: 25px;
  font-weight: 600;
  border-bottom: 2px solid #2E7A4E; /* Border */
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  font-size: 1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-terms-conditions__paragraph a {
  color: #2AD16F; /* A lighter green for links */
  text-decoration: underline;
}

.page-terms-conditions__paragraph a:hover {
  color: #57E38D; /* Glow */
}

.page-terms-conditions__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-terms-conditions__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.page-terms-conditions__button-group--bottom {
  margin-top: 60px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Glow */
}

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

.page-terms-conditions__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #57E38D; /* Glow */
  border-color: #57E38D; /* Glow */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 20px;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

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

.page-terms-conditions__faq-item {
  background-color: #08160F; /* Background */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-terms-conditions__faq-question:hover {
  background-color: rgba(42, 209, 111, 0.08); /* Slight hover effect */
}

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

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Lighter green for toggle */
}

.page-terms-conditions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Ensure details open state styling for toggle */
.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  content: "−"; /* Change to minus when open (handled by JS for robustness) */
}


/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-image {
    width: calc(100% + 40px); /* Adjust for padding on smaller screens if needed */
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
  }
}

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

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

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

  .page-terms-conditions__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-terms-conditions__content-section,
  .page-terms-conditions__faq-section {
    padding: 40px 15px;
  }

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

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

  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

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

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

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

  /* Specific mobile overrides for containers with images/videos */
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-section,
  .page-terms-conditions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-terms-conditions__video-section { /* If video existed, this would apply */
    padding-top: 10px !important;
  }
}

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

/* Desktop-specific width for video container if flex is used */
.page-terms-conditions__video-container {
  width: 100%; /* Ensure this is present for desktop */
}