:root {
  --main-color: #11A84E;
  --aux-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-terms-conditions {
  color: var(--text-main, #F2FFF6); /* Default text color for the page, based on dark background */
  background-color: var(--background, #08160F); /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding as per instructions */
  background-color: var(--background, #08160F);
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-terms-conditions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  color: var(--text-main, #F2FFF6);
}

.page-terms-conditions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 font size */
}

.page-terms-conditions__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: var(--background, #08160F); /* Consistent background */
  color: var(--text-main, #F2FFF6);
}

.page-terms-conditions__section-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E); /* Using gold for section titles for emphasis */
}

.page-terms-conditions__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

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

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

.page-terms-conditions__faq-item {
  background-color: var(--card-bg, #11271B); /* Card BG color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E); /* Border color */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-terms-conditions__faq-item[open] > .page-terms-conditions__faq-question {
  background-color: var(--deep-green, #0A4B2C); /* Darker on open */
}

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

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--glow, #57E38D); /* Glow color for toggle */
}

.page-terms-conditions__faq-answer {
  padding: 0 25px 18px;
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  max-height: 0; /* For div based accordion */
  overflow: hidden; /* For div based accordion */
  transition: max-height 0.3s ease-out; /* For div based accordion */
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
  max-height: none; /* Let content dictate height for details/summary */
  padding-top: 10px;
}
/* Fallback for div based accordion, if JS is used to toggle 'active' class */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show content */
}


.page-terms-conditions__cta-section {
  background-color: var(--deep-green, #0A4B2C); /* Deep Green background */
  padding: 80px 20px;
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

.page-terms-conditions__cta-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E); /* Gold for CTA title */
}

.page-terms-conditions__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary, #A7D9B8);
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--glow, #57E38D);
  text-decoration: none;
  border: 2px solid var(--glow, #57E38D);
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-terms-conditions__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    max-width: 700px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-terms-conditions__section-title {
    font-size: 24px;
  }
  .page-terms-conditions__cta-title {
    font-size: 28px;
  }
}

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

  .page-terms-conditions__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

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

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

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

  .page-terms-conditions__content-area {
    padding: 40px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__text-block {
    font-size: 15px;
  }

  /* Images responsive rules */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* All containers with images */
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__content-area,
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons responsive rules */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to prevent text touching edges */
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px; /* Adjust gap for vertical stacking */
    overflow: hidden !important;
  }

  .page-terms-conditions__cta-section {
    padding: 60px 15px;
  }

  .page-terms-conditions__cta-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }
}