/* style/terms-conditions.css */

/* Base styles for dark theme, assuming body has a dark background from shared.css */
.page-terms-conditions {
  background-color: var(--background-color, #08160F); /* Fallback if shared.css doesn't define */
  color: var(--text-main, #F2FFF6); /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Ensure dark background */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image is not too small */
  max-height: 600px; /* Limit hero image height */
}

.page-terms-conditions__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-terms-conditions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: #F2FFF6;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-terms-conditions__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-terms-conditions__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-top: 20px;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #08160F; /* Ensure dark background */
  box-sizing: border-box;
}

.page-terms-conditions__section-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-terms-conditions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-terms-conditions__section-description {
  font-size: 1rem;
  color: #A7D9B8;
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__article {
  margin-bottom: 40px;
}

.page-terms-conditions__article-subtitle {
  font-size: 1.8rem;
  color: #2AD16F; /* Brand green for subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  padding-bottom: 10px;
}

.page-terms-conditions__article p {
  margin-bottom: 15px;
  color: #F2FFF6;
}

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

.page-terms-conditions__list li {
  margin-bottom: 8px;
  color: #A7D9B8;
}

.page-terms-conditions__list li strong {
  color: #F2FFF6;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  box-sizing: border-box;
}

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

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

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #0A4B2C; /* Deep Green for question background */
  color: #F2FFF6;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-terms-conditions__faq-question:hover {
  background-color: #13994A; /* Slightly lighter green on hover */
}

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

.page-terms-conditions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.page-terms-conditions__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #11271B; /* Card BG */
  color: #A7D9B8;
}

/* For <details> tag, browser handles max-height, only need padding */
.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
  max-height: 2000px; /* Arbitrarily large value */
  padding: 15px 20px;
}

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


/* Responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-terms-conditions__hero-content {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .page-terms-conditions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__cta-button--small {
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-terms-conditions__article-subtitle {
    font-size: 1.5rem;
  }

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

  .page-terms-conditions__faq-section {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__faq-question {
    padding: 12px 15px;
  }

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

  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 15px;
  }
}