/* The look of the legal pages on the landing, privacy.html and terms.html: the Plate's colours
   (lib/app/plate_theme.dart), the day palette and the night one in dark mode, the game's Rubik. */
@font-face {
  font-family: Rubik;
  src: url(Rubik-Variable.ttf) format("truetype");
  font-weight: 500 700;
  font-display: swap;
}
:root {
  --slab: #ddb277;
  --inlay: #cda064;
  --inlay-edge: #ae8147;
  --grass: #94ca61;
  --grass-face: #5e9a3c;
  --soil: #a38559;
  --ink: #3a2612;
  --link: #1f6a86;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --slab: #4a3e2d;
    --inlay: #3c3122;
    --inlay-edge: #271e14;
    --grass: #3c6a3e;
    --grass-face: #25462a;
    --soil: #30251a;
    --ink: #f3ebdd;
    --link: #38f5e0;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--slab);
  color: var(--ink);
  font: 500 17px/1.55 Rubik, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* The island's edge: grass over soil, as the game's plates are cut from it. */
body::before {
  content: "";
  display: block;
  height: 22px;
  background: linear-gradient(var(--grass) 0 12px, var(--grass-face) 12px 16px, var(--soil) 16px);
}
main { max-width: 38rem; margin: 0 auto; padding: 28px 16px 64px; }
/* «Конфиденциальность» in one line down to a 360 px phone. */
h1 { font-size: clamp(26px, calc(8.7vw - 3px), 44px); hyphens: auto; line-height: 1.05; font-weight: 700; margin: 28px 0 16px; letter-spacing: -.01em; }
.lead { font-size: 20px; line-height: 1.45; font-weight: 600; margin: 0 0 10px; }
.updated { font-size: 15px; opacity: .75; margin: 0; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 700; margin: 44px 0 10px; }
h3 { font-size: 17px; font-weight: 700; margin: 0; }
p, ul { margin: 0 0 12px; }
ul { padding-inline-start: 20px; }
li { margin-bottom: 8px; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }
b { font-weight: 700; }
/* Lists cut into the slab like the game's inlays. */
ul.inlay { list-style: none; margin-top: 24px; }
.inlay {
  background: var(--inlay);
  border-radius: 14px;
  box-shadow: inset 0 3px 0 var(--inlay-edge);
  padding: 6px 16px;
  margin: 0 0 14px;
}
.inlay > * { margin: 0; padding: 12px 0; }
.inlay > * + * { border-top: 2px solid var(--inlay-edge); }
.inlay p { margin: 4px 0 0; }
.inlay p + p { opacity: .85; }
