/* Public pages of the app (privacy, support): one card, the brand of the app (store/store.json: Manrope, ink, sub, bg, acc).
   Served at /site.css next to the web demo; the font comes from the demo's own /fonts. Light only, like the app's paper. */
@font-face { font-family: Manrope; font-weight: 400; src: url('/fonts/Manrope_400Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Manrope; font-weight: 600; src: url('/fonts/Manrope_600SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: Manrope; font-weight: 800; src: url('/fonts/Manrope_800ExtraBold.ttf') format('truetype'); font-display: swap; }

:root { --ink: #1D1D1F; --sub: #6B6B70; --bg: #F6F5F2; --acc: #2F5D8A; --line: #E4E2DC; --card: #FFFFFF; --warn: #FBF3E4; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  padding: max(20px, env(safe-area-inset-top)) 14px max(32px, env(safe-area-inset-bottom));
  font: 16px/1.6 Manrope, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 760px; margin: 0 auto; background: var(--card); border-radius: 22px; border-top: 6px solid var(--acc); padding: 24px 22px 26px; box-shadow: 0 8px 30px rgba(0, 0, 0, .06); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; display: block; }
.lang { display: none; gap: 6px; }
html[data-lang] .lang { display: flex; }
.lang button { font: inherit; font-size: 14px; font-weight: 600; min-width: 48px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--acc); border-color: var(--acc); color: #fff; }
.lang button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

h1 { margin: 22px 0 0; font-size: 28px; line-height: 34px; font-weight: 800; }
h2 { margin: 28px 0 4px; font-size: 18px; line-height: 24px; font-weight: 800; }
p, li { color: #3A3A3F; font-size: 15px; }
p { margin: 8px 0 0; }
ul { margin: 6px 0 0; padding-left: 20px; }
li { margin: 5px 0; }
a { color: var(--acc); }
strong { color: var(--ink); }
.date { color: var(--sub); font-size: 14px; margin-top: 4px; }
.note { background: var(--warn); border-left: 4px solid #B7791F; padding: 10px 12px; border-radius: 8px; margin-top: 12px; }
.short { background: #EEF3F8; border-radius: 12px; padding: 4px 16px 10px; margin-top: 16px; }
.short h2 { margin-top: 12px; }

details { border-top: 1px solid var(--line); padding: 2px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 12px 0; list-style-position: outside; }
details > :not(summary) { margin-bottom: 4px; }
details p:last-child { margin-bottom: 14px; }

.foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.foot a { color: var(--acc); }

/* the language of the page: site.js sets data-lang on <html>; without scripts all three show, one under another */
.l { display: none; }
html[data-lang='ru'] .l-ru, html[data-lang='cs'] .l-cs, html[data-lang='en'] .l-en { display: block; }
html:not([data-lang]) .l { display: block; margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--line); }
