/* Legal pages — brand dark theme, plain readable typography. */
*{box-sizing:border-box;margin:0;padding:0}
:root{--sky:#2bc8fe;--navy:#19386e;--ink:#e8f1ff;--muted:#9db1d6;--line:rgba(43,200,254,.18)}
html{background:#050d1f;color-scheme:dark}
body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  background:#050d1f radial-gradient(1100px 620px at 50% -12%,#0d2854 0%,#081430 55%,#050d1f 100%) no-repeat;
  background-attachment:fixed;color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased;
  padding:0 20px calc(60px + env(safe-area-inset-bottom))}
.wrap{max-width:820px;margin:0 auto;padding-top:34px}
.legal-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:26px}
.legal-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;letter-spacing:-.4px;color:#f2f8ff}
.legal-brand img{width:34px;height:34px;border-radius:9px}
.tm{font-size:.52em;vertical-align:super;color:var(--sky);font-weight:700;letter-spacing:0}
.brand-r{color:var(--sky)}
.legal-nav a{color:var(--sky);text-decoration:none;font-size:13.5px;margin-left:14px}
.legal-nav a:hover{text-decoration:underline}
h1{font-size:clamp(27px,5vw,38px);letter-spacing:-1px;margin-bottom:6px;color:#f4f9ff}
.updated{color:var(--muted);font-size:13px;margin-bottom:22px}
h2{font-size:19px;margin:30px 0 8px;color:#eaf4ff;letter-spacing:-.3px}
h3{font-size:15.5px;margin:18px 0 5px;color:#cfe6ff}
p,li{color:#c6d6f2;font-size:15px}
p{margin-bottom:11px}
ul,ol{margin:0 0 12px 22px}
li{margin-bottom:5px}
strong{color:#eaf4ff}
a{color:var(--sky)}
code{background:rgba(43,200,254,.1);border:1px solid var(--line);border-radius:5px;padding:1px 6px;font-size:13px;color:#9fe6ff}
.callout{background:rgba(43,200,254,.07);border:1px solid var(--line);border-left:3px solid var(--sky);
  border-radius:12px;padding:14px 16px;margin:16px 0}
.callout p:last-child{margin-bottom:0}
table{width:100%;border-collapse:collapse;margin:12px 0;font-size:14px;display:block;overflow-x:auto}
th,td{border:1px solid var(--line);padding:9px 11px;text-align:left;vertical-align:top}
th{background:rgba(43,200,254,.09);color:#eaf4ff;font-weight:700;white-space:nowrap}
td{color:#c6d6f2}
.legal-foot{margin-top:44px;padding-top:20px;border-top:1px solid var(--line);color:#7c8fb8;font-size:12.5px;text-align:center}
.legal-foot a{margin:0 8px}

/* ---- light theme (dark blue is the default) ---- */
html[data-theme="light"]{color-scheme:light;--ink:#14294d;--muted:#68779a;--line:rgba(20,41,77,.12)}
html[data-theme="light"] body{background:#f5f7fb radial-gradient(1100px 620px at 50% -12%,#ffffff 0%,#eef3fb 55%,#f5f7fb 100%) no-repeat;
  background-attachment:fixed}
html[data-theme="light"] .legal-nav .legal-brand,html[data-theme="light"] h1,html[data-theme="light"] h2{color:#0d2854}
html[data-theme="light"] h3{color:#1d3a68}
html[data-theme="light"] p,html[data-theme="light"] li,html[data-theme="light"] td{color:#3f5578}
html[data-theme="light"] strong{color:#12294f}
html[data-theme="light"] a,html[data-theme="light"] .legal-nav a{color:#0d8fd0}
html[data-theme="light"] code{background:#eef8fe;color:#0b6ea6}
html[data-theme="light"] .callout{background:#eef8fe}
html[data-theme="light"] th{background:#e9f2fb;color:#12294f}
html[data-theme="light"] .legal-foot{color:#7b8cb0}

/* theme button — brand disc, white icon in both themes */
.theme-btn{width:34px;height:34px;border:none;background:none;cursor:pointer;display:inline-flex;
  align-items:center;justify-content:center;padding:0;vertical-align:middle;margin-left:14px}
.theme-btn svg{width:21px;height:21px;stroke:#fff;fill:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.theme-btn .ic-sun path{fill:none}
html[data-theme="light"] .theme-btn svg{filter:drop-shadow(0 1px 1px rgba(13,40,84,.55)) drop-shadow(0 0 3px rgba(13,40,84,.45))}
.theme-btn .ic-moon{display:none}
html[data-theme="light"] .theme-btn .ic-sun{display:none}
html[data-theme="light"] .theme-btn .ic-moon{display:block}
