/* legal.pamirapps.com: system fonts only, no external resources. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #5f6368;
  --rule: #e3e3e6;
  --link: #0a58ca;
  --surface: #f5f5f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --fg: #e8e8ea;
    --muted: #a0a0a8;
    --rule: #2e2e33;
    --link: #79b0ff;
    --surface: #1c1c20;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  overflow-wrap: break-word;
}
header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
header nav { color: var(--muted); }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--fg); text-decoration: underline; }
.lang {
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
}
.lang:hover { border-color: var(--muted); }
main { padding-top: 8px; padding-bottom: 32px; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.25rem 0 0.5rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.08rem; line-height: 1.35; margin: 1.5rem 0 0.4rem; }
h1 + p em { color: var(--muted); }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.3rem 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
a { color: var(--link); }
a.anchor { color: inherit; text-decoration: none; }
a.anchor:hover { text-decoration: underline; }
strong { font-weight: 650; }
section h2, section h3 { margin-top: 1.5rem; }
footer {
  padding-top: 16px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}
footer p { margin: 0 0 0.5rem; }
@media print {
  header, footer { display: none; }
  body { font-size: 12pt; }
}
