:root { --ink: #0f172a; --body: #334155; --muted: #64748b; --line: #e2e8f0; --brand: #6427f2; --bg: #f4f2fa; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.7 "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
header.top { position: sticky; top: 0; z-index: 10; background: rgba(244,242,250,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .in, main, footer .in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
header.top .logo img, header.top img { height: 28px; display: block; }
header.top nav { display: flex; align-items: center; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
header.top nav a { margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--body); white-space: nowrap; }
header.top nav a:hover { color: var(--ink); background: #f8fafc; }
header.top nav a[aria-current="page"] { color: var(--brand); background: #f3eefe; }
main { padding-top: 12px; padding-bottom: 80px; overflow-wrap: break-word; }
h1 { color: var(--ink); font-size: clamp(30px, 6vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 32px; }
.summary strong { color: var(--ink); }
h2 { color: var(--ink); font-size: 21px; line-height: 1.3; margin: 40px 0 10px; scroll-margin-top: 80px; }
h3 { color: var(--ink); font-size: 17px; margin: 22px 0 6px; }
ul { padding-left: 22px; } li { margin: 6px 0; }
nav.toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 22px; margin-bottom: 8px; }
nav.toc ol { margin: 6px 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
nav.toc li { break-inside: avoid; margin: 3px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); background: #f1f5f9; }
.steps li { margin: 10px 0; }
footer { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; }
footer .in { display: flex; align-items: center; gap: 28px; }
footer .logo img { height: 22px; display: block; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { margin: 0; color: #475569; font-size: 14px; font-weight: 600; text-decoration: none; }
footer nav a:hover { color: var(--brand); }
footer nav a[aria-current="page"] { color: var(--brand); }
footer p { margin: 0 0 0 auto; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  nav.toc ol { columns: 1; }
  header.top .in { height: auto; flex-wrap: wrap; align-items: center; padding-top: 12px; padding-bottom: 12px; }
  header.top .logo img, header.top img { height: 24px; }
  header.top nav { width: 100%; overflow-x: auto; }
  header.top nav a { font-size: 13px; padding: 6px 10px; }
  footer .in { flex-wrap: wrap; gap: 14px 18px; }
  footer p { margin-left: 0; width: 100%; }
  table, thead, tbody, tr, th, td { display: block; } thead { display: none; }
  td { border: 0; padding: 4px 12px; } tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td:first-child { font-weight: 700; color: var(--ink); }
}
.contact p { margin: 6px 0; }
a.button { display: inline-block; max-width: 100%; text-align: center; line-height: 1.35; margin-top: 6px; padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
a.button:hover { filter: brightness(1.08); }

/* Privacy policy — richer layout, scoped so the other legal pages stay as they are. */
body.legal header.top .in,
body.legal main,
body.legal footer .in { max-width: 1120px; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 20; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.hero {
  position: relative; overflow: hidden; margin: 20px 0 18px; padding: 36px 40px 32px;
  border: 1px solid #e6e1f4; border-radius: 28px; background:
    radial-gradient(900px 280px at 100% -10%, rgba(100,39,242,.16), transparent 55%),
    radial-gradient(520px 220px at 0% 120%, rgba(100,39,242,.08), transparent 50%),
    #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.hero h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.035em; margin-bottom: 12px; }
.kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.lede { font-size: 18px; line-height: 1.6; color: #1e293b; max-width: 62ch; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions a.button { margin-top: 0; }
a.button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
a.button.ghost:hover { filter: none; border-color: #cbd5e1; }
.updated { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 36px; }
.promise { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 18px; }
.promise svg { display: block; margin-bottom: 12px; }
.promise strong { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.35; margin-bottom: 4px; }
.promise span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.policy-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 48px; align-items: start; }
.sidetoc { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow: auto; padding-right: 8px; }
.sidetoc .label, .sidetoc .group { margin: 0; }
.sidetoc .label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sidetoc .group { margin: 14px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.sidetoc a { display: block; text-decoration: none; color: #475569; font-size: 13.5px; font-weight: 500; line-height: 1.35; padding: 6px 0 6px 12px; border-left: 2px solid #e2e8f0; }
.sidetoc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 700; }
body.legal article h2 { font-size: 28px; letter-spacing: -0.03em; margin: 56px 0 12px; }
body.legal article h2 .num { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
body.legal article h3 { font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 8px; }
body.legal article > p, body.legal article li { max-width: 68ch; }
body.legal code { font-size: .88em; background: #f1f5f9; padding: .1em .4em; border-radius: 6px; }
.note, .warn { border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.note { background: #f7f4ff; border: 1px solid #e4dcff; }
.warn { background: #fff; border: 1px solid var(--line); }
.note p, .warn p { margin: 0; }
.note strong, .warn strong { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 8px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p, .card li { font-size: 14.5px; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 18px 0; }
.flow li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0; }
.flow .step { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.flow strong { color: var(--ink); }
body.legal .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; margin: 14px 0 8px; }
body.legal .table-wrap table { border: 0; border-radius: 0; margin: 0; }
body.legal .table-wrap th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.table-note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.rights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.rights article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.rights h3 { margin: 0 0 6px; font-size: 15px; }
.rights p { margin: 0; font-size: 14.5px; }
.contact-band { margin-top: 28px; padding: 28px; border-radius: 24px; background: #0f172a; color: #e2e8f0; }
body.legal .contact-band h2 { color: #fff; margin: 0 0 8px; font-size: 26px; letter-spacing: -0.03em; }
.contact-band p { max-width: 62ch; color: #cbd5e1; }
.contact-band a:not(.button) { color: #ddd6fe; }
.contact-band .hero-actions { margin-top: 16px; }
@media (max-width: 980px) {
  .promises, .cards, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-layout { grid-template-columns: 1fr; gap: 8px; }
  .sidetoc {
    position: sticky; top: 68px; z-index: 5; max-height: none; display: flex; gap: 8px; overflow: auto;
    margin: 0 -20px; padding: 10px 20px 12px; background: rgba(244,242,250,.94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .sidetoc::-webkit-scrollbar { display: none; }
  body.legal article h2 { scroll-margin-top: 150px; }
  .sidetoc .label, .sidetoc .group { display: none; }
  .sidetoc a { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; }
  .sidetoc a.is-active { background: #f3eefe; border-color: #ddd6fe; }
}
@media (max-width: 640px) {
  .hero { padding: 24px 20px; border-radius: 20px; }
  .promises, .cards, .flow, .rights { grid-template-columns: minmax(0, 1fr); }
  main a, main td, .updated { overflow-wrap: anywhere; }
  .hero-actions a.button { flex: 1 1 auto; }
  .contact-band { padding: 22px 18px; }
  body.legal .sidetoc { top: 103px; }
  body.legal article h2 { scroll-margin-top: 176px; }
  body.legal code { overflow-wrap: anywhere; }
  body.legal td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  body.legal footer p { margin-left: 0; width: 100%; }
}
