/* Legal pages (terms, privacy policy): readable long-form prose on top of home.css tokens. */
/* F60 P3: the top bar is the SPA Shell's - 56px, sticky, hairline bottom border, blurred canvas,
   logo left, bell + account menu (or Login) right. Same numbers as packages/ui layout/shell.tsx. */
.legal-page .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; max-width: none; height: 56px; min-height: 56px; padding: 0 16px; gap: 12px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--background) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.legal-page .nav nav { gap: 12px; }
.legal-page main.legal { padding-top: 56px; }
.legal section { scroll-margin-top: 72px; }
/* Session chrome rendered by home.js (mirrors NotificationBell + the Shell account button). */
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted-foreground); font: inherit; cursor: pointer; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--accent); color: var(--accent-foreground); }
.icon-btn.bordered { border-color: var(--border); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 240px; padding: 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.menu[hidden] { display: none; }
.menu .who { padding: 6px 8px 8px; }
.menu .who b { display: block; font-size: 13px; font-weight: 600; }
.menu .who span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-foreground); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--accent); }
.menu svg { width: 16px; height: 16px; fill: none; stroke: var(--muted-foreground); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
main.legal { display: block; flex: 1; }
.legal article { max-width: 780px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.legal-head { margin-bottom: 1.5rem; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.legal .meta { color: var(--muted-foreground); font-size: .95rem; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 2.25rem 0 .75rem; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; }
.legal p { margin: 0 0 .9rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .45rem; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal a.btn { text-decoration: none; }
.legal .btn { margin-top: .25rem; }
.legal table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: .5rem 0 1.25rem; font-size: .95rem; }
.legal th:first-child, .legal td:first-child { width: 26%; }
.legal th:last-child, .legal td:last-child { width: 34%; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--border); line-height: 1.55; overflow-wrap: anywhere; }
.legal th { font-weight: 650; background: color-mix(in srgb, var(--border) 45%, transparent); }
.legal td:first-child { font-weight: 600; }
@media (max-width: 640px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: auto; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--border); padding: .5rem 0; }
  .legal td { border: 0; padding: .15rem 0; }
}
.toc { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--card); }
.toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 0; list-style: none; font-size: .92rem; }
.toc li { margin-bottom: .3rem; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--foreground); }
.toc a:hover { color: var(--primary); }
@media (max-width: 640px) { .toc ol { columns: 1; } }
/* Footer rules live in home.css (linked first on every page) - not duplicated here. */
