*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --wm-font:          'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wm-display:       'Press Start 2P', monospace;

  --wm-bg:            #0d1117;
  --wm-bg-elev:       #141a22;
  --wm-surface:       rgba(255,255,255,.035);
  --wm-surface-hover: rgba(255,255,255,.07);

  --wm-border:        rgba(255,255,255,.06);
  --wm-border-strong: rgba(255,255,255,.14);

  --wm-accent:        #5aa3d0;
  --wm-accent-hover:  #7cbde0;
  --wm-accent-soft:   rgba(90,163,208,.12);

  --wm-text:          #e8ecf0;
  --wm-text-muted:    rgba(232,236,240,.62);
  --wm-text-dim:      rgba(232,236,240,.38);
  --wm-text-faint:    rgba(232,236,240,.22);

  --wm-radius:        10px;
  --wm-radius-sm:     6px;
}

body {
  background: var(--wm-bg);
  color: var(--wm-text-muted);
  font-family: var(--wm-font);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: -.1px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--wm-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--wm-accent-hover); }

/* ── Back button ─────────────────────────────────────────────────────── */
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  position: fixed; top: 24px; left: 32px;
  font-family: var(--wm-font); font-size: 13px; font-weight: 500;
  color: var(--wm-text-muted);
  text-decoration: none;
  padding: 9px 16px;
  background: var(--wm-surface);
  border: 1px solid var(--wm-border-strong);
  border-radius: var(--wm-radius-sm);
  transition: color .15s, background .15s, border-color .15s;
  z-index: 10;
}
.legal-back:hover {
  color: var(--wm-text);
  background: var(--wm-surface-hover);
  border-color: rgba(255,255,255,.22);
}
.legal-back svg { width: 14px; height: 14px; }

/* ── Main ────────────────────────────────────────────────────────────── */
.legal-main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 32px 80px;
}

.legal-main h1 {
  font-family: var(--wm-font);
  font-size: 30px; font-weight: 700;
  color: var(--wm-text);
  letter-spacing: -.6px;
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 13px;
  font-weight: 500;
  color: var(--wm-text-dim);
  margin-bottom: 44px;
}

.legal-intro {
  font-size: 15px;
  color: var(--wm-text-muted);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--wm-border);
}

.legal-main section {
  margin-bottom: 40px;
}

.legal-main h2 {
  font-family: var(--wm-font);
  font-size: 17px; font-weight: 600;
  color: var(--wm-text);
  letter-spacing: -.2px;
  margin-bottom: 14px;
}

.legal-main p {
  margin-bottom: 12px;
  color: var(--wm-text-muted);
}

.legal-main strong {
  color: var(--wm-text);
  font-weight: 600;
}

.legal-main ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.legal-main li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  color: var(--wm-text-muted);
}

.legal-main li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--wm-accent);
  border-radius: 50%;
  opacity: .85;
}

/* ── Contact box ─────────────────────────────────────────────────────── */
.legal-contact {
  margin-top: 52px;
  padding: 24px 28px;
  background: var(--wm-accent-soft);
  border: 1px solid rgba(90,163,208,.22);
  border-radius: var(--wm-radius);
}

.legal-contact p { margin-bottom: 4px; color: var(--wm-text-muted); }
.legal-contact p:first-child {
  color: var(--wm-text);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.home-footer {
  flex-shrink: 0;
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,14,20,.6);
  border-top: 1px solid var(--wm-border);
}

.home-footer-copy {
  font-family: var(--wm-font); font-size: 12px; font-weight: 500;
  color: var(--wm-text-dim);
  letter-spacing: 0;
}

.home-footer-links {
  display: flex; align-items: center;
}

.home-footer-links a {
  font-family: var(--wm-font); font-size: 12px; font-weight: 500;
  color: var(--wm-text-dim);
  text-decoration: none;
  padding: 0 16px;
  transition: color .15s;
}
.home-footer-links a:hover { color: var(--wm-text); text-decoration: none; }

.home-footer-sep {
  width: 1px; height: 12px;
  background: var(--wm-border-strong);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .legal-back {
    position: relative;
    top: auto; left: auto;
    align-self: flex-start;
    margin: 20px 0 0 20px;
    font-size: 12px;
    padding: 8px 14px;
  }
  .legal-main { padding: 28px 20px 56px; }
  .legal-main h1 { font-size: 26px; }
  .legal-main h2 { font-size: 15px; }
  .legal-updated { margin-bottom: 32px; }
  .legal-intro { margin-bottom: 32px; padding-bottom: 32px; }
  .legal-main section { margin-bottom: 32px; }
  .legal-contact { padding: 20px 22px; }
  .home-footer { flex-direction: column; gap: 10px; padding: 16px 20px; text-align: center; }
  .home-footer-links { flex-wrap: wrap; justify-content: center; }
}
