/* TheBainsMode legal pages (Friday app listings). Tokens copied from support.css. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #12100E; --raised: #1B1815; --card: #211D19;
  --text: #F4EDE2; --text-mid: #B8AC9C; --text-low: #94897B;
  --signal: #FF5C1A; --signal-ink: #FF5C1A; --on-signal: #14100C;
  --hair: rgba(244,237,226,0.10); --hair-2: rgba(244,237,226,0.17); --edge: rgba(244,237,226,0.42);
  --glow-1: rgba(255,92,26,0.14);
  --f-display: 'Funnel Display', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Host Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'SF Mono', monospace;
  --shell: 1080px; --gutter: clamp(1.1rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #F6F1E8; --raised: #EDE6D9; --card: #E6DECF;
  --text: #17140F; --text-mid: #4A4237; --text-low: #5E5648;
  --signal-ink: #AD3A08; --on-signal: #17140F;
  --hair: rgba(23,20,15,0.12); --hair-2: rgba(23,20,15,0.20); --edge: rgba(23,20,15,0.48);
  --glow-1: rgba(255,92,26,0.16);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--f-body); font-weight: 300; line-height: 1.65; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--signal); text-underline-offset: 0.2em; }
a:hover { color: var(--signal-ink); }
a:active { opacity: 0.8; }
.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--signal); color: var(--on-signal); border-radius: 999px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.top { display: flex; align-items: center; justify-content: space-between; max-width: var(--shell); margin: 0 auto; padding: 1.1rem var(--gutter); }
.mark-glyph { width: 34px; height: 21px; display: block; }
.mark-glyph svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mark-glyph .mg-a { stroke: var(--text); transition: stroke 0.3s var(--ease); }
.mark-glyph .mg-b { stroke: var(--signal); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-mid); }
.brand:hover .mg-a { stroke: var(--signal-ink); }
.brand:hover span { color: var(--text); }
.theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair-2); background: transparent; color: var(--text); cursor: pointer; transition: border-color 0.2s, transform 0.2s var(--ease); }
.theme-toggle:hover { border-color: var(--edge); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .ico { grid-area: 1 / 1; transition: opacity 0.3s, transform 0.4s var(--ease); }
:root[data-theme="dark"] .icon-moon, :root[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }

.label { margin: 0; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); }
.label em { font-style: normal; color: var(--signal-ink); }
.hero { position: relative; max-width: var(--shell); margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) var(--gutter) 2.5rem; border-bottom: 1px solid var(--hair); }
.hero::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 70%; height: 100%; z-index: -1; pointer-events: none; background: radial-gradient(45% 60% at 20% 30%, var(--glow-1), transparent 70%); }
h1 { margin: 1rem 0 1.1rem; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 7.5vw, 5rem); line-height: 1.02; letter-spacing: -0.04em; }
.lede { max-width: 58ch; margin: 0; color: var(--text-mid); }
.meta { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 1.8rem; }

.doc { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: var(--shell); margin: 0 auto; padding: 2.5rem var(--gutter) 4.5rem; }
.toc ol { list-style: none; margin: 0.9rem 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0 0 0.55rem; }
.toc a { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mid); text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--signal-ink); }
.toc a:hover { color: var(--text); }
.body { max-width: 68ch; }
.body section { padding: 1.8rem 0 0.4rem; border-top: 1px solid var(--hair); }
.body section:first-child { padding-top: 0; border-top: 0; }
h2 { margin: 0 0 0.9rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; }
.body p { margin: 0 0 1rem; }
.body ul { margin: 0 0 1rem; padding-left: 1.1em; }
.body li { margin: 0 0 0.5rem; }
.body li::marker { color: var(--signal); }
.note { margin: 0 0 1rem; padding: 1.1rem 1.3rem; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; color: var(--text-mid); }

.foot { max-width: var(--shell); margin: 0 auto; padding: 2rem var(--gutter) 3rem; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; color: var(--text-low); }
.foot p { margin: 0; }

@media (min-width: 768px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 2rem; align-self: start; }
}
