:root {
  color-scheme: dark;
  --paper: #0b0c0d;
  --panel: #17191b;
  --panel-soft: #202326;
  --line: #34383c;
  --ink: #f2f4f5;
  --muted: #b9c0c5;
  --accent: #a71930;
  --link: #85c8d0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 76, 84, .32), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(167, 25, 48, .22), transparent 26rem),
    var(--paper);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }

a:hover, a:focus-visible { color: #d2f3f5; }

.legal-shell {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: .04em;
  text-decoration: none;
}

.legal-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 42px;
  color: #fff;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 16%, 88% 83%, 50% 100%, 12% 83%, 0 16%);
  font-size: .78rem;
  letter-spacing: -.05em;
}

.back-link {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(23, 25, 27, .78);
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.legal-hero,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(23, 25, 27, .94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
}

.legal-hero { margin-bottom: 16px; padding: clamp(24px, 6vw, 46px); }

.legal-kicker {
  margin: 0 0 6px;
  color: #91a0aa;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }

h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.4rem); }

.legal-intro { max-width: 66ch; margin: 14px 0 0; color: var(--muted); }

.legal-section { margin-top: 16px; padding: clamp(20px, 5vw, 32px); }

.legal-section h2 { margin: 0 0 14px; font-size: 1.25rem; }

.legal-section h3 { margin: 24px 0 8px; font-size: 1rem; }

.legal-section h3:first-child { margin-top: 0; }

.legal-section p,
.legal-section ul { margin: 0 0 12px; color: var(--muted); }

.legal-section p:last-child,
.legal-section ul:last-child { margin-bottom: 0; }

.legal-section ul { padding-left: 1.2rem; }

.legal-section li + li { margin-top: 7px; }

.legal-address { color: var(--ink) !important; font-style: normal; }

.legal-note {
  padding: 14px 16px;
  border-left: 4px solid #2f9c83;
  border-radius: 8px;
  color: #dce9e5 !important;
  background: rgba(47, 156, 131, .12);
}

.legal-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #929aa0;
  text-align: center;
  font-size: .78rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 10px;
}

.legal-footer a { color: #dce1e4; font-weight: 800; }

@media (max-width: 520px) {
  .legal-shell { width: min(100% - 22px, 860px); padding-top: max(16px, env(safe-area-inset-top)); }
  .legal-topbar { align-items: flex-start; }
  .legal-brand span:last-child { max-width: 145px; line-height: 1.25; }
  .back-link { white-space: nowrap; }
  .legal-hero, .legal-section { border-radius: 15px; }
}
