/* Legal pages: compact PageHero + one text column (720px). ToS adds a sticky Contents nav. */
.legal-pad { padding-top: 72px; padding-bottom: 120px; }
.legal-col { max-width: 720px; display: flex; flex-direction: column; }
.legal-col--gap { gap: 20px; }
.legal-lead { font-size: 19px; line-height: 1.65; color: var(--text-strong); text-wrap: pretty; }
.legal-lead--pb { padding-bottom: 32px; }
.legal-p { font-size: 17px; line-height: 1.7; color: var(--text-body); text-wrap: pretty; }
.legal-sec { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; border-top: 1px solid var(--border); }
.legal-sec--last { padding-bottom: 0; }
.legal-h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: var(--tracking-heading); color: var(--text-strong); }
.legal-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-ol { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--border-strong); }
.legal-ol li { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; line-height: 1.6; color: var(--text-strong); }
.legal-ol li > span:first-child { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 1.85; color: var(--text-accent); }

/* Terms of Service */
.tos { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,9fr); gap: 64px; align-items: start; }
.tos-nav { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 12px; }
.tos-nav ol { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--border-strong); }
.tos-nav li { border-bottom: 1px solid var(--border); }
.tos-nav a { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; font-size: 14px; line-height: 1.4; color: var(--text-body); }
.tos-nav a:hover { color: var(--text-link); }
.tos-nav a > span:first-child, .tos-details a > span:first-child { flex: none; width: 28px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--text-muted); }
.tos-body { min-width: 0; max-width: 720px; display: flex; flex-direction: column; }
.tos-details { display: none; margin-bottom: 32px; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.tos-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-accent); }
.tos-details summary::-webkit-details-marker { display: none; }
.tos-details summary .icon { color: var(--text-strong); transition: transform var(--dur) var(--ease); }
.tos-details[open] summary .icon { transform: rotate(180deg); }
.tos-details ol { list-style: none; padding: 0 0 8px; display: flex; flex-direction: column; }
.tos-details a { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.4; color: var(--text-body); }
.tos-details a > span:first-child { width: 30px; }
.tos-sec { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; border-top: 1px solid var(--border); }
main .tos-sec[id] { scroll-margin-top: 96px; }
.tos-sec--first,.tos-sec:first-of-type { padding: 0 0 32px; border-top: 0; }
.tos-h { display: flex; gap: 12px; align-items: baseline; }
.tos-h > span:first-child { flex: none; font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; color: var(--text-accent); }
.legal-num { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--text-accent); }
.legal-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-list li { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 8px; font-size: 17px; line-height: 1.7; color: var(--text-body); }
.legal-list li > span:first-child { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 1.95; color: var(--text-muted); }
.legal-list li > span:last-child { text-wrap: pretty; }

@media (max-width: 1023px) {
  .legal-pad { padding-top: 40px; padding-bottom: 64px; }
  .legal-lead { font-size: 17px; }
  .legal-p, .legal-ol li, .legal-list li { font-size: 16px; }
  .legal-h2 { font-size: 20px; }
  .tos { grid-template-columns: minmax(0,1fr); gap: 0; }
  .tos-nav { display: none; }
  .tos-details { display: block; }
}
