:root {
  --bg: #f6f3ec;
  --bg-2: #ede8dd;
  --card: #ffffff;
  --card-2: #fbf9f5;
  --ink: #1b1925;
  --muted: #625e6e;
  --line: #e4dfd4;
  --primary: #5e50e6;
  --primary-2: #8a7dff;
  --primary-soft: #ebe8fe;
  --accent: #e8895a;
  --mint: #cfe9dc;
  --peach: #fde4d6;
  --lilac: #e4defc;
  --green: #2f9e6b;
  --shadow-sm: 0 1px 2px rgba(30, 25, 60, .05), 0 2px 8px -2px rgba(30, 25, 60, .06);
  --shadow: 0 1px 2px rgba(30, 25, 60, .05), 0 14px 40px -14px rgba(40, 30, 90, .22);
  --shadow-lg: 0 2px 4px rgba(30, 25, 60, .04), 0 40px 80px -30px rgba(50, 30, 130, .38);
  --radius: 24px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111018;
    --bg-2: #191723;
    --card: #1c1a27;
    --card-2: #211f2e;
    --ink: #f3f1fb;
    --muted: #a9a5ba;
    --line: #2c2a3b;
    --primary: #9086ff;
    --primary-2: #b5adff;
    --primary-soft: #26224f;
    --mint: #1f3a31;
    --peach: #3d2a24;
    --lilac: #2a2550;
    --green: #5fd19c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -14px rgba(0, 0, 0, .65);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; color: var(--bg); background: var(--ink); padding: 9px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .2s var(--ease), box-shadow .2s; }
.pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.menu { position: relative; display: none; }
.menu summary { list-style: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 52px; min-width: 210px; padding: 8px; display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: menuIn .22s var(--ease); }
.menu-panel a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 14px; border-radius: 12px; }
.menu-panel a:hover { background: var(--bg-2); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu { display: block; }
}

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
em { font-style: italic; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px;
}

/* Sections */
section { padding: 96px 0; }
section.tight { padding-top: 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 62px); line-height: 1.02; margin-top: 16px; }
.section-head h2 em { color: var(--primary); }
.section-head p { color: var(--muted); font-size: 19px; margin: 18px 0 0; }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .btn { color: #111018; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Policy pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.doc-hero { position: relative; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.5vw, 66px); line-height: 1.02; margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc .summary { background: var(--primary-soft); border-radius: 20px; padding: 20px 24px; margin: 0 0 40px; }
.doc .summary p { margin: 0; }
.doc h2 { font-size: 23px; margin: 52px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 8px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); background: var(--bg-2); }
.doc .table-scroll { overflow-x: auto; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.toc a { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s; }
.toc a:hover { border-color: var(--primary); color: var(--primary); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.contact-card strong { display: block; font-size: 18px; }
.doc details { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 0 18px; margin: 10px 0; }
.doc details summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.doc details summary::-webkit-details-marker { display: none; }
.doc details summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .25s var(--ease); }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details > p { margin: 0 0 16px; }
.nav-links a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.menu-panel a[aria-current="page"] { color: var(--primary); }
