/* Legal pages of Cromia. No external fonts, scripts or images: reading them
   sends nothing to anyone but the hosting. Colours from lib/ui/theme.dart. */
:root {
  --background: #ece9e4;
  --ink: #161513;
  --ink-secondary: #5f5b55;
  --line: #d9d4cc;
  --card: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #161513;
    --ink: #f1eee9;
    --ink-secondary: #b4aea5;
    --line: #3a3733;
    --card: #1f1e1b;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
}

.brand {
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

nav { display: flex; gap: 16px; font-size: 14px; }
nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }

main {
  background: var(--card);
  border-radius: 18px;
  margin-top: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 760px) {
  main { margin-left: 10px; margin-right: 10px; padding-left: 18px; padding-right: 18px; }
}

h1 { font-size: 32px; line-height: 1.15; margin: 0 0 6px; }
h2 { font-size: 20px; line-height: 1.3; margin: 34px 0 8px; scroll-margin-top: 16px; }
h3 { font-size: 16px; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: inherit; text-underline-offset: 3px; }

.date { color: var(--ink-secondary); font-size: 14px; margin-bottom: 20px; }

.summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 2px;
}

.table { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14px; line-height: 1.45; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }

/* a piece of the text still to be filled in (tool/site/check.mjs refuses to publish it) */
mark { background: #ffe58a; color: #161513; border-radius: 4px; padding: 0 3px; }

footer { color: var(--ink-secondary); font-size: 13px; padding-top: 20px; padding-bottom: 36px; }

/* Home: the app page (site/index.html) */
.hero { display: flex; gap: 28px; align-items: center; }
.hero-text { flex: 1 1 auto; }
.app-icon { border-radius: 22px; display: block; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--ink-secondary); }
.shot { flex: 0 0 auto; width: 220px; height: auto; border-radius: 26px; border: 1px solid var(--line); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store {
  display: inline-flex;
  flex-direction: column;
  min-width: 150px;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--background);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
}
.store small { font-weight: 500; font-size: 11px; letter-spacing: .04em; }

@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .shot { width: 70%; align-self: center; }
}
