/* The public Lino pages: the privacy policy and the terms of use, in English and Slovenian (ADR 0034).
   The colours are the app's design tokens (docs/design/tokens.json) and the cream of the app icon. */
:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --text: #191919;
  --muted: #5c5c5c;
  --primary: #2563d4;
  --border: #e2ddd2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --surface: #222222;
    --text: #f2f2f2;
    --muted: #a8a8a8;
    --primary: #7aa7f0;
    --border: #333333;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 16px 64px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main,
header {
  max-width: 44rem;
  margin: 0 auto;
}

header {
  padding: 40px 0 8px;
}

.brand {
  display: inline-block;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.languages {
  float: right;
  font-size: 15px;
  color: var(--muted);
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 24px 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 4px;
}

.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

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

ul {
  padding-left: 20px;
}

li {
  margin: 6px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 16px;
  background: var(--surface);
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
}

/* Three columns are tight on a phone, so the table gives up some size rather than the page scrolling sideways. */
@media (max-width: 480px) {
  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 6px;
  }
}

footer {
  max-width: 44rem;
  margin: 56px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

.cards {
  list-style: none;
  padding: 0;
}

.cards a {
  display: block;
  padding: 16px;
  margin: 12px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.cards span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
}
