/* Page styles for terms (owner: page agent C; see CONTRIBUTING.md). Shared tokens live in /assets/site.css.
   Reading page (DESIGN_SYSTEM.md rule 2): warm white, 65ch measure, no motion. The contents list sits inline on
   phones and becomes a sticky side column from 64rem; plain CSS, works without JavaScript. */
.terms-head { padding-block: clamp(3rem, 1.5rem + 5vw, 6rem) clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.terms-head h1 { max-width: 18ch; }
.terms-head .draft-note { display: block; width: fit-content; margin: 1.5rem 0 1.75rem; font-size: var(--step-1); font-weight: 700; }
.terms-head .lead { margin-bottom: 1rem; }

.terms-body { display: grid; gap: 1rem; padding-block: 2.5rem var(--section); }

.toc { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.toc-title { font-size: var(--step-2); margin-bottom: 0.75rem; }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { font-size: var(--step-0); line-height: 1.45; }
.toc li + li { margin-top: 0.45rem; }
.toc li::marker { color: var(--slate); }
.toc a { color: var(--navy); }

@media (min-width: 40rem) and (max-width: 63.99rem) { .toc ol { columns: 2; column-gap: 2.5rem; } .toc li { break-inside: avoid; } }
@media (min-width: 64rem) {
  .terms-body { grid-template-columns: 17rem minmax(0, 1fr); column-gap: clamp(3rem, 1rem + 4vw, 6rem); align-items: start; }
  .toc { position: sticky; top: 6.5rem; padding: 0 0 0 1.25rem; background: none; border: 0; border-left: 2px solid var(--teal); border-radius: 0; }
}

.terms-text > section { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.terms-text > section:first-child { margin-top: 0; }
@media (min-width: 64rem) { .terms-text > section:first-child { border-top: 0; padding-top: 0; } }
.terms-text h2 { font-size: var(--step-3); margin-bottom: 0.85rem; }
.terms-text h3 { font-size: var(--step-2); margin: 1.75rem 0 0.4rem; }
.terms-text ul { padding-left: 1.25rem; }
.terms-text li + li { margin-top: 0.4rem; }

/* The disclaimer other pages link to: ruled entries, each with its bold lead phrase. */
#service-scope p + p { padding-top: 1rem; border-top: 1px solid var(--rule); }
#service-scope strong { color: var(--navy); }
