/* Privacy and support pages (built by scripts/privacy-page.py): a cream sheet on the night sky, a racer peeking over it. */
.docpage { background: radial-gradient(120% 60% at 50% 0, var(--plum), var(--night2) 45%, var(--night) 80%) no-repeat, var(--night); min-height: 100vh; display: flex; flex-direction: column; }

.dtop { padding: 14px 0 calc(14px); }
.dtop-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.dbrand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.dbrand img { border-radius: 11px; border: 3px solid var(--ink); }
.dbrand b { font: 400 22px/1 var(--display); color: #fff; letter-spacing: .02em; -webkit-text-stroke: .15em var(--ink); paint-order: stroke fill; }
.dback { font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; margin-left: 6px; }
.dbrand:hover .dback { color: #fff; }

.doc { flex: 1; padding: 120px 16px 80px; }
.sheet-wrap { position: relative; max-width: 820px; margin: 0 auto; }
.peek { position: absolute; right: clamp(18px, 6vw, 60px); top: -112px; width: auto; height: 150px; transform: rotate(6deg); transform-origin: 50% 100%; animation: peek 4.5s ease-in-out infinite; }
.support .peek { height: 150px; top: -132px; }
@keyframes peek { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-3deg) translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .peek { animation: none; } }

.sheet {
  position: relative; z-index: 1; background: var(--cream); color: var(--ink);
  border: 6px solid var(--ink); border-radius: 30px; box-shadow: 0 12px 0 rgba(0, 0, 0, .35);
  padding: clamp(26px, 5.5vw, 60px); font: 600 17.5px/1.65 var(--body); overflow-wrap: anywhere;
}
.sheet h1 { font: 400 clamp(32px, 5.4vw, 50px)/1.05 var(--display); letter-spacing: .01em; margin: 0 0 14px; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.sheet h2 { font: 400 clamp(22px, 3vw, 27px)/1.15 var(--display); letter-spacing: .02em; color: var(--plum); margin: 1.7em 0 .35em; }
.sheet p { margin: 0 0 1em; color: #33244f; text-wrap: pretty; }
.sheet strong { font-weight: 900; color: var(--ink); }
.sheet a { color: #6a2bd9; font-weight: 800; text-underline-offset: 3px; }
.sheet .date { display: inline-block; font-size: 15px; font-weight: 800; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 10px; padding: 3px 10px; margin-bottom: 1.4em; }
.sheet .date em { font-style: normal; }
.sheet .big { font-size: clamp(18px, 2.2vw, 21px); font-weight: 700; color: var(--ink); }
.sheet .mail { margin: 4px 0 30px; }
.sheet .mail .btn { color: #fff; font-size: clamp(17px, 2.6vw, 22px); padding: 14px 22px 15px; overflow-wrap: normal; }
.sheet .tip { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: 0 4px 0 rgba(29, 15, 51, .18); }

/* one language at a time once the script runs; without it every language shows, one after another */
.js .sheet section:not(.on) { display: none; }
.sheet section + section { border-top: 3px dashed rgba(29, 15, 51, .25); margin-top: 40px; padding-top: 40px; }
.js .sheet section + section { border: 0; margin: 0; padding: 0; }

.docpage .foot-links a[aria-current] { color: var(--sun); }

@media (max-width: 560px) {
  .dback { display: none; }
  .dtop-in { flex-wrap: nowrap; }
  .dtop .lang span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sheet h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .doc { padding: 104px 12px 60px; }
  .peek { height: 120px; top: -90px; }
  .support .peek { height: 120px; top: -106px; }
  .sheet { border-radius: 24px; font-size: 17px; }
}

/* Lilita One has no Cyrillic: the Russian titles fall back to Nunito, so give them its heaviest weight (no faux-bold on the Latin) */
:lang(ru) .sheet h1, :lang(ru) .sheet h2 { font-weight: 900; font-synthesis: none; }
