/* OrderSay legal pages (site-src/legal.mjs): a plain reading page on the landing's tokens.
   No scroll engine, no script; readable from 320px wide. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0F2A44;
  --paper: #F6F3EC;
  --soft: #4A5A6B;
  --tape: #F28C28;
  --tape-text: #A4500B;
  --white: #FFFFFF;
  --line: rgb(15 42 68 / 0.16);
  --display: "Poppins", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--text); }
a { color: var(--ink); text-underline-offset: 0.15em; }
a:hover { color: var(--tape-text); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
::selection { background: var(--tape); color: var(--ink); }

/* ---------------------------------------------------------------- header -- */
.lh {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  max-width: 52rem; margin: 0 auto; padding: 1.25rem var(--gut) 1rem; border-bottom: 1px solid var(--line);
}
.lh__home { display: inline-flex; padding: 0.25rem 0; }
.lh__home img { display: block; width: 128px; height: auto; }
.lh ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; }
.lh__langs a, .lh__docs a {
  display: inline-block; padding: 0.3rem 0.6rem; border-radius: 999px; text-decoration: none;
  font: 600 0.82rem/1.3 var(--display);
}
.lh__langs a[aria-current], .lh__docs a[aria-current] { background: var(--ink); color: var(--paper); }
.lh__docs { flex-basis: 100%; }
.lh__docs ul { margin-inline: -0.6rem; }

/* -------------------------------------------------------------- document -- */
.doc { max-width: 52rem; margin: 0 auto; padding: 1.5rem var(--gut) 3rem; overflow-wrap: anywhere; }
.doc > * { max-width: 44rem; }
.doc h1, .doc h2, .doc h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: normal; }
.doc h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin: 0.5rem 0 1rem; letter-spacing: -0.02em; }
.doc h2 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); margin: 2.2rem 0 0.6rem; scroll-margin-top: 1rem; }
.doc h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.doc p, .doc ul, .doc ol { margin: 0 0 0.9rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li + li { margin-top: 0.3rem; }
.doc code { font-size: 0.92em; background: var(--white); padding: 0.05em 0.3em; border-radius: 4px; }

/* The draft notice is the source's first blockquote. */
.doc blockquote {
  margin: 0 0 1.4rem; padding: 0.85rem 1rem; background: var(--white);
  border: 1px solid var(--line); border-left: 4px solid var(--tape); border-radius: 8px;
}
.doc blockquote p:last-child { margin-bottom: 0; }

/* A value still to be filled in: marked by background and border, never by colour alone. */
.ph { background: #FDEBD6; border: 1px dashed var(--tape-text); border-radius: 4px; padding: 0 0.2em; }

/* Wide tables scroll inside their own box; the page itself never scrolls sideways. */
.table { max-width: 100%; overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.92rem; overflow-wrap: normal; }
.doc th, .doc td { hyphens: auto; text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
.doc td:first-child { hyphens: manual; } /* provider names stay whole */
.doc th { font-family: var(--display); font-weight: 600; font-size: 0.85rem; }
.doc tr:last-child td { border-bottom: 0; }
.doc td { min-width: 6rem; }

/* ---------------------------------------------------------------- footer -- */
.lf {
  max-width: 52rem; margin: 0 auto; padding: 1.25rem var(--gut) 2.5rem; border-top: 1px solid var(--line);
  color: var(--soft); font-size: 0.88rem;
}
.lf p { margin: 0 0 0.4rem; max-width: 52ch; }
