/* Self-hosted Sora, shared with the landing so a visitor arriving here from
   index.html hits the cache instead of a third-party request. Latin and
   latin-ext only; the file is variable, so one covers every weight. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
  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: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/sora-latin-ext.woff2') format('woff2');
  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;
}

:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-2: #0b0b10;
  --surface: #101016;
  --surface-2: #15151c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f3f6;
  --muted: #a0a0ac;
  --faint: #81818e;
  --accent: #ff7a1a;
  --accent-soft: #ff9a4d;
  --accent-tint: rgba(255, 122, 26, 0.11);
  --danger-soft: rgba(248, 113, 113, 0.1);
  --danger-border: rgba(248, 113, 113, 0.32);
  --font: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1050px 560px at 58% -180px, rgba(255, 122, 26, 0.14), transparent 68%),
    radial-gradient(780px 460px at 86% 36%, rgba(255, 122, 26, 0.05), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.legal-shell {
  width: min(100% - 36px, 940px);
  margin: 0 auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.legal-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.legal-brand strong { color: var(--accent); }

.legal-back {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-hero { padding: clamp(48px, 8vw, 76px) 0 34px; }

.legal-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #fff;
  line-height: 1.18;
  letter-spacing: 0;
}
h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
}
h2 {
  margin: 46px 0 12px;
  font-size: 1.45rem;
}
h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

.legal-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}
.legal-updated {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 0.86rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 48px;
  align-items: start;
  padding-bottom: 72px;
}

.legal-content { min-width: 0; }
.legal-content p,
.legal-content li,
td { color: var(--muted); }
.legal-content strong,
.legal-content code { color: var(--text); }
.legal-content ul,
.legal-content ol { padding-left: 1.35rem; }
.legal-content li + li { margin-top: 8px; }

.legal-nav {
  position: sticky;
  top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 16, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.legal-nav b {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.legal-nav a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}
.legal-nav a:hover { color: var(--text); }

.legal-card {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(255, 122, 26, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--surface);
}
.legal-card h2,
.legal-card h3 { margin-top: 0; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-pending {
  border-color: var(--danger-border);
  background: var(--danger-soft);
}

.legal-note {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-tint);
}
.legal-note p {
  margin: 0;
  color: var(--text);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0 28px;
}
table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: #fff;
  background: var(--surface-2);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.84rem;
}
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}
.legal-footer a:hover,
.legal-footer a[aria-current="page"] { color: var(--text); }

@media (max-width: 760px) {
  .legal-header {
    align-items: flex-start;
    padding: 18px 0;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .legal-nav {
    position: static;
    grid-row: 1;
  }
  .legal-nav a {
    display: inline-block;
    margin-right: 12px;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }
  .legal-header,
  .legal-nav,
  .legal-footer { display: none; }
  .legal-shell { width: 100%; }
  .legal-layout { display: block; }
  .legal-content p,
  .legal-content li,
  td { color: #222; }
  h1,
  h2,
  h3,
  .legal-content strong,
  th { color: #000; }
  .legal-card,
  .legal-note {
    border: 1px solid #bbb;
    background: transparent;
    break-inside: avoid;
  }
}
