/* Terms page (terms.html) and the acceptance checkbox and step used on sign-in pages. */
.terms-main { padding: 32px 0 64px; }
.terms-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.terms-head h1 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem); margin: 4px 0 8px; max-width: 30ch; }
.terms-head .eyebrow { margin: 0; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.terms-meta { color: var(--muted); margin: 0 0 12px; }
.terms-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.terms-toc details { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 4px 14px; background: #fff; }
.terms-toc summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.terms-toc ol { margin: 0 0 10px; padding-left: 26px; font-size: .9rem; line-height: 1.35; }
.terms-toc li { margin: 6px 0; }
.terms-toc a { color: var(--ink); text-decoration: none; }
.terms-toc a:hover { color: var(--blue); text-decoration: underline; }
.terms-doc { max-width: 72ch; line-height: 1.6; overflow-wrap: anywhere; }
.terms-doc h2 { font-size: 1.3rem; margin: 36px 0 10px; scroll-margin-top: 90px; }
.terms-doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.terms-doc p, .terms-doc li { margin: 0 0 10px; }
.terms-doc ul, .terms-doc ol { padding-left: 24px; margin: 0 0 14px; }
.terms-caps { font-size: .9rem; line-height: 1.5; }
.terms-notice { font-weight: 700; font-size: .92rem; border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 14px 16px; background: #fff; }
.terms-summary { background: var(--mist); border-left: 5px solid var(--blue); border-radius: var(--radius-m); padding: 16px 20px 6px; margin: 0 0 20px; }
.terms-summary .terms-summary-h { margin: 0 0 6px; font-size: 1.15rem; }
.terms-summary-note { font-size: .88rem; color: var(--muted); }
.terms-ack { max-width: 72ch; border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 20px; background: #fff; }
.terms-ack h2 { margin: 0 0 10px; font-size: 1.25rem; }
.terms-ok { font-weight: 600; }
.terms-ok span { color: #1b6b3a; font-weight: 800; margin-right: 4px; }
@media (min-width: 900px) {
  .terms-layout { grid-template-columns: 260px minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .terms-head, .terms-ack { grid-column: 2; }
  .terms-toc { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
  .terms-doc { grid-column: 2; }
}
@media print {
  .site-header, .site-footer, .terms-toc, .terms-tools, .terms-ack, .skip-link { display: none !important; }
  .terms-layout { display: block; }
  .terms-doc { max-width: none; font-size: 10.5pt; }
}

/* The checkbox, wherever it appears */
.terms-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: .9rem; line-height: 1.45; cursor: pointer; text-align: left; }
.terms-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.terms-check a { font-weight: 600; }
.terms-gate h1 { font-size: 1.5rem; margin: 0 0 10px; }
.terms-gate h1:focus { outline: none; }
.terms-gate .btn-primary { width: 100%; margin-top: 8px; }
