/* Documents (privacy, terms, 404; RU and EN): plain pages in the site's fonts and colors, no scripts. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root { color-scheme: dark; }
* { box-sizing: border-box; margin: 0; }
body {
  background: #07080a;
  color: #cdcece;
  font: 16px/1.65 "Inter", system-ui, sans-serif;
  font-feature-settings: "ss02" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #ff8a6b; text-decoration: none; }
a:hover { text-decoration: underline; }

.doc-nav,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.doc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.doc-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: #fff; }
.doc-brand:hover { text-decoration: none; }
.doc-brand img { width: 24px; height: 24px; }
.doc-nav-links { display: flex; gap: 20px; font-size: 14px; }
.doc-nav-links a { color: #9c9c9d; }

main { padding-top: 48px; padding-bottom: 80px; }
h1 { font-size: 40px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.doc-date { margin-top: 12px; font-family: "JetBrains Mono", monospace; font-size: 13px; color: #6a6b6c; }
.doc-lead { margin-top: 28px; font-size: 18px; color: #e6e6e6; text-wrap: pretty; }
h2 { margin-top: 44px; font-size: 20px; font-weight: 600; line-height: 1.4; color: #fff; }
p, ul { margin-top: 14px; text-wrap: pretty; }
ul { padding-left: 22px; }
li + li { margin-top: 6px; }
li::marker { color: #6a6b6c; }
strong { font-weight: 500; color: #fff; }
code { font-family: "JetBrains Mono", monospace; font-size: .9em; color: #e6e6e6; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid #ffffff0a;
  font-size: 13px;
  color: #6a6b6c;
}
footer a { color: #9c9c9d; }

/* 404: the hero's coral light, the message in the middle, the footer at the bottom */
.nf-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(60% 50% at 50% 0%, #ff62482e, #ff624800) no-repeat #07080a;
}
.doc-nav, footer { width: 100%; }
.nf { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; text-align: center; }
.nf-code { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: .08em; color: #ff8a6b; }
.nf h1 { margin-top: 16px; font-size: 48px; }
.nf-lead { max-width: 460px; margin-top: 16px; font-size: 18px; color: #9c9c9d; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.nf-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2f3031;
  background: #e6e6e6;
  box-shadow: 0 0 0 2px #00000080, 0 0 14px #ffffff30, inset 0 -1px .4px #0003, inset 0 1px .4px #fff;
}
.nf-btn:hover { text-decoration: none; background: #fff; }
.nf-btn--ghost { color: #fff; background: linear-gradient(#ffffff08, #ffffff1a); box-shadow: inset 0 1px #ffffff0d, 0 0 0 1px #ffffff40, inset 0 -1px #0003; }
.nf-btn--ghost:hover { background: linear-gradient(#ffffff08, #ffffff1a); box-shadow: inset 0 1px #ffffff0d, 0 0 0 1px #ffffff80, inset 0 -1px #0003; }
.nf-btn:focus-visible { outline: 2px solid #ff8a6b99; outline-offset: 2px; }

@media (max-width: 600px) {
  main { padding-top: 24px; }
  h1 { font-size: 30px; }
  .nf h1 { font-size: 34px; }
  .nf-lead { font-size: 16px; }
}
