.terms-page {
  padding: 140px 32px 100px;
  max-width: var(--container);
  margin: 0 auto;
}

.terms-header { max-width: 760px; margin-bottom: 56px; }

.terms-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 14px;
  color: var(--text);
}

.terms-updated {
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.terms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sidebar TOC */
.terms-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(0, 242, 234, 0.15);
  background: var(--bg-panel);
  padding: 16px;
}

.mono-label {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.terms-toc nav { display: flex; flex-direction: column; gap: 2px; }

.terms-toc a {
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 10px;
  transition: color 0.2s, background 0.2s;
  border-left: 2px solid transparent;
  letter-spacing: 0.02em;
}

.terms-toc a:hover { color: var(--text); background: rgba(0, 242, 234, 0.06); }

.terms-toc a.active {
  color: var(--primary);
  background: rgba(0, 242, 234, 0.1);
  border-left: 2px solid var(--primary);
}

/* Content */
.terms-content { max-width: 720px; }

.terms-section {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(0, 242, 234, 0.1);
  scroll-margin-top: 100px;
}

.terms-section:last-child { border-bottom: none; }

.section-num {
  font-size: 12px;
  color: var(--signal);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.terms-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.terms-section .tldr {
  font-size: 13px;
  color: var(--secondary);
  background: rgba(168, 85, 247, 0.06);
  border-left: 2px solid var(--secondary);
  padding: 10px 16px;
  margin-bottom: 20px;
}

.terms-section p {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

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

.terms-section strong { color: var(--primary); font-weight: 600; }

.terms-section ul { margin: 0 0 16px 0; padding: 0; }

.terms-section li {
  font-family: 'Inter', sans-serif;
  list-style: none;
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.terms-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.terms-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-section a:hover { color: var(--signal); }

@media (max-width: 900px) {
  .terms-layout { grid-template-columns: 1fr; }
  .terms-toc { position: static; }
  .terms-toc nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .terms-toc nav { grid-template-columns: 1fr; }
  .terms-page { padding: 120px 20px 80px; }
}
