/* Shared stylesheet for every app's legal pages.
   Deliberately one file with no build step: these pages must stay readable and
   deployable years from now, long after whatever framework is fashionable today. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #23262b;
  --ink-soft: #5c6269;
  --rule: #e3ded3;
  --accent: #4a6b7c;
  --accent-soft: #eef3f6;
}

/* Dark mode, unless a page pins itself light with data-theme="light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181b;
    --surface: #1e2125;
    --ink: #e8e6e1;
    --ink-soft: #a0a6ad;
    --rule: #32363c;
    --accent: #8fb4c6;
    --accent-soft: #22282d;
  }
}
:root[data-theme="dark"] {
  --bg: #16181b;
  --surface: #1e2125;
  --ink: #e8e6e1;
  --ink-soft: #a0a6ad;
  --rule: #32363c;
  --accent: #8fb4c6;
  --accent-soft: #22282d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; }

header.site {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
header.site a.home {
  font-family: ui-sans-serif, -apple-system, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
header.site a.home:hover { color: var(--accent); }

h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
  line-height: 1.2;
  margin: .6em 0 .2em;
}
h2 {
  font-size: 1.15rem;
  margin: 2.4em 0 .5em;
  color: var(--accent);
}
h2:first-of-type { margin-top: 1.6em; }

a { color: var(--accent); }

.muted {
  color: var(--ink-soft);
  font-size: .9rem;
  font-family: ui-sans-serif, -apple-system, system-ui, sans-serif;
}

.box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 1.6em 0;
}
.box.warn { background: var(--accent-soft); }

table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
th, td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: left; vertical-align: top; }
th { font-family: ui-sans-serif, -apple-system, system-ui, sans-serif; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }

hr.lang-split { border: none; border-top: 1px solid var(--rule); margin: 4em 0; }

/* App / document index cards */
ul.cards { list-style: none; padding: 0; margin: 2em 0; display: grid; gap: 12px; }
ul.cards li { margin: 0; }
ul.cards a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease;
}
ul.cards a:hover { border-color: var(--accent); }
ul.cards strong { display: block; font-size: 1.05rem; }
ul.cards span { display: block; color: var(--ink-soft); font-size: .88rem; margin-top: 3px; font-family: ui-sans-serif, -apple-system, system-ui, sans-serif; }
ul.cards li.pending { opacity: .55; }
ul.cards li.pending div {
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: 12px;
  padding: 16px 20px;
}

footer.site {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
