/* style/terms-conditions.css */

/* --- General Page Styling --- */
.page-terms-conditions {
  background-color: var(--page-bg, #08160F); /* Fallback to custom dark green */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and text */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-terms-conditions__hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1;
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

/* --- Content Wrapper --- */
.page-terms-conditions__content-wrapper {
  background-color: #0A4B2C; /* Deep Green for content background for contrast */
  padding: 60px 0;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Headings --- */
.page-terms-conditions__heading {
  font-size: 2.2em;
  color: #F2C14E; /* Gold accent for main headings */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: bold;
  border-bottom: 2px solid #2E7A4E; /* Border color */
  padding-bottom: 10px;
}

.page-terms-conditions__sub-heading {
  font-size: 1.6em;
  color: #57E38D; /* Glow accent for sub-headings */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* --- Paragraphs and Lists --- */
.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  color: #F2FFF6; /* Main text color */
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  color: #F2FFF6; /* Main text color */
}

/* --- Images in Content --- */
.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* --- CTA Section --- */
.page-terms-conditions__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__cta-text {
  font-size: 1.2em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 30px;
  font-weight: 500;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #FFFFFF; /* White text for button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
}

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

.page-terms-conditions__faq-item {
  background-color: #11271B; /* Card BG color */
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* For details tag */
  color: #F2FFF6; /* Main text color */
}

.page-terms-conditions__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
}

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

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow accent */
  transition: transform 0.3s ease;
}

/* Rotate toggle for open state (JS handles text, CSS handles rotation) */
.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes X-like */
}

.page-terms-conditions__faq-answer {
  padding-top: 15px;
  color: #A7D9B8; /* Secondary text color */
  font-size: 0.95em;
  line-height: 1.5;
}

.page-terms-conditions__faq-answer .page-terms-conditions__paragraph {
  margin-bottom: 0; /* Remove extra margin for paragraphs inside FAQ answer */
  color: #A7D9B8; /* Secondary text color */
}

/* --- Links --- */
.page-terms-conditions__contact-link {
  color: #57E38D; /* Glow accent for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-terms-conditions__contact-link:hover {
  color: #F2C14E; /* Gold accent on hover */
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.5em;
  }
  .page-terms-conditions__heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 15px;
  }

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

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
}