@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #19231b;
  --black: #181818;
  --orange: #ff7319;
  --paper: #ffffff;
  --muted: #574d45;
  --line: #e4ded5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { background: #ffd9bf; color: var(--black); }

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img { display: block; width: 132px; height: auto; }
.home-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.home-link:hover { color: #b74708; }

.legal-main {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) 0 100px;
}
.legal-hero {
  padding-bottom: 34px;
  border-bottom: 3px solid var(--black);
}
.legal-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}
.legal-hero h1 span { color: var(--orange); }
.legal-hero p {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.legal-meta span + span::before {
  margin-right: 20px;
  color: var(--orange);
  content: "•";
}

.legal-content {
  padding-top: 24px;
  font-size: 16px;
  line-height: 1.78;
}
.legal-content > h2 {
  margin: 62px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--black);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  scroll-margin-top: 24px;
}
.legal-content > h2:first-child { margin-top: 0; border-top: 0; }
.legal-content h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.4;
}
.legal-content p { margin: 0 0 18px; color: #383b36; }
.legal-content ul { margin: 0 0 24px; padding-left: 1.3rem; }
.legal-content li { margin: 0 0 13px; padding-left: .3rem; color: #383b36; }
.legal-content li::marker { color: var(--orange); }
.legal-content strong { color: var(--black); font-weight: 700; }
.legal-content code {
  padding: .12em .38em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5f1eb;
  color: #473421;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}
.legal-content a {
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: #b74708; }

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px max(24px, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.legal-footer p { margin: 0; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer a { text-underline-offset: 3px; }

@media (max-width: 600px) {
  .legal-header { width: min(100% - 36px, 1120px); padding: 18px 0; }
  .brand img { width: 118px; }
  .home-link { font-size: 13px; }
  .legal-main { width: min(100% - 36px, 860px); padding: 54px 0 72px; }
  .legal-hero { padding-bottom: 26px; }
  .legal-content { padding-top: 16px; font-size: 15px; }
  .legal-content > h2 { margin-top: 46px; }
  .legal-footer { flex-direction: column; padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
