/* style/terms-conditions.css */

/* Base styles for the page content, ensuring dark text on light body background */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #f8f9fa */
  background-color: #f8f9fa;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  color: #F2FFF6; /* Light text for dark background */
  background: #08160F; /* Deep Green background */
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2; /* Subtle overlay */
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-terms-conditions__intro-text {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping for desktop */
  box-sizing: border-box;
  max-width: 100%;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #11A84E;
  border: 2px solid #11A84E;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #11A84E;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #f8f9fa;
  color: #333333;
}

.page-terms-conditions__section-title {
  font-size: clamp(24px, 3vw, 32px);
  color: #11A84E;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #E0E0E0;
  padding-bottom: 10px;
}

.page-terms-conditions__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-terms-conditions__card-title {
  font-size: clamp(20px, 2.5vw, 24px);
  color: #0A4B2C; /* Deep Green for sub-titles */
  margin-top: 0;
  margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333333;
}

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

.page-terms-conditions__list-item {
  font-size: 16px;
  margin-bottom: 8px;
}

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

.page-terms-conditions__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #0A4B2C; /* Deep Green */
  cursor: pointer;
  background-color: #F5F5F5;
  border-bottom: 1px solid #E0E0E0; /* Separator for summary */
  list-style: none; /* Hide default marker for details/summary */
}

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

.page-terms-conditions__faq-item[open] > .page-terms-conditions__faq-question {
  border-bottom: 1px solid #E0E0E0;
}

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

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #11A84E;
}

.page-terms-conditions__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #333333;
  background-color: #ffffff;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 0; /* No extra margin for last paragraph in answer */
}

.page-terms-conditions__faq-answer a {
  color: #11A84E;
  text-decoration: underline;
}

.page-terms-conditions__final-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #E6F7ED; /* Light green background */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-terms-conditions__final-cta .page-terms-conditions__paragraph {
  font-size: 18px;
  font-weight: bold;
  color: #0A4B2C;
  margin-bottom: 25px;
}

.page-terms-conditions__btn-large {
  padding: 16px 32px;
  font-size: 20px;
  border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    padding: 15px;
  }
  .page-terms-conditions__content-area {
    padding: 30px 15px;
  }
  .page-terms-conditions__card {
    padding: 20px;
  }
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
  }
  .page-terms-conditions__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
  }
  .page-terms-conditions__main-title {
    font-size: 32px;
  }
  .page-terms-conditions__intro-text {
    font-size: 16px;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100%;
    white-space: normal; /* Allow text wrap for buttons on mobile */
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .page-terms-conditions__content-area,
  .page-terms-conditions__card,
  .page-terms-conditions__faq-item,
  .page-terms-conditions__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Adjust for body padding-top, first section minimal padding */
  .page-terms-conditions__hero-section {
    padding-top: 10px !important;
  }

  .page-terms-conditions__section-title {
    font-size: 24px;
  }
  .page-terms-conditions__card-title {
    font-size: 20px;
  }
  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 15px;
  }
  .page-terms-conditions__faq-question {
    font-size: 16px;
  }
  .page-terms-conditions__final-cta .page-terms-conditions__paragraph {
    font-size: 16px;
  }
  .page-terms-conditions__btn-large {
    font-size: 18px;
    padding: 14px 25px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 28px;
  }
  .page-terms-conditions__section-title {
    font-size: 22px;
  }
  .page-terms-conditions__card-title {
    font-size: 18px;
  }
  .page-terms-conditions__faq-question {
    padding: 12px 15px;
  }
  .page-terms-conditions__faq-answer {
    padding: 12px 15px;
  }
}