@font-face {
  font-family: "Onest";
  src: url("/vendor/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #080b10;
  --surface: #14181e;
  --surface-raised: #1a1f26;
  --line: #2d333d;
  --ink: #f5f7fa;
  --muted: #9ba5b3;
  --accent: #52e5b5;
  --accent-ink: #06140f;
  --warning: #f3c867;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; border-radius: 12px; color: var(--accent-ink); background: var(--accent); transform: translateY(-140%); }
.skip-link:focus { transform: none; }
.legal-shell { width: 100%; max-width: 860px; min-width: 0; margin: 0 auto; padding: 0 24px 64px; }
.legal-shell main,
.legal-hero,
.legal-summary,
.legal-document,
.legal-section { width: 100%; max-width: 100%; min-width: 0; }
.legal-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.legal-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #2b493f; border-radius: 12px; color: var(--accent); background: #14251f; }
.legal-brand-mark svg { width: 22px; height: 22px; stroke-width: 2; }
.legal-topnav { display: flex; align-items: center; gap: 8px; }
.legal-topnav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.legal-topnav a:hover, .legal-topnav a[aria-current="page"] { color: var(--ink); background: var(--surface-raised); }

.legal-hero { padding: 56px 0 34px; }
.legal-hero-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid #2d5f4e; border-radius: 18px; color: var(--accent); background: linear-gradient(145deg, #17372d, #101b17); }
.legal-hero-icon svg { width: 30px; height: 30px; }
.legal-hero h1 { max-width: 720px; margin: 0; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; font-size: clamp(36px, 8vw, 60px); font-weight: 840; letter-spacing: -.06em; line-height: .98; }
.legal-hero > p { max-width: 690px; margin: 20px 0 0; overflow-wrap: break-word; color: #b1bac5; font-size: 18px; line-height: 1.55; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: #778290; font-size: 13px; }

.legal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 44px; border: 1px solid #315045; border-radius: 20px; background: #101d18; }
.legal-summary > div { min-width: 0; padding: 18px 20px; }
.legal-summary > div + div { border-left: 1px solid #29463c; }
.legal-summary strong { display: block; margin-bottom: 4px; color: #dffff4; font-size: 15px; }
.legal-summary span { display: block; overflow-wrap: break-word; color: #91aa9f; font-size: 13px; line-height: 1.45; }

.legal-document { counter-reset: section; }
.legal-section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-section h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font-size: clamp(22px, 4vw, 29px); font-weight: 780; letter-spacing: -.04em; line-height: 1.15; }
.legal-section h2::before { counter-increment: section; content: counter(section); color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 780; }
.legal-section p { max-width: 74ch; margin: 0 0 14px; overflow-wrap: break-word; color: #c8cfd7; }
.legal-section ul { max-width: 74ch; margin: 12px 0 0; padding-left: 22px; overflow-wrap: break-word; color: #c8cfd7; }
.legal-section li + li { margin-top: 9px; }
.legal-section strong { color: var(--ink); }
.legal-note { margin: 18px 0 0; padding: 16px 18px; border-left: 3px solid var(--warning); border-radius: 0 12px 12px 0; color: #d9cfae; background: #1d1a12; }
.legal-contact { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; margin-top: 4px; padding: 0 15px; border-radius: 13px; color: var(--accent-ink); background: var(--accent); font-weight: 760; text-decoration: none; }
.legal-contact svg { width: 19px; height: 19px; stroke-width: 2; }
.legal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); color: #778290; font-size: 13px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.legal-footer a:hover { color: var(--ink); }
.support-form { display: grid; gap: 18px; max-width: 640px; }
.support-form label { display: grid; gap: 7px; font-weight: 650; }
.support-form input, .support-form select, .support-form textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font: inherit; }
.support-form textarea { resize: vertical; }
.support-form p { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.support-form button { border: 0; font: inherit; font-weight: 750; justify-self: start; cursor: pointer; }
.support-form button:disabled { opacity: .6; cursor: wait; }

@media (max-width: 680px) {
  .legal-shell { padding: 0 16px calc(36px + env(safe-area-inset-bottom)); }
  .legal-topbar { min-height: 62px; }
  .legal-brand { font-size: 17px; }
  .legal-brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .legal-topnav a:not([aria-current="page"]) { display: none; }
  .legal-topnav a { min-height: 44px; padding: 0 10px; }
  .legal-hero { padding: 38px 0 28px; }
  .legal-hero-icon { width: 50px; height: 50px; margin-bottom: 18px; border-radius: 16px; }
  .legal-hero h1 { font-size: clamp(30px, 9.5vw, 36px); }
  .legal-hero > p { margin-top: 16px; font-size: 16px; }
  .legal-summary { grid-template-columns: 1fr; margin-bottom: 30px; }
  .legal-summary > div { padding: 15px 16px; }
  .legal-summary > div + div { border-top: 1px solid #29463c; border-left: 0; }
  .legal-section { padding: 25px 0; }
  .legal-section h2 { gap: 9px; font-size: 23px; }
  .legal-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
