/* Legal documents (scripts/render-legal.mjs): the site's wordmark, type and colours, in the light
   and the dark theme (public/theme.js sets data-color-scheme). Plain CSS: these pages are outside
   the app bundle. */
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/legal/fonts/prata-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/legal/fonts/prata-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/legal/fonts/golos-cyrillic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text Variable';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/legal/fonts/golos-latin.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lg-page: #f6f1e9;
  --lg-card: #fffdf9;
  --lg-sunken: #ede4d7;
  --lg-line: #e2d8c9;
  --lg-line-strong: #b7a796;
  --lg-ink: #16120f;
  --lg-ink-2: #4a4038;
  --lg-ink-3: #6e6359;
  --lg-accent: #806038;
  color-scheme: light;
  font-family: 'Golos Text Variable', 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--lg-ink-2);
  background: var(--lg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
:root[data-color-scheme='dark'] {
  --lg-page: #1b1612;
  --lg-card: #221c17;
  --lg-sunken: #29221c;
  --lg-line: #3a302a;
  --lg-line-strong: #7a6a5c;
  --lg-ink: #f6f1e9;
  --lg-ink-2: #d9cfc2;
  --lg-ink-3: #a89a88;
  --lg-accent: #d6b886;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  width: min(100% - 40px, 960px);
  margin: auto;
}
/* The site's header: the wordmark and the double rule. */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0 18px;
  border-bottom: 3px double var(--lg-line-strong);
}
header > a:last-child {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lg-ink-2);
}
header > a:last-child:hover {
  color: var(--lg-accent);
}
a {
  color: var(--lg-accent);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
a:focus-visible {
  outline: 2px solid var(--lg-accent);
  outline-offset: 4px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  color: var(--lg-ink);
  text-decoration: none;
}
.brand b {
  font-family: 'Prata', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.brand small {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lg-ink-3);
}
@media (max-width: 480px) {
  header {
    gap: 12px;
  }
  .brand b {
    font-size: 22px;
  }
  header > a:last-child {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-align: right;
  }
}
main {
  padding: 36px 0 64px;
  overflow-wrap: anywhere;
}
h1,
h2 {
  font-family: 'Prata', Georgia, serif;
  font-weight: 400;
  color: var(--lg-ink);
}
h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h2 {
  margin-top: 44px;
  font-size: 24px;
  line-height: 1.3;
}
h3 {
  color: var(--lg-ink);
}
strong {
  color: var(--lg-ink);
}
p {
  margin: 18px 0;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--lg-card);
  font-size: 14px;
}
th,
td {
  padding: 12px;
  border: 1px solid var(--lg-line);
  vertical-align: top;
  text-align: left;
  min-width: 170px;
}
th {
  background: var(--lg-sunken);
  color: var(--lg-ink);
}
code {
  font-size: 0.92em;
}
footer {
  border-top: 1px solid var(--lg-line);
  padding: 24px 0 100px;
  font-size: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 20px;
}
.document-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.document-list a {
  padding: 16px 20px;
  border: 1px solid var(--lg-line);
  border-radius: 8px;
  background: var(--lg-card);
  color: var(--lg-ink);
  text-decoration: none;
}
.document-list a:hover {
  border-color: var(--lg-accent);
}
@media print {
  header,
  footer,
  .cookie-banner,
  .cookie-settings {
    display: none !important;
  }
  main {
    width: 100%;
  }
  :root,
  :root[data-color-scheme='dark'] {
    --lg-ink: black;
    --lg-ink-2: black;
    --lg-card: white;
    --lg-sunken: #f2f2f2;
    --lg-line: #ccc;
    color: black;
    background: white;
  }
  h2 {
    break-after: avoid;
  }
  tr {
    break-inside: avoid;
  }
}
