/* Legal pages — liquid glass, aligned with site/src/index.css */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --background: oklch(0.11 0.028 265);
  --foreground: oklch(0.96 0.01 260);
  --surface: oklch(0.16 0.03 265 / 52%);
  --card: oklch(0.16 0.03 265 / 48%);
  --border: oklch(1 0 0 / 10%);
  --border-strong: oklch(1 0 0 / 16%);
  --primary: oklch(0.68 0.12 230);
  --primary-dim: oklch(0.68 0.12 230 / 18%);
  --muted: oklch(0.72 0.02 260);
  --dim: oklch(0.58 0.02 260);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px oklch(0 0 0 / 35%), inset 0 1px 0 oklch(1 0 0 / 12%);
  --glass-highlight: linear-gradient(135deg, oklch(1 0 0 / 16%) 0%, oklch(1 0 0 / 4%) 45%, transparent 100%);
  --radius: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(circle at 15% 18%, oklch(0.68 0.12 230 / 18%) 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, oklch(0.68 0.2 300 / 12%) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, oklch(0.74 0.17 160 / 10%) 0%, transparent 38%);
  animation: orbDrift 20s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, -2%, 0) scale(1.05); }
}

.glow { display: none; }

.wrap,
.legal {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 24px) clamp(64px, 10vw, 96px);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(32px, 6vw, 56px);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, oklch(0.72 0.13 230), oklch(0.58 0.11 230));
  color: oklch(0.98 0.01 250);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px oklch(0.68 0.12 230 / 30%), inset 0 1px 0 oklch(1 0 0 / 22%);
}

.back-link,
.legal .back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.back-link:hover,
.legal .back:hover {
  color: var(--foreground);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid oklch(0.68 0.12 230 / 25%);
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.08;
  text-wrap: balance;
}

.updated,
.legal .updated {
  margin: 0 0 clamp(32px, 6vw, 48px);
  color: var(--dim);
  font-size: 13px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

h2 {
  margin: clamp(28px, 5vw, 44px) 0 14px;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  letter-spacing: -0.02em;
}

h2:first-of-type { margin-top: 0; }

p {
  margin: 0 0 16px;
  color: oklch(0.88 0.015 260);
  text-wrap: pretty;
}

ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: oklch(0.88 0.015 260);
}

li { margin-bottom: 8px; }

strong { color: var(--foreground); font-weight: 600; }

a { color: var(--primary); }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.card {
  position: relative;
  overflow: hidden;
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: var(--glass-shadow);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--glass-highlight);
}

.card p:last-child { margin-bottom: 0; }

.divider {
  height: 1px;
  margin: clamp(40px, 8vw, 56px) 0 32px;
  background: var(--border-strong);
  border: none;
}

.footnote {
  color: var(--dim);
  font-size: 12.5px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
}

.footer-nav a {
  color: var(--dim);
  font-size: 13px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--foreground);
  background: var(--primary-dim);
  border-color: oklch(0.68 0.12 230 / 25%);
}

@media (max-width: 480px) {
  .top-nav { flex-direction: column; align-items: flex-start; }
  .back-link, .legal .back { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
