/* Legal and support pages. Generated by scripts/build-legal.mjs; shares the
   landing page's fonts and colours but needs no JavaScript to read. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/outfit-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/outfit-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #0b1020;
  --text: #334155;
  --muted: #5b6477; /* 5.6:1 on the page background; #64748b was 4.48:1, just under AA */
  --line: #e2e8f0;
  --paper: #f7f8fc;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-soft: #eef0ff;
  --amber: #fbbf24;
  --amber-soft: #fef3c7;
  --emerald: #10b981;
  --border: #0f172a;
  --radius: 20px;
  --sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading: "Outfit Variable", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 12px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgb(247 248 252 / 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--heading); letter-spacing: -0.02em; }
.brand-name span { color: var(--brand); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; }
.doc-tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border: 2px solid var(--border); border-radius: 14px; }
.doc-tabs a { padding: 6px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.doc-tabs a:hover { color: var(--ink); }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.home-link { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { max-width: 1180px; margin: 0 auto; padding: 56px 20px 24px; }
.hero h1 { margin: 0; font: 800 clamp(40px, 7vw, 68px)/1.02 var(--heading); letter-spacing: -0.03em; color: var(--ink); }
.hero .lead { margin: 16px 0 0; max-width: 620px; font-size: 20px; color: var(--text); }
.meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--border); background: #fff; font-weight: 700; color: var(--ink); }
.chip-draft { background: var(--amber-soft); }

/* "In short" summary cards */
.summary { max-width: 1180px; margin: 12px auto 0; padding: 0 20px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.summary-card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 4px 4px 0 0 var(--border); }
.summary-card .icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.summary-card strong { display: block; color: var(--ink); font: 700 17px/1.3 var(--heading); }
.summary-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }

/* Two columns: contents on the side, text in a readable measure */
.layout { max-width: 1180px; margin: 0 auto; padding: 40px 20px 72px; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .layout { grid-template-columns: 250px minmax(0, 1fr); } }

.toc { align-self: start; }
@media (min-width: 960px) { .toc { position: sticky; top: 92px; } }
.toc details { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 12px 14px; }
@media (min-width: 960px) { .toc details { background: transparent; border: 0; padding: 0; } .toc summary { pointer-events: none; } .toc summary::after { display: none; } }
.toc summary { cursor: pointer; list-style: none; font: 700 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 18px; line-height: 12px; }
.toc details[open] summary::after { content: "−"; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { background: #fff; color: var(--ink); }
.toc a.active { background: var(--ink); color: #fff; }

.doc { min-width: 0; max-width: 760px; }
.status {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--amber-soft); border: 2px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 32px;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.status svg { flex-shrink: 0; margin-top: 2px; }

.doc section { padding-top: 8px; margin-bottom: 40px; }
.doc h2 { margin: 0 0 12px; font: 800 28px/1.2 var(--heading); letter-spacing: -0.02em; color: var(--ink); display: flex; gap: 12px; align-items: baseline; }
.doc h2 .num { font: 700 16px/1 var(--sans); color: var(--brand); min-width: 26px; }
.doc h2 .anchor { opacity: 0; font-size: 18px; text-decoration: none; color: var(--muted); transition: opacity 0.15s; }
.doc h2:hover .anchor, .doc h2 .anchor:focus { opacity: 1; }
.doc h3 { margin: 24px 0 8px; font: 700 19px/1.3 var(--heading); color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--brand); }
.note { background: #fff; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; }
.pending { color: var(--muted); font-style: italic; }

.table-wrap { overflow-x: auto; margin: 4px 0 18px; border: 2px solid var(--border); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--paper); font-weight: 700; color: var(--ink); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
/* Phones: each row is a card, so nothing has to be swiped sideways. The
   headings stay for screen readers; three-column tables label their later
   cells. */
@media (max-width: 600px) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 0; border: 0; overflow-wrap: break-word; }
  .table-wrap td + td { margin-top: 4px; }
  .table-wrap:not(.cols-2) td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
}

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 14px; padding: 16px; background: #fff; border: 2px solid var(--border); border-radius: 16px; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }

/* Support page */
.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 18px; }
.contact-card { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: 4px 4px 0 0 var(--border); }
.contact-card strong { display: block; color: var(--ink); font: 700 18px/1.3 var(--heading); }
.contact-card p { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.contact-card a.button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--border); background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.contact-card a.button.secondary { background: #fff; color: var(--ink); }

.faq details { background: #fff; border: 2px solid var(--border); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 20px; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 28px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner a { color: var(--text); text-decoration: none; }
.footer-inner a:hover { color: var(--brand); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .doc-tabs { display: none; }
  .hero { padding-top: 36px; }
  .hero .lead { font-size: 18px; }
  .doc h2 { font-size: 24px; }
}

@media print {
  .topbar, .toc, .footer, .skip-link, .doc h2 .anchor { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .layout { display: block; padding: 0; }
  .summary-card, .contact-card, .table-wrap, .status, .facts { box-shadow: none; }
  a { color: inherit; }
}
