/* ILJU legal pages.
 *
 * Deliberately plain CSS with no build step and no framework. These are legal
 * documents that have to keep loading years from now, from whatever host they end
 * up on, and a broken build here means the store listing links to a dead page.
 *
 * Colours are ILJU's own. They used to be HalalLog's CSS tokens, which is exactly
 * the coupling this move exists to remove: nothing here may depend on that repo. */

:root {
  --night: #170f2b;   /* ILJU night, same value as splashNight in the app */
  --ink: #1c1a24;
  --muted: #6b6878;
  --line: #e6e3ee;
  --paper: #ffffff;
  --accent: #6b4fa8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9f4;
    --muted: #a29db4;
    --line: #2e2842;
    --paper: #14111f;
    --accent: #b9a3ec;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.brand {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

h1 {
  margin: 1rem 0 0.375rem;
  font-size: 1.625rem;
  line-height: 1.25;
  font-weight: 700;
}

h2 {
  margin: 2.25rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--accent);
}

.updated {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

p { margin: 0.75rem 0 0; font-size: 0.9375rem; }
ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
li { margin-top: 0.5rem; font-size: 0.9375rem; }
ol.alpha { list-style: lower-alpha; }

a { color: var(--accent); font-weight: 500; }

hr {
  margin: 2.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

footer {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* The landing page only. */
.card-list { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.card-list li { margin-top: 0.75rem; }
.card-list a {
  display: block;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.card-list span { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
