/* ===================== TERMS PAGE ===================== */
.terms {
  padding-block: var(--section-padding);
}

.terms__inner {
  width: var(--container);
  max-width: 900px;
  margin-inline: auto;
}

.terms__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--gray-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.terms__back:hover {
  color: var(--teal);
}

.terms__title {
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 0.75rem;
  margin-bottom: 2.5rem;
}

.terms__title-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-text);
}

.terms__body {
  line-height: 1.9;
  color: var(--black);
}

.terms__lead {
  margin-bottom: 2rem;
}

.terms__body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--teal);
}

.terms__body p {
  margin-bottom: 1rem;
}

.terms__body ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.terms__body li {
  margin-bottom: 0.4rem;
}

.terms__body a {
  color: var(--teal);
  text-decoration: underline;
}

.terms__table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.terms__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.terms__table th,
.terms__table td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.terms__table th {
  background: var(--gray-bg);
  font-weight: 700;
}

.terms__note {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.terms__date {
  margin-top: 2.5rem;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.terms__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  padding: 1rem 2.5rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.terms__download:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .terms__inner {
    width: 88%;
  }

  .terms__title {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .terms__title-sub {
    font-size: 0.8rem;
  }

  .terms__body {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .terms__body h2 {
    font-size: 1rem;
    margin-top: 1.75rem;
  }

  .terms__table th,
  .terms__table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .terms__download {
    display: flex;
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
}
