@import url('../fonts/barlow.css?v=2');

:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --ink: #17232d;
  --muted: #647182;
  --line: #d9e0e7;
  --blue: #26333f;
  --yellow: #d7b63d;
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.65 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #1769aa; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.legalShell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.legalTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.legalBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.legalBrand img { width: 34px; height: 38px; object-fit: contain; }
.backLink { color: var(--muted); font-size: 14px; font-weight: 700; }

main { padding-top: clamp(44px, 8vw, 76px); }

.legalKicker {
  margin: 0 0 10px;
  color: #78651f;
  font-family: 'Fragment Mono', monospace;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}

h1 { margin: 0; font-size: clamp(52px, 11vw, 82px); line-height: .95; }
.intro { max-width: 62ch; margin: 20px 0 0; color: var(--muted); font-size: 18px; }

.legalSections {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.legalSections section {
  padding: 25px 0 28px;
  border-bottom: 1px solid var(--line);
}

h2 { margin: 0 0 9px; font-size: 27px; line-height: 1.1; }
p, address, ul { max-width: 68ch; margin: 0; color: var(--muted); }
p + p, p + ul, ul + p { margin-top: 11px; }
address { font-style: normal; }
ul { padding-left: 20px; }

.legalNav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e141d;
    --surface: #151e29;
    --ink: #edf3f9;
    --muted: #a9b6c5;
    --line: #2b3644;
    --yellow: #e1bf44;
  }
}

@media (max-width: 520px) {
  .legalShell { width: min(100% - 28px, 760px); padding-top: 14px; }
  .legalTop { align-items: flex-start; }
  .legalBrand { max-width: 220px; line-height: 1; }
  main { padding-top: 38px; }
}
