@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Geist:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

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

:root {
  --paper: #E8E4DB;
  --paper-2: #DDD8CC;
  --paper-3: #B9B09F;
  --ink: #20241F;
  --ink-2: #3D413B;
  --ink-3: #5E625A;
  --ink-4: #6F6A5F;
  --line: rgba(32, 36, 31, 0.16);
  --line-strong: rgba(32, 36, 31, 0.36);
  --accent: #2F6F4E;
  --accent-2: #214D37;
  --accent-dark: #214D37;
  --accent-on-dark: #96B87A;
  --surface: #F2EFE7;
  --dark: #1F1F1D;

  --f-display: "DM Serif Display", "Times New Roman", serif;
  --f-serif: "DM Serif Display", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-body: "Geist", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --content: 760px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.18 0 0 0 0 0.16 0 0 0 0.4 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.scroll-rail {
  position: fixed;
  inset: 0 0 auto;
  height: 1px;
  z-index: 120;
  pointer-events: none;
}

.scroll-rail__fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(232, 228, 219, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
  padding: 14px var(--gutter);
  border-bottom-color: var(--paper-3);
}

.nav__brand {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  color: var(--ink);
}

.nav__brand-mark {
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  transform: none;
}

.nav__brand-name {
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-transform: none;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav__cta:hover {
  background: var(--accent-dark, var(--accent));
  border-color: var(--accent-dark, var(--accent));
  transform: none;
}

.nav__toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav__toggle span:nth-child(1) {
  top: 2px;
}

.nav__toggle span:nth-child(2) {
  top: 9px;
}

.nav__toggle span:nth-child(3) {
  top: 16px;
}

.nav__toggle.is-open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 100px var(--gutter) 40px;
  background: var(--paper);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), font-style 0.2s var(--ease);
}

.mobile-menu a:hover {
  color: var(--accent);
  font-style: italic;
}

.legal-page {
  padding: 136px var(--gutter) 96px;
}

.legal-page__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line-strong);
}

.legal-hero__eyebrow,
.legal-card__eyebrow,
.legal-section__num,
.footer__col h3,
.legal-inline-meta__label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-hero__eyebrow,
.legal-card__eyebrow,
.footer__col h3,
.legal-inline-meta__label {
  color: var(--accent);
  font-weight: 500;
}

.legal-hero__eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.legal-hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.legal-hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 20px;
  color: var(--ink);
}

.legal-hero__title em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.legal-hero__lede {
  max-width: 720px;
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
}

.legal-inline-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  padding: 24px 0 0;
  align-self: stretch;
}

.legal-inline-meta__item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal-inline-meta__value {
  margin-top: 8px;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.88;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 52px;
  padding-top: 48px;
}

.legal-aside {
  position: sticky;
  top: 96px;
  align-self: start;
}

.legal-card {
  background: transparent;
  border: 1px solid var(--paper-3);
  border-radius: 2px;
  padding: 26px 24px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.legal-card:hover {
  border-color: var(--ink);
  background: rgba(47, 111, 78, 0.07);
}

.legal-card + .legal-card {
  margin-top: 16px;
}

.legal-card__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: lowercase;
  margin: 10px 0 16px;
  color: var(--ink);
}

.legal-card__title em {
  font-style: italic;
  color: var(--accent);
}

.legal-card__body {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.88;
}

.legal-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-facts li {
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--line);
}

.legal-facts li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-facts__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.legal-toc {
  display: flex;
  flex-direction: column;
}

.legal-toc a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.legal-toc a:hover,
.legal-toc a.is-active {
  color: var(--accent);
  padding-left: 8px;
}

.legal-toc a.is-active {
  font-weight: 500;
  font-style: italic;
}

.legal-doc {
  max-width: var(--content);
}

.legal-section {
  scroll-margin-top: 108px;
  padding: 0 0 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section__num {
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-section__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: lowercase;
  margin-bottom: 18px;
  color: var(--ink);
}

.legal-section__title em {
  font-style: italic;
  color: var(--accent);
}

.legal-doc p,
.legal-doc li {
  font-family: var(--f-body);
  color: var(--ink);
  opacity: 0.9;
}

.legal-doc p + p {
  margin-top: 16px;
}

.legal-list,
.legal-numbered-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.legal-list li,
.legal-numbered-list li {
  position: relative;
  padding-left: 22px;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.legal-numbered-list {
  counter-reset: legal-list;
}

.legal-numbered-list li::before {
  counter-increment: legal-list;
  content: counter(legal-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.legal-doc strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-doc a,
.legal-card a {
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 111, 78, 0.42);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-doc a:hover,
.legal-card a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.legal-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(47, 111, 78, 0.34);
  background: rgba(47, 111, 78, 0.08);
  border-radius: 2px;
  color: var(--ink);
}

.legal-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 600;
}

.footer {
  background: var(--ink);
  color: rgba(232, 228, 219, 0.78);
  padding: 80px var(--gutter) 28px;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(232, 228, 219, 0.14);
}

.footer__brand p:first-child {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--paper);
  margin-bottom: 16px;
  line-height: 1;
}

.footer__brand p:last-child {
  max-width: 380px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.65;
}

.footer__col h3 {
  color: rgba(232, 228, 219, 0.55);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-family: var(--f-body);
  font-size: 14px;
  color: rgba(232, 228, 219, 0.78);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--accent-on-dark);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 228, 219, 0.55);
}

.footer__bottom a {
  color: rgba(232, 228, 219, 0.78);
  transition: color 0.2s var(--ease);
}

.footer__bottom a:hover {
  color: var(--accent-on-dark);
}

@media (max-width: 1100px) {
  .legal-hero,
  .legal-layout,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .legal-inline-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .legal-page {
    padding-top: 120px;
    padding-bottom: 72px;
  }

  .legal-hero__title {
    font-size: 56px;
  }

  .legal-hero__lede {
    font-size: 17px;
  }

  .legal-inline-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__top {
    gap: 28px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  body::before,
  .nav,
  .mobile-menu,
  .scroll-rail {
    display: none !important;
  }
  a {
    color: #000 !important;
    border-bottom-color: #000 !important;
  }
}

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