/* ── Header — editorial, OpenAI-inspired ── */
.terms-header {
  padding: 156px 20px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.terms-eyebrow {
  font-size: 10px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.13);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.terms-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #000;
}

.terms-updated {
  font-size: 11px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.2);
  letter-spacing: -0.01em;
}

/* ── Main ── */
.terms-main {
  padding: 0 20px 180px;
  max-width: 720px;
  margin: 0 auto;
}

.terms-doc[hidden] {
  display: none;
}

/* ── Compact numbered list ── */
.terms-list {
  list-style: none;
  counter-reset: terms;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.terms-item {
  counter-increment: terms;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0;
}

.terms-item::before {
  content: counter(terms, decimal-leading-zero);
  font-size: 11px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.04em;
  padding-top: 5px;
}

.terms-item-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 8px;
  grid-column: 2;
}

.terms-item p {
  grid-column: 2;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.38);
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}

.terms-item p:last-child {
  margin-bottom: 0;
}

.terms-item a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}

.terms-item a:hover {
  text-decoration-color: #000;
}

html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .terms-header {
    padding: 100px 20px 36px;
  }

  .terms-title {
    font-size: 28px;
  }

  .terms-main {
    padding: 0 20px 100px;
  }

  .terms-item {
    grid-template-columns: 28px 1fr;
  }

  .terms-item p {
    font-size: 13px;
  }
}
