/* Shared styles for Kiruko legal pages (privacy.html, terms.html) — mirrors index.html theme */
:root, [data-theme="light"]{
  --gold:#F2B705; --gold-light:#FFD84D; --green:#33CC11; --teal:#14B8A6; --blue:#4F6BE0;
  --violet:#8B5CF6; --indigo:#1E2A52; --ink:#16203B; --ink-fixed:#16203B;
  --paper:#F9FAFB; --surface:#FFFFFF;
  --muted:#51596E; --faint:#79809A;
  --gray100:#F3F4F6; --gray200:#E5E7EB;
  --line:rgba(22,32,59,.10); --line-strong:rgba(22,32,59,.16);
  --glass:rgba(255,255,255,.72); --chip-bg:rgba(22,32,59,.035); --chip-bg-hover:rgba(22,32,59,.07);
  --nav-shadow:0 8px 34px rgba(22,32,59,.10);
}
[data-theme="dark"]{
  --ink:#F4F5FB; --paper:#0B0B16; --surface:#14152b;
  --muted:#A6ABC4; --faint:#767B96;
  --gray100:rgba(255,255,255,.08); --gray200:rgba(255,255,255,.14);
  --line:rgba(255,255,255,.08); --line-strong:rgba(255,255,255,.14);
  --glass:rgba(22,24,46,.55); --chip-bg:rgba(255,255,255,.04); --chip-bg-hover:rgba(255,255,255,.08);
  --nav-shadow:0 8px 40px rgba(0,0,0,.35);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);
  background:var(--paper);line-height:1.65;-webkit-font-smoothing:antialiased;
  transition:background-color .4s ease,color .3s ease}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1140px;margin:0 auto;padding:0 24px}

/* nav */
.nav-shell{position:sticky;top:14px;z-index:50;padding:0 24px}
.nav{max-width:1140px;margin:14px auto 0;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:12px 14px 12px 20px;background:var(--glass);backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);border:1px solid var(--line);border-radius:18px;box-shadow:var(--nav-shadow);
  transition:background-color .4s ease,border-color .4s ease,box-shadow .4s ease}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.brand svg{display:block;flex:none}
.wm{font-family:'Trebuchet MS','Inter',sans-serif;font-weight:900;letter-spacing:1.5px;font-size:22px;line-height:1;
  background:linear-gradient(180deg,#FFD84D,var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.nav-right{display:flex;align-items:center;gap:8px}
.nav-right a.back{color:var(--muted);font-weight:600;font-size:14.5px;padding:8px 14px;border-radius:10px}
.nav-right a.back:hover{color:var(--ink);background:var(--chip-bg-hover);text-decoration:none}
.theme-toggle{width:40px;height:40px;flex:none;display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;cursor:pointer;background:var(--chip-bg);border:1.5px solid var(--gray200);color:var(--ink);
  transition:background-color .3s ease}
.theme-toggle:hover{background:var(--chip-bg-hover)}
.theme-toggle svg{width:19px;height:19px}
.theme-toggle .i-sun{display:none}.theme-toggle .i-moon{display:block}
[data-theme="dark"] .theme-toggle .i-sun{display:block}[data-theme="dark"] .theme-toggle .i-moon{display:none}

/* legal content */
.legal-wrap{max-width:780px;margin:0 auto;padding:54px 24px 30px}
.legal-wrap .eyebrow{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--teal)}
.legal-wrap h1{font-size:clamp(32px,5vw,46px);font-weight:900;letter-spacing:-.02em;line-height:1.08;margin:14px 0 10px}
.legal-wrap .updated{color:var(--faint);font-size:14px;font-weight:600;margin-bottom:8px}
.legal-wrap .intro{color:var(--muted);font-size:17px;margin:18px 0 8px}
.legal-wrap h2{font-size:22px;font-weight:800;letter-spacing:-.01em;margin:38px 0 12px;padding-top:8px}
.legal-wrap h3{font-size:17px;font-weight:700;margin:22px 0 8px}
.legal-wrap p{color:var(--muted);font-size:15.5px;margin:0 0 14px}
.legal-wrap ul{margin:0 0 16px;padding-left:22px}
.legal-wrap li{color:var(--muted);font-size:15.5px;margin-bottom:8px}
.legal-wrap b,.legal-wrap strong{color:var(--ink);font-weight:700}
.legal-wrap .note{background:var(--chip-bg);border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:18px 0;font-size:14.5px;color:var(--muted)}
.legal-wrap hr{border:none;border-top:1px solid var(--gray100);margin:34px 0}
.toc{background:var(--surface);border:1px solid var(--gray100);border-radius:16px;padding:18px 22px;margin:26px 0 34px}
.toc b{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--faint);margin-bottom:10px}
.toc ol{margin:0;padding-left:20px;columns:2;column-gap:30px}
.toc li{margin-bottom:6px;font-size:14.5px}
@media(max-width:600px){.toc ol{columns:1}}

/* footer */
footer{border-top:1px solid var(--gray100);margin-top:50px;padding:40px 0}
.legal-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;color:var(--faint);font-size:13px}
.legal-foot .links a{color:var(--muted);font-weight:600;margin-right:18px}
.poweredby{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--muted);
  background:var(--chip-bg);border:1px solid var(--gray200);border-radius:999px;padding:7px 14px}
.poweredby b{color:var(--ink);font-weight:800}
.poweredby .spark{width:7px;height:7px;border-radius:50%;background:linear-gradient(180deg,#FFD84D,var(--gold));flex:none}
