/* Self-contained styles of privacy.html and ru/privacy.html (a narrow reading page; does not load site.css). */
:root { color-scheme: light; --paper: #fffaf2; --ink: #432b25; --accent: #a8402c; --hover: #823322; --muted: #72554a; --focus: #254f63; --line: #d8b5a2; --gutter: clamp(20px, 5vw, 48px); }
* { box-sizing: border-box; }
html { scrollbar-color: var(--muted) var(--paper); }
body { margin: 0; padding: 0 var(--gutter) 64px; font: 17px/1.75 "Segoe UI", Tahoma, Arial, sans-serif; color: var(--ink); background: var(--paper); }
::selection { background: var(--accent); color: var(--paper); }
header, main { max-width: 720px; margin-inline: auto; }
header { padding-block: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 48px; font-size: 32px; font-weight: 750; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
main { padding-top: clamp(36px, 5vw, 64px); }
h1, h2 { margin: 0; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(26px, 8vw, 46px); font-weight: 650; overflow-wrap: anywhere; }
h2 { font-size: 28px; font-weight: 600; }
p { margin: 24px 0 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .24em; text-decoration-thickness: 1px; overflow-wrap: anywhere; transition: color .18s ease; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 3px; }
a:active { color: var(--hover); }
.home-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
strong { font-weight: 600; }
.lang-en { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); }
.lang-en h2 { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--hover); text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
@media (max-width: 480px) {
  body { padding-bottom: 40px; }
  header { padding-block: 16px; }
}
@media print {
  body { padding: 0; }
  header { display: none; }
  main { padding-top: 0; }
}
ol { padding-left: 1.5em; margin: 32px 0 24px; }
li { padding-left: .35em; }
li + li { margin-top: 24px; }
li::marker { color: var(--accent); font-weight: 600; }
li > strong:first-child { display: block; margin-bottom: 4px; }
code { font-size: .88em; color: var(--accent); overflow-wrap: anywhere; }
@media (max-width: 480px) {
  ol { padding-left: 1.25em; }
  li { padding-left: .2em; }
}
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px 20px; background: var(--paper); z-index: 10; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
.language-switch { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.language-switch [aria-current] { color: var(--accent); font-weight: 650; text-decoration: underline; }
.header .brand { margin-right: auto; }
@media (max-width:1100px) {
  .header { gap: 20px; }
  .header nav { gap: 20px; }
}
@media (max-width:760px) {
  .header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
  .header .brand { grid-column: 1; grid-row: 1; }
  .header .language-switch { grid-column: 2; grid-row: 1; }
  .header nav { grid-column: 1 / -1; grid-row: 2; gap: 12px; }
}
@media (max-width:360px) {
  .header nav { gap: 8px; }
}
