/* GreyTomato gate — light theme. Tokens from greytomato.com, ground flipped to white. */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Light ground: pure white page, charcoal type, one tomato accent. */
  --paper:     #ffffff;
  --ink:       oklch(0.13 0.012 268);
  --ink-dim:   oklch(0.42 0.012 268);   /* ~8:1 on white */
  --tomato:    oklch(0.65 0.215 32);
  --line:      oklch(0.91 0.008 268);

  --font: "Bricolage", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-note: "Jakarta", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --pad-x: clamp(1.25rem, 5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body, h1, h2, p, ul { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }

/* Legal-page layout, ground flipped. */
.legal { min-height: 100dvh; }
.legal__body {
  display: grid; gap: 0; justify-items: start;
  width: min(64rem, 100%); margin-inline: auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad-x) clamp(5rem, 12vh, 8rem);
}
.legal__mark { width: clamp(9rem, 20vw, 12rem); height: auto; margin-bottom: 0.9rem; }

/* Head: static brand-mark square beside the wordmark's two rows. */
.gate__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: center;
}
.gate__ident { display: grid; justify-items: start; }
.gate__mark {
  align-self: center;
  justify-self: center;
  transform: translateY(-1.25rem);
  width: clamp(4rem, 8vw, 6rem);
  height: auto;
  aspect-ratio: 1;
  display: block;
}
.legal__title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.03em;
}
.legal__rule {
  width: 2.6rem; height: 0.28rem; background: var(--tomato);
  margin: 0.9rem 0 1.4rem; border-radius: 0;
}
.legal__lede {
  font-family: var(--font-note); color: var(--ink-dim); max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}
.legal__section {
  display: grid; gap: 0.5rem; max-width: 64ch;
  border-top: 1px solid var(--line);
  padding: clamp(1.4rem, 3.5vh, 2rem) 0;
}
.legal__section h2 { font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 700; letter-spacing: -0.01em; }
.legal__section p, .legal__section li { color: var(--ink-dim); font-family: var(--font-note); }
.legal__section ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.legal__section li::marker { color: var(--tomato); }
.legal__section a, .legal__acts a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.legal__section a:hover, .legal__acts a:hover { color: var(--tomato); }
.legal__acts {
  margin-top: 1.4rem; font-family: var(--font-note); color: var(--ink-dim);
  border-top: 1px solid var(--line); padding-top: 1.4rem; width: 100%;
}
