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

:root {
  --ink: oklch(0.27 0.025 285);
  --muted: oklch(0.51 0.025 285);
  --quiet: oklch(0.67 0.02 285);
  --canvas: oklch(0.98 0.012 285);
  --canvas-deep: oklch(0.95 0.022 285);
  --surface: oklch(0.995 0.006 285 / 0.78);
  --violet: oklch(0.51 0.19 285);
  --violet-soft: oklch(0.93 0.045 285);
  --line: oklch(0.58 0.035 285 / 0.16);
  --line-strong: oklch(0.51 0.19 285 / 0.22);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  background: var(--canvas);
  color: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 84% 4%, oklch(0.63 0.16 285 / 0.14), transparent 31rem),
    radial-gradient(circle at 7% 28%, oklch(0.74 0.09 235 / 0.13), transparent 35rem),
    var(--canvas);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: .55;
}

body::before { top: 5rem; right: -13rem; background: oklch(0.65 0.17 285 / .11); }
body::after { top: 48rem; left: -18rem; background: oklch(0.72 0.10 235 / .10); }

a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

.site-nav {
  position: fixed;
  z-index: 50;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 32px), 760px);
  min-height: 58px;
  padding: 8px 9px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateX(-50%);
  border: 1px solid oklch(1 0 0 / .74);
  border-radius: 22px;
  background: oklch(0.995 0.008 285 / .62);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / .9),
    inset 0 -1px 0 oklch(0.5 0.08 285 / .06),
    0 12px 36px oklch(0.32 0.08 285 / .11);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

.mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: cover;
  border-radius: 9px;
  background: oklch(0.995 0.004 285);
  box-shadow: 0 5px 14px oklch(0.32 0.06 285 / .12);
}

.back {
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 14px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, background .2s, transform .2s var(--ease);
}

.back::before { content: "←"; font-size: 1rem; }
.back:hover { color: var(--ink); background: oklch(1 0 0 / .58); transform: translateX(-2px); }
.back:focus-visible, .legal-index a:focus-visible, .legal-document a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 5px;
}

.legal-page {
  width: min(calc(100% - 48px), 1060px);
  margin-inline: auto;
  padding: clamp(10rem, 17vw, 13rem) 0 clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 720px);
  column-gap: clamp(54px, 8vw, 94px);
  justify-content: center;
}

.legal-hero {
  grid-column: 2;
  padding-bottom: clamp(3rem, 7vw, 5.25rem);
}

.eyebrow {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--violet);
  font-size: .83rem;
  font-weight: 700;
}

.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

h1, h2, .summary strong { font-family: "Bricolage Grotesque", sans-serif; }
h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 8vw, 6.7rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.055em;
}

.effective {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--quiet);
  font-size: .88rem;
  font-weight: 600;
}

.effective::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }

.legal-index {
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: 116px;
  padding-top: 3px;
}

.legal-index p {
  margin-bottom: 14px;
  color: var(--quiet);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.legal-index a {
  padding: 7px 0;
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s, transform .2s var(--ease);
}

.legal-index a:hover { color: var(--violet); transform: translateX(3px); }

.legal-document { grid-column: 2; min-width: 0; counter-reset: legal-section; }

.summary {
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(1.6rem, 4vw, 2.2rem) 0;
  background: transparent;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.summary strong {
  display: block;
  margin-bottom: 9px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.summary p { max-width: 63ch; margin: 0; font-size: 1.02rem; }

section {
  counter-increment: legal-section;
  padding: 0 0 2.8rem;
  margin: 0 0 2.8rem;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.028em;
}

h2::before {
  content: counter(legal-section, decimal-leading-zero);
  color: var(--violet);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .02em;
}

p { margin: 0 0 1rem; color: var(--muted); max-width: 70ch; }
ul { padding-left: 1.15rem; color: var(--muted); }
li + li { margin-top: .78rem; }
strong { color: var(--ink); }

.legal-document a {
  color: var(--violet);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

footer { border-top: 1px solid var(--line); color: var(--quiet); }
.footer-inner {
  width: min(calc(100% - 48px), 1060px);
  min-height: 92px;
  margin-inline: auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: .86rem;
}

.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--violet); }

@media (max-width: 760px) {
  .legal-page {
    width: min(calc(100% - 32px), 680px);
    padding-top: 8.5rem;
    display: block;
  }
  .legal-hero { padding-bottom: 2.8rem; }
  .legal-index {
    position: relative;
    top: auto;
    margin: 0 -16px 3.2rem;
    padding: 0 16px 11px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .legal-index::-webkit-scrollbar { display: none; }
  .legal-index p { display: none; }
  .legal-index a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: oklch(1 0 0 / .42);
    font-size: .78rem;
  }
  .legal-index a:hover { transform: translateY(-1px); }
  .footer-inner { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-nav { min-height: 54px; }
  .back { min-height: 38px; padding: 8px 10px; }
  .back::before { display: none; }
  h1 { font-size: clamp(3.15rem, 16vw, 4.3rem); }
  section { padding-bottom: 2.25rem; margin-bottom: 2.25rem; }
  h2 { grid-template-columns: 28px minmax(0, 1fr); }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back, .legal-index a { transition: none; }
}
