@font-face {
  font-family: "Akari New York";
  src:
    url("/assets/fonts/NewYork.woff2") format("woff2"),
    url("/assets/fonts/NewYork.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #151a0c;
  --ink: #e6f4d1;
  --muted: rgba(230, 244, 209, 0.68);
  --card: rgba(230, 244, 209, 0.08);
  --border: rgba(230, 244, 209, 0.14);
  --accent: #a9eb4b;
  --serif: "Akari New York", "New York", Georgia, serif;
}

* { box-sizing: border-box; }

html { background: var(--page); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

.legal-shell {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(56px, 10vw, 108px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
}

.legal-brand img { width: 42px; height: 42px; border-radius: 11px; }

.legal-nav__links { display: flex; gap: 18px; color: var(--muted); }

.legal-header { margin-bottom: 48px; }

.legal-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.legal-intro {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.5;
}

.legal-updated {
  margin-top: 18px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-section {
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
}

h2 { margin: 0 0 16px; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.05; }

p, li { color: var(--muted); font-family: system-ui, sans-serif; line-height: 1.65; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 1.25rem; }
li + li { margin-top: 8px; }
strong { color: var(--ink); }

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --page: #e6f4d1;
    --ink: #151a0c;
    --muted: rgba(21, 26, 12, 0.68);
    --card: rgba(255, 255, 255, 0.46);
    --border: rgba(21, 26, 12, 0.12);
    --accent: #5f9d0b;
  }
}

@media (max-width: 560px) {
  .legal-shell { width: min(100% - 28px, 780px); padding-top: 18px; }
  .legal-nav__links { gap: 12px; font-size: 0.9rem; }
  .legal-section { border-radius: 22px; }
}
