.terms-main { padding-block: 2.5rem 4rem; }
.terms-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.terms-heading h1 { font-weight: 500; }
.terms-heading p { color: var(--muted); max-width: 38rem; margin-top: 1rem; }
.draft-badge { flex: none; background: #233247; color: #dfdaed; padding: .5rem .85rem; border-radius: 8px; box-shadow: inset 1px 1px 0 #dad4ff26; font-size: .8rem; }
.terms-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 3rem; align-items: start; }
.terms-sidebar { position: sticky; top: 2rem; }
.terms-sidebar h2 { font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: .75rem; letter-spacing: 0; }
.terms-sidebar nav a { display: block; min-height: 44px; padding: .65rem .75rem; margin-left: -.75rem; font-size: .875rem; text-decoration: none; border-radius: 8px; }
.terms-sidebar nav a:hover { background: #ffffff08; }
.terms-help { margin-top: 2rem; padding: 1.25rem; border-radius: 14px; background: var(--material); box-shadow: var(--shadow); font-size: .8rem; }
.terms-help .icon { color: #bde2d8; width: 26px; height: 26px; margin-bottom: .6rem; }
.terms-help p { color: var(--muted); margin-bottom: .65rem; }
.terms-help a { display: inline-block; padding-block: .5rem; }
.terms-document { padding: clamp(1.5rem,4vw,3.5rem); border: 1px solid transparent; border-radius: 24px; background: var(--material) padding-box, var(--edge) border-box; box-shadow: var(--shadow-raised); min-width: 0; }
.terms-document h2 { font-size: 1.45rem; font-weight: 500; margin-bottom: 1rem; }
.terms-document p, .terms-document li { color: var(--muted); font-size: .9375rem; line-height: 1.95; }
.terms-document p + p { margin-top: 1rem; }
.terms-document ul { padding-left: 1.3rem; margin-block: 1rem; }
.terms-document li + li { margin-top: .65rem; }
.terms-document section { margin-top: 3rem; scroll-margin-top: 2rem; }
.draft-note { padding: 1.5rem; margin: -.5rem -.5rem 0; background: #32405850; border-radius: 14px; box-shadow: inset 1px 1px 0 #c1c7eb1a; }
.draft-note h2 { font-size: 1rem; }
.draft-note p, .terms-document .team-note { font-size: .8125rem; }
.terms-document strong { color: var(--text); font-weight: 600; }
.terms-document .team-note { margin-top: 1.25rem; color: #c5bed8; }
.team-note strong { display: block; font-size: .75rem; letter-spacing: .015em; margin-bottom: .2rem; }
.network-note { display: flex; gap: .85rem; align-items: flex-start; background: #0d1929; border-radius: 12px; padding: 1rem; margin-block: 1.25rem; }
.network-note .icon { margin-top: .35rem; color: #d0e7e1; }
.network-note p { color: #dbe5f0; font-size: .875rem; }
.terms-end { margin-top: 3rem; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.terms-end p { font-size: .8125rem; }
.terms-end .btn { font-size: .875rem; }
@media (max-width: 900px) { .terms-layout { grid-template-columns: 190px minmax(0,1fr); gap: 1.5rem; } }
@media (max-width: 760px) {
  .terms-main { padding-top: 1rem; }
  .terms-heading { display: block; margin-bottom: 2rem; }
  .draft-badge { display: inline-block; margin-top: 1.25rem; }
  .terms-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .terms-sidebar { position: static; }
  .terms-sidebar nav { padding: 1rem; background: #18263b; border-radius: 14px; }
  .terms-sidebar nav a { margin-left: 0; }
  .terms-help { display: none; }
  .terms-document { border-radius: 20px; }
  .draft-note { padding: 1rem; }
  .terms-document section { margin-top: 2.5rem; }
}
@media print {
  body { background: white; color: black; }
  .auth-header, .terms-sidebar, .auth-footer, .terms-end, .skip { display: none; }
  .auth-container { width: 100%; }
  .terms-main { padding: 0; }
  .terms-layout { display: block; }
  .terms-document, .draft-note, .network-note { background: none; box-shadow: none; border: 0; padding: 0; }
  .terms-document p, .terms-document li, .terms-document strong, .terms-document .team-note, .terms-heading p { color: black; }
  .draft-badge { background: none; color: black; box-shadow: none; }
  .terms-document section { break-inside: avoid; }
}
