/* Legal pages (/legal/terms, /legal/privacy, /legal/accessibility). Tokens come from /check/check.css. */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--c-dark); color: var(--c-on-dark); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 8px; }
.legal { max-width: 760px; padding-bottom: 24px; }
.doc { padding: 28px 0 36px; border-bottom: 1px solid var(--c-border); scroll-margin-top: 76px; }
.doc:last-of-type { border-bottom: 0; }
.doc h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.2; margin-bottom: 8px; }
.doc h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.35; margin: 26px 0 6px; scroll-margin-top: 76px; }
.doc p, .doc li { font-size: 1.02rem; line-height: 1.75; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 6px; }
.doc a { color: var(--c-primary-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.doc strong { font-weight: 700; }
.binding { display: inline-block; font-size: .85rem !important; font-weight: 700; color: var(--c-muted); background: var(--c-border); border-radius: 999px; padding: 3px 12px; margin: 0 0 14px !important; line-height: 1.5 !important; }
.toc { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; padding: 4px 16px; margin: 6px 0 18px; box-shadow: var(--shadow); }
.toc summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 800; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-inline-start: auto; font-size: 1.3rem; color: var(--c-primary-ink); transition: transform 160ms var(--ease); }
.toc details[open] summary::after { transform: rotate(45deg); }
.toc ol { list-style: none; margin: 0; padding: 0 0 10px; display: grid; gap: 0; columns: 1; }
.toc li { font-size: .98rem; }
.toc a { display: block; padding: 9px 0; text-decoration: none; color: var(--c-text); border-top: 1px solid var(--c-border); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--c-primary-ink); } }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 28px; } .toc li { break-inside: avoid; } }
.tbl { overflow-x: auto; margin: 10px 0 16px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); }
.tbl table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: .96rem; }
.tbl th, .tbl td { padding: 10px 14px; text-align: start; vertical-align: top; border-top: 1px solid var(--c-border); line-height: 1.55; }
.tbl thead th { border-top: 0; background: var(--c-border); font-weight: 800; }
.upd { color: var(--c-muted); font-size: .92rem !important; margin-top: 18px !important; }
.totop { font-size: .95rem; }
.clause h3 { margin-top: 22px; }
.legal-foot { max-width: 760px; padding: 20px 20px 40px; border-top: 1px solid var(--c-border); text-align: center; color: var(--c-muted); font-size: .92rem; }
.flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; }
.legal-foot a { display: inline-block; padding: 8px 0; color: var(--c-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-foot p { margin: 4px 0; }
body { padding-bottom: 0; }
@media print { .bar, .toc, .skip, .totop { display: none; } }
