/* Legal pages in the Nexa night-aurora style. Motion: sections surface as you read, a mint rail tracks progress. */
:root { --bg: #04060a; --card: rgba(12,16,22,.7); --ink: #e9eef3; --muted: #93a1b0; --line: rgba(255,255,255,.085); --accent: #3ee6a8; --on-accent: #03140d; --out: cubic-bezier(.16,1,.3,1); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; }
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora .a1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -30vmax; } .aurora .a2 { width: 48vmax; height: 48vmax; right: -20vmax; top: -18vmax; }
.aurora .a3 { width: 40vmax; height: 40vmax; left: 30vw; bottom: -34vmax; } .aurora .a4 { width: 30vmax; height: 30vmax; right: 0; bottom: -16vmax; }
.top, main, footer { position: relative; z-index: 1; }
.rail { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 5; background: linear-gradient(90deg, #10b981, #3ee6a8); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
.top { max-width: 820px; margin: 0 auto; padding: 22px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; animation: drop .6s var(--out) both; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.dot { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #46ebb0, #138a66); position: relative; box-shadow: 0 0 16px rgba(62,230,168,.4); }
.dot::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; background: var(--bg); }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.top nav a { text-decoration: none; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--out); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a:hover::after, .top nav a[aria-current]::after { transform: scaleX(1); }
main { max-width: 820px; margin: 0 auto; padding: 24px 16px 80px; }
h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 10px; animation: rise .8s var(--out) .05s both; }
h1 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--accent); }
.meta { color: var(--muted); margin: 0 0 30px; animation: rise .8s var(--out) .12s both; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 34px; box-shadow: inset 3px 0 0 var(--accent); animation: rise .8s var(--out) .2s both; }
.summary h2 { margin-top: 0; font-size: 17px; }
.summary ul { margin: 0; padding-left: 20px; }
h2 { font-size: 21px; letter-spacing: -.01em; margin: 34px 0 8px; }
p, li { color: #c3ccd5; }
li::marker { color: var(--accent); }
ul { padding-left: 20px; }
li { margin: 4px 0; }
b, strong { color: var(--ink); }
.todo { background: rgba(62,230,168,.16); color: var(--accent); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer div { max-width: 820px; margin: 0 auto; padding: 24px 16px; display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--accent); }
/* Reading reveal: each heading slides its accent bar in when it surfaces */
.js .rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--out), transform .7s var(--out); }
.js .rv.in { opacity: 1; transform: none; }
h2.rv { padding-left: 14px; position: relative; }
h2.rv::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 3px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .6s var(--out) .15s; }
h2.rv.in::before { transform: scaleY(1); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 20px, 0); } }
@keyframes drop { from { opacity: 0; transform: translate3d(0, -14px, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .js .rv { opacity: 1; transform: none; } }

/* Bigger tap areas on phones without changing the layout */
@media (pointer: coarse), (max-width: 820px) {
  .top nav a, footer a, main a { padding-block: 12px; margin-block: -12px; }
  .brand { padding-block: 8px; margin-block: -8px; }
}

/* Social links at the bottom: round buttons that lift and glow mint on hover */
.social { display: inline-flex; gap: 10px; align-items: center; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: #c9d4dc; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); text-decoration: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .2s, border-color .2s, background .2s; }
.social a:hover { transform: translateY(-3px); color: #03140d; background: #3ee6a8; border-color: #3ee6a8; }
.social svg { display: block; }
footer .social { margin-left: auto; }
footer div { align-items: center; }
