:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --ink: #162b2a;
  --muted: #687574;
  --line: #dcd5c9;
  --accent: #ef5b3c;
  --teal: #0f7770;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.legal-header,
.legal-main,
.legal-footer {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(22, 43, 42, 0.12);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.legal-mark {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  padding: 7px 6px;
  border-radius: 9px;
  background: var(--ink);
}

.legal-mark i {
  width: 4px;
  display: block;
  border-radius: 3px 3px 1px 1px;
  background: var(--paper);
}

.legal-mark i:nth-child(1) { height: 8px; }
.legal-mark i:nth-child(2) { height: 15px; background: var(--accent); }
.legal-mark i:nth-child(3) { height: 11px; }

.legal-header > a:last-child {
  color: var(--teal);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.legal-main {
  padding: 76px 0 90px;
}

.legal-main .eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-main h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-main .updated {
  margin-bottom: 44px;
  color: var(--muted);
}

.legal-main h2 {
  margin: 42px 0 12px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.legal-main p,
.legal-main li {
  color: #40504f;
  font-size: 16px;
  line-height: 1.72;
}

.legal-main ul { padding-left: 22px; }
.legal-main li + li { margin-top: 8px; }

.legal-note {
  margin-top: 44px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.legal-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(22, 43, 42, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.legal-footer nav { display: flex; gap: 18px; }

@media (max-width: 620px) {
  .legal-header,
  .legal-main,
  .legal-footer { width: calc(100% - 28px); }
  .legal-main { padding: 54px 0 70px; }
  .legal-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
