/* style/terms-conditions.css */

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

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

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

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

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%);
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #F2FFF6;
}

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

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

/* CTA Button */
.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-terms-conditions__cta-button--secondary {
  background: none;
  border: 2px solid #2E7A4E; /* Border */
  color: #F2FFF6;
  margin-left: 15px;
}

.page-terms-conditions__cta-button--secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Border color with opacity */
  transform: translateY(-2px);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__text-block ul {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-terms-conditions__text-block li {
  margin-bottom: 8px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__text-block a {
  color: #2AD16F; /* A vibrant green for links */
  text-decoration: none;
}

.page-terms-conditions__text-block a:hover {
  text-decoration: underline;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  object-fit: cover;
  display: block;
}

.page-terms-conditions__last-updated {
  margin-top: 50px;
  text-align: right;
  font-style: italic;
  color: #A7D9B8; /* Text Secondary */
}

/* CTA Banner */
.page-terms-conditions__cta-banner {
  background-color: #11271B; /* Card BG */
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

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

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-terms-conditions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__content-section {
    padding: 40px 0;
  }

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

  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__text-block p,
  .page-terms-conditions__text-block li {
    font-size: 0.95em;
  }

  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__cta-banner {
    padding: 40px 15px;
  }

  .page-terms-conditions__cta-title {
    font-size: 2em;
  }

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

  /* Ensure all image containers are responsive */
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-terms-conditions__dark-bg {
    color: #F2FFF6; /* Deep green background, ensure light text */
  }
}

/* WCAG AA contrast check for dark background #08160F (brightness 19) */
.page-terms-conditions p,
.page-terms-conditions li,
.page-terms-conditions__hero-description,
.page-terms-conditions__last-updated,
.page-terms-conditions__cta-description {
  color: #F2FFF6; /* Text Main or A7D9B8 (Text Secondary) for sufficient contrast */
}

.page-terms-conditions__section-title,
.page-terms-conditions__main-title,
.page-terms-conditions__cta-title {
  color: #F2C14E; /* Gold for headings */
}

.page-terms-conditions__text-block a {
  color: #2AD16F; /* Ensure link color has good contrast */
}

/* Card backgrounds and text */
.page-terms-conditions__card {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-terms-conditions__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__cta-banner {
  background-color: #11271B; /* Card BG */
}