/* Terms & Conditions page styles */
.page-terms-conditions {
  --brand-primary: #017439;
  --brand-white: #FFFFFF;
  --brand-register: #C30808;
  --brand-login: #C30808;
  --brand-btn-text: #FFFF00;
  --text-dark: #1a1a1a;
  --text-body: #2b2b2b;
  --text-muted: #4a5568;
  --surface-light: #f4f9f6;
  --surface-mid: #e8f3ed;
  --border-soft: #cfe3d8;
  background-color: #FFFFFF;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.page-terms-conditions__hero-section {
  padding: 10px 20px 40px;
  background: linear-gradient(180deg, #eaf6ef 0%, #ffffff 100%);
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(1, 116, 57, 0.15);
}

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

.page-terms-conditions__hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-terms-conditions__hero-title {
  color: #01452b;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.page-terms-conditions__hero-intro {
  color: #2b2b2b;
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto 24px;
}

.page-terms-conditions__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}

.page-terms-conditions__hero-note {
  color: #4a5568;
  font-size: 0.875rem;
  margin: 0;
}

.page-terms-conditions__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-terms-conditions__btn--register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-terms-conditions__btn--login {
  background-color: #C30808;
  color: #FFFF00;
}

.page-terms-conditions__btn--support {
  background-color: #017439;
  color: #FFFFFF;
}

.page-terms-conditions__btn:hover,
.page-terms-conditions__btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  opacity: 0.95;
}

.page-terms-conditions__toc-section {
  padding: 40px 20px;
  background-color: #f4f9f6;
}

.page-terms-conditions__section-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-terms-conditions__section-title {
  color: #01452b;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #017439;
  line-height: 1.35;
}

.page-terms-conditions__toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}

.page-terms-conditions__toc-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed #cfe3d8;
  transition: color 0.2s ease;
}

.page-terms-conditions__toc-link:hover,
.page-terms-conditions__toc-link:focus {
  color: #C30808;
  text-decoration: underline;
}

.page-terms-conditions__content-section {
  padding: 36px 20px;
  background-color: #ffffff;
}

.page-terms-conditions__content-section:nth-of-type(even) {
  background-color: #f9fcfa;
}

.page-terms-conditions__text {
  color: #2b2b2b;
  font-size: 1.02rem;
  margin: 0 0 18px;
}

.page-terms-conditions__text:last-child {
  margin-bottom: 0;
}

.page-terms-conditions__list {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}

.page-terms-conditions__list-item {
  color: #2b2b2b;
  font-size: 1.02rem;
  margin-bottom: 10px;
  padding-left: 4px;
}

.page-terms-conditions__inline-link {
  color: #017439;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.page-terms-conditions__inline-link:hover,
.page-terms-conditions__inline-link:focus {
  color: #C30808;
}

.page-terms-conditions__image-section {
  padding: 36px 20px;
  background-color: #f4f9f6;
}

.page-terms-conditions__image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(1, 116, 57, 0.12);
}

.page-terms-conditions__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions__cta-section {
  padding: 52px 20px;
  background: linear-gradient(135deg, #017439 0%, #01452b 100%);
}

.page-terms-conditions__cta-box {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.page-terms-conditions__cta-title {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.35;
}

.page-terms-conditions__cta-text {
  color: #e8f3ed;
  font-size: 1.02rem;
  margin: 0 auto 26px;
  max-width: 700px;
}

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

.page-terms-conditions__cta-actions .page-terms-conditions__btn {
  flex: 0 1 auto;
}

@media (max-width: 1024px) {
  .page-terms-conditions__toc-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    overflow-x: hidden;
    max-width: 100%;
  }

  .page-terms-conditions__hero-section {
    padding: 10px 14px 26px;
  }

  .page-terms-conditions__hero-container {
    gap: 18px;
    width: 100%;
    max-width: 100%;
  }

  .page-terms-conditions__hero-image {
    border-radius: 12px;
  }

  .page-terms-conditions__hero-title {
    margin-bottom: 14px;
    line-height: 1.35;
  }

  .page-terms-conditions__hero-intro {
    font-size: 0.98rem;
    margin-bottom: 18px;
  }

  .page-terms-conditions__hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-terms-conditions__btn {
    width: 100%;
    max-width: 100%;
    padding: 13px 20px;
    font-size: 0.98rem;
    box-sizing: border-box;
  }

  .page-terms-conditions__toc-section,
  .page-terms-conditions__content-section,
  .page-terms-conditions__image-section,
  .page-terms-conditions__cta-section {
    padding: 24px 14px;
  }

  .page-terms-conditions__toc-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-terms-conditions__toc-link {
    font-size: 0.94rem;
    padding: 10px 0;
  }

  .page-terms-conditions__section-title {
    font-size: 1.18rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  .page-terms-conditions__text,
  .page-terms-conditions__list-item {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .page-terms-conditions__list {
    padding-left: 18px;
  }

  .page-terms-conditions__cta-title {
    font-size: 1.25rem;
  }

  .page-terms-conditions__cta-text {
    font-size: 0.96rem;
  }

  .page-terms-conditions__cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-terms-conditions__cta-actions .page-terms-conditions__btn {
    width: 100%;
    flex: 1 1 auto;
  }

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