:root {
  --bg: #f6f2ea;
  --paper: #fffaf2;
  --ink: #111111;
  --muted: #5f5a52;
  --line: rgba(17, 17, 17, 0.14);
  --accent: #b8ff3d;
  --accent-ink: #182200;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(184, 255, 61, 0.20), transparent 32rem),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 45%, #eee7dc 100%);
  color: var(--ink);
  font-family: Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a { color: inherit; text-decoration-color: rgba(17, 17, 17, 0.28); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 24px;
  background: rgba(255, 250, 242, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.legal-nav-inner {
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.legal-brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0;
}

.back-link {
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--muted);
  font-weight: 700;
}

.legal-wrap {
  width: min(880px, calc(100vw - 40px));
  margin: 64px auto 48px;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(17, 17, 17, 0.08);
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.legal-meta {
  margin-bottom: 34px;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

h2 {
  margin: 42px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

p { margin: 0 0 18px; color: #25221e; }

ul, ol { margin: 0 0 22px 1.15rem; padding: 0; }
li { margin: 8px 0; padding-left: 4px; color: #25221e; }
strong { font-weight: 800; }

.legal-footer {
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto 40px;
  padding: 22px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer a {
  text-decoration: none;
  font-weight: 700;
}

.legal-footer .copy {
  flex-basis: 100%;
  text-align: center;
  margin-top: 6px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

@media (max-width: 680px) {
  .legal-nav { padding: 14px 16px; }
  .legal-nav-inner { width: calc(100vw - 28px); }
  .legal-brand { font-size: 14px; }
  .back-link { font-size: 13px; }
  .legal-wrap {
    width: calc(100vw - 24px);
    margin: 28px auto 30px;
    padding: 24px 20px;
    border-radius: 22px;
  }
  h1 { font-size: 44px; letter-spacing: -0.06em; }
  h2 { font-size: 25px; }
}

.legal-footer .legal-company {
  flex-basis: 100%;
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
