/* ==========================================================================
   HACK365 GLOBAL — design system  (Phase 2)
   Tokens → base → layout → components. No framework. No build step.
   ========================================================================== */

:root {
  /* palette */
  --bg:        #070b14;
  --bg-raise:  #0d1424;
  --panel:     #101a30;
  --line:      #1d2a47;
  --line-soft: rgba(120, 150, 220, .14);
  --text:      #e9effc;
  --muted:     #93a5cb;
  --violet:    #6e00ff;
  --violet-soft: rgba(110, 0, 255, .16);
  --cyan:      #00f7ff;
  --cyan-soft: rgba(0, 247, 255, .12);
  --amber:     #ffb800;
  --green:     #00e676;
  --red:       #ff3d71;

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* rhythm */
  --nav-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;
  --section-pad: clamp(2.8rem, 5.5vw, 4.2rem);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint dot-grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(#000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(#000 0%, transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p  { margin: 0 0 1.1em; color: var(--muted); }
strong { color: var(--text); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section   { padding-block: var(--section-pad); }
.section-alt { position: relative; }
.section-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 340px at 12% 20%, var(--violet-soft), transparent 70%),
    radial-gradient(640px 320px at 88% 80%, var(--cyan-soft), transparent 70%);
  opacity: .55;
}

/* accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--violet); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

/* --------------------------------------------------------------------------
   Signature: shell-prompt eyebrows.  <p class="prompt">…</p>
   -------------------------------------------------------------------------- */
.prompt {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.prompt::before { content: "~/hack365 $ "; color: var(--muted); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7, 11, 20, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .container { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--cyan); }
.nav-cta { display: flex; gap: .7rem; margin-left: 1rem; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); padding: .5rem .65rem; cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .site-nav.open { height: auto; align-items: flex-start; padding-bottom: 1.2rem; }
  .site-nav.open .container { flex-wrap: wrap; padding-top: 1rem; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 1rem; margin: 1rem 0 0; order: 3;
  }
  .site-nav.open .nav-cta { display: flex; width: 100%; order: 4; margin: 1.1rem 0 0; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .78rem 1.5rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--violet), #9b4dff);
  color: #fff;
  box-shadow: 0 8px 26px rgba(110, 0, 255, .35);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(110, 0, 255, .5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: calc(var(--nav-h) + clamp(.6rem, 1.5vw, 1rem)); padding-bottom: clamp(1.6rem, 3.5vw, 2.6rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 640px; height: 640px; right: -180px; top: -140px;
  background: radial-gradient(closest-side, var(--violet-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 .accent { background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.15rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 2.6rem; }

.hero-stats { display: flex; gap: clamp(1.4rem, 4vw, 3rem); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--text); }
.stat span { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* terminal window — the signature */
.term {
  background: #0a1120;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0,247,255,.06), 0 0 60px rgba(110,0,255,.12);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .88rem;
}
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: var(--bg-raise); border-bottom: 1px solid var(--line-soft); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-bar i:nth-child(1) { background: var(--red); }
.term-bar i:nth-child(2) { background: var(--amber); }
.term-bar i:nth-child(3) { background: var(--green); }
.term-bar span { margin-left: .6rem; color: var(--muted); font-size: .75rem; }
.term-body { padding: 1.1rem 1.2rem 1.4rem; min-height: 300px; color: #bcd0f5; }
.term-body .ln { display: block; white-space: pre-wrap; word-break: break-word; }
.term-body .c-p { color: var(--cyan); }     /* prompt */
.term-body .c-ok { color: var(--green); }
.term-body .c-warn { color: var(--amber); }
.term-body .c-dim { color: var(--muted); }
.term-caret { display: inline-block; width: .55em; height: 1.05em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .term { font-size: .8rem; }
  .term-body { min-height: 230px; }
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(0, 247, 255, .35); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.card h3 { margin-top: .9rem; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--violet-soft); color: var(--cyan); font-size: 1.25rem;
}

/* challenge feed */
.feed { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feed-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .95rem 1.25rem; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: .82rem; color: var(--text);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255,184,0,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,184,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,184,0,0); } }
.feed-item { display: flex; gap: .85rem; align-items: baseline; padding: .95rem 1.25rem; border-bottom: 1px solid var(--line-soft); font-size: .95rem; color: var(--muted); }
.feed-item:last-child { border-bottom: 0; }
.diff { flex: none; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 4px; border: 1px solid; }
.diff-elite        { color: var(--red);   border-color: rgba(255, 61, 113, .5); }
.diff-advanced     { color: var(--amber); border-color: rgba(255, 184, 0, .5); }
.diff-intermediate { color: var(--green); border-color: rgba(0, 230, 118, .45); }

/* audience panels */
.aud { position: relative; display: block; color: inherit; }
.aud:hover { text-decoration: none; }
.aud .go { position: absolute; top: 1.4rem; right: 1.4rem; color: var(--muted); font-family: var(--font-mono); transition: color .15s, transform .15s; }
.aud:hover .go { color: var(--cyan); transform: translateX(3px); }

/* persona cards */
.persona .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: .25rem .6rem; border-radius: 4px; }

/* quotes */
.quote { display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { margin: 0; font-size: 1rem; color: var(--text); }
.quote figcaption { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.quote blockquote::before { content: "// "; color: var(--cyan); font-family: var(--font-mono); }

/* CTA band */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 15% 0%, var(--violet-soft), transparent),
    radial-gradient(500px 220px at 90% 100%, var(--cyan-soft), transparent),
    var(--panel);
  padding: clamp(2.2rem, 6vw, 3.8rem);
  text-align: center;
}
.cta-band p { max-width: 40rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Forms (feedback portal)
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit; font-size: .98rem;
  padding: .75rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.field-full { grid-column: 1 / -1; }
.form-note { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.form-status { font-family: var(--font-mono); font-size: .85rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, transparent, rgba(13,20,36,.85)); padding: 3.2rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr 1fr; gap: 1.8rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .82rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--muted); font-size: .95rem; }
.site-footer a:hover { color: var(--cyan); text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--muted); }
.socials { display: flex; gap: .9rem; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.socials a:hover { border-color: var(--cyan); color: var(--cyan); }

/* --------------------------------------------------------------------------
   Consent popup
   -------------------------------------------------------------------------- */
.consent {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 520px; margin-inline: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.consent p { font-size: .9rem; margin-bottom: 1rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }


/* ==========================================================================
   Atmosphere & wow layer (Phase 2.1)
   ========================================================================== */

/* cursor spotlight — a soft glow that follows the mouse (desktop only) */
#cursor-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,247,255,.07), rgba(110,0,255,.05) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  opacity: 0;
}
@media (hover: none), (prefers-reduced-motion: reduce) { #cursor-glow { display: none; } }
main, .site-nav, .site-footer { position: relative; z-index: 1; }

/* animated gradient on the hero accent word */
.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), var(--violet), var(--green), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue-slide 7s linear infinite;
}
@keyframes hue-slide { to { background-position: 300% 0; } }

/* rotating role word */
.rotator { display: inline-block; min-width: 9ch; color: var(--green); font-family: var(--font-mono); }
.rotator::after { content: "_"; animation: blink 1s steps(1) infinite; }

/* chips row */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.chip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem; background: rgba(16,26,48,.5);
}
.chip b { color: var(--green); font-weight: 500; }

/* skills ticker — infinite marquee bridging hero into the page */
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 1.1rem; }
.ticker-track { display: flex; gap: 2.6rem; width: max-content; animation: ticker 36s linear infinite; }
.ticker span { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.ticker span::before { content: "▸ "; color: var(--violet); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* card tilt + glow-follow on hover */
.card { position: relative; overflow: hidden; will-change: transform; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(320px 220px at var(--mx, 50%) var(--my, 50%), rgba(0,247,255,.09), transparent 70%);
}
.card:hover::after { opacity: 1; }

/* terminal steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { border-left: 2px solid var(--line); padding: .2rem 0 .2rem 1.2rem; transition: border-color .2s; }
.step:hover { border-color: var(--green); }
.step .cmd { font-family: var(--font-mono); font-size: .82rem; color: var(--green); display: block; margin-bottom: .5rem; }
.step .cmd::before { content: "$ "; color: var(--muted); }
.step p { margin: 0; font-size: .95rem; }

/* section spacing helper — content-dense sections sit closer */
.section + .section { padding-top: clamp(1.6rem, 3.5vw, 2.6rem); }

/* ==========================================================================
   Subpages (Phase 2.2)
   ========================================================================== */

/* compact hero for inner pages */
.page-hero { padding-top: calc(var(--nav-h) + clamp(.6rem, 1.5vw, 1rem)); padding-bottom: clamp(1.2rem, 2.6vw, 1.8rem); }
.page-hero .hero-sub { max-width: 42rem; }

/* text + image split rows */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 880px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  position: relative;
}
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(110,0,255,.16), transparent 55%, rgba(0,247,255,.1)); pointer-events: none; }

/* partner logos */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 980px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-cell {
  display: grid; place-items: center; padding: 1.1rem .9rem;
  background: rgba(16,26,48,.5); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s;
}
.logo-cell img { max-height: 46px; width: auto; filter: grayscale(1) brightness(1.6) contrast(.85); opacity: .75; transition: filter .25s, opacity .25s; }
.logo-cell:hover { border-color: rgba(0,247,255,.35); }
.logo-cell:hover img { filter: none; opacity: 1; }

/* info tiles (contact) */
.tile { display: flex; gap: 1rem; align-items: flex-start; }
.tile .card-icon { flex: none; }
.tile p { margin: 0; font-size: .95rem; }
.tile a { color: var(--text); }
.tile a:hover { color: var(--cyan); }

/* events "operation" flavour */
.op-tag { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.op h1, .op h2 { text-transform: uppercase; letter-spacing: .04em; }
.op-brief { border: 1px solid rgba(255,184,0,.35); border-left: 3px solid var(--amber); border-radius: var(--radius-sm); background: rgba(255,184,0,.05); padding: 1.4rem 1.6rem; font-family: var(--font-mono); font-size: .9rem; color: var(--text); }
.timeline { display: grid; gap: 1.1rem; margin-top: 2rem; }
.tl { border-left: 2px solid var(--line); padding-left: 1.2rem; }
.tl:hover { border-color: var(--amber); }
.tl .when { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: .35rem; }
.tl p { margin: 0; font-size: .96rem; }


/* ==========================================================================
   Legal pages + cookie settings (Phase 2.3)
   ========================================================================== */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h3 { margin-top: 2.2rem; color: var(--text); }
.legal h3::before { content: "## "; color: var(--violet); font-family: var(--font-mono); font-weight: 400; }
.legal p, .legal li { color: var(--muted); font-size: .98rem; }
.legal ul { padding-left: 1.2rem; }
.legal strong { color: var(--text); }
.legal .updated { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* toggle switch */
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.switch-row p { margin: 0; font-size: .92rem; }
.switch { position: relative; flex: none; width: 52px; height: 28px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--bg-raise); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .track { background: var(--violet-soft); border-color: var(--violet); }
.switch input:checked + .track::after { transform: translateX(24px); background: var(--cyan); }
.switch input:focus-visible + .track { outline: 2px solid var(--cyan); outline-offset: 2px; }
.switch input:disabled + .track { opacity: .55; }
