/* style/terms-conditions.css */

/* Body background color from shared.css: var(--background) */
/* Assuming --background is dark, text colors will be light for contrast. */

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

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  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;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Slightly dim the image for text readability */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E; /* Border */
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
  margin-right: 15px;
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: #F2FFF6; /* Text Main */
  border-color: #F2FFF6;
  transform: translateY(-2px);
}

.page-terms-conditions__content-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-terms-conditions__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-terms-conditions__text-block {
  margin-bottom: 30px;
  padding: 20px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-terms-conditions__text-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.page-terms-conditions__section-title {
  font-size: 1.8em;
  color: #2AD16F; /* Button color for emphasis */
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-terms-conditions p {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-terms-conditions p strong {
  color: #F2FFF6; /* Text Main */
}

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

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

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #13994A; /* Darker green for summary */
  color: #F2FFF6;
  border-bottom: 1px solid #2E7A4E;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

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

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  padding: 15px 20px;
  background-color: #0A4B2C; /* Deep Green */
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-terms-conditions__faq-answer p {
  color: inherit;
  margin-bottom: 0;
}

.page-terms-conditions__final-cta {
  text-align: center;
  padding: 30px 20px;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 12px;
  border: 1px solid #2E7A4E;
  margin-top: 40px;
}

.page-terms-conditions__final-cta .page-terms-conditions__section-title {
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.6);
  margin-bottom: 20px;
}

.page-terms-conditions__final-cta p {
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #A7D9B8;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 14px;
  }

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

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

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

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

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-terms-conditions__content-section {
    padding: 0 15px;
    margin: 20px auto;
  }

  .page-terms-conditions__container {
    padding: 15px;
  }

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

  .page-terms-conditions__text-block {
    padding: 15px 0;
  }

  .page-terms-conditions__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  /* Ensure images and videos are responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper,
  .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;
  }
}

/* Contrast Fixes if needed - Not explicitly used but kept for reference */
.page-terms-conditions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-terms-conditions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}