/* E Space — public legal pages.
   Shared by every page here so the wording can change without the design
   drifting page to page. Palette matches the app. */

:root {
  --paper: #F4F1EA;
  --raised: #FFFFFF;
  --ink: #0B2A24;
  --body: #4A5F66;
  --muted: #7B8E92;
  --rule: #DFE5E0;
  --green: #0D6B5A;
  --measure: 68ch;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1A17;
    --raised: #17241F;
    --ink: #ECF3EF;
    --body: #A7BAB6;
    --muted: #7B8E8A;
    --rule: #263630;
    --green: #6FCFB2;
  }
}

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

body {
  margin: 0;
  padding: 3.5rem 1.5rem 5rem;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; margin-top: 0.5rem; }
p { margin: 0; }
strong { color: var(--ink); font-weight: 650; }

a { color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }

/* The wordmark, as it appears in the app. */
.mark { display: flex; align-items: baseline; gap: 0.45rem; color: var(--ink); text-decoration: none; }
.mark .glyph { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.8rem; line-height: 1; }
.mark .name { font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 600; }

header { display: flex; flex-direction: column; gap: 1rem; }
.updated { font-size: 0.85rem; color: var(--muted); }

/* Plain-language summary before the legal text, as in the app. */
.summary {
  background: var(--raised);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.summary h2 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.summary ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }

section { display: flex; flex-direction: column; gap: 0.6rem; }
section + section { margin-top: 1.4rem; }
ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; }
li::marker { color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.links a {
  background: var(--raised);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
}

footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ---------------------------------------------------------------------------
   The front page.
   The legal pages are a document and read like one; this one has to say what
   E Space is before anybody scrolls, so it gets a wider measure and a little
   more air. Everything still comes from the tokens above.
   --------------------------------------------------------------------------- */

body.home .wrap { max-width: 78ch; }

.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.hero-mark { width: 92px; height: auto; margin-bottom: 0.4rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); max-width: 20ch; }
.lede { font-size: 1.12rem; max-width: 58ch; }
.note {
  font-size: 0.9rem; font-weight: 700; color: var(--green);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

/* Numbered because it genuinely is a sequence -- the order is the promise. */
.steps ol { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.steps li {
  display: grid; grid-template-columns: 2rem 1fr; gap: 0.15rem 0.9rem;
  align-items: baseline; background: var(--raised);
  border: 1px solid var(--rule); border-radius: 14px; padding: 0.95rem 1.1rem;
}
.step-n {
  grid-row: span 2; align-self: center;
  font-weight: 800; font-size: 0.95rem; color: var(--green);
  border: 1px solid var(--rule); border-radius: 50%;
  width: 2rem; height: 2rem; display: grid; place-items: center;
}
.steps li strong { color: var(--ink); }
.steps li span:last-child { font-size: 0.95rem; }
.aside { margin-top: 1.1rem; font-size: 0.95rem; color: var(--muted); }

.cols { display: grid; gap: 2rem; }
@media (min-width: 720px) { .cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.cols ul { margin: 0.8rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; font-size: 0.97rem; }

.disclaim p { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1.4rem; }
