/* The legal and support pages (privacy, terms, support): the homepage's night, gold and ivory, in a quiet reading layout. */
:root {
  --night: #0B1024;
  --midnight: #0F1630;
  --indigo: #1F2950;
  --gold: #D8B67C;
  --gold-light: #F0DBAE;
  --gold-deep: #C99F5E;
  --ivory: #F4EEE5;
  --ivory-soft: rgba(244, 238, 229, 0.72);
  --ivory-faint: rgba(244, 238, 229, 0.45);
  --line: rgba(216, 182, 124, 0.22);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; color: var(--ivory); font-family: var(--body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--night);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(240, 219, 174, .7), transparent),
    radial-gradient(1px 1px at 78% 9%, rgba(244, 238, 229, .6), transparent),
    radial-gradient(1.4px 1.4px at 64% 32%, rgba(240, 219, 174, .5), transparent),
    radial-gradient(1px 1px at 30% 44%, rgba(244, 238, 229, .45), transparent),
    radial-gradient(1px 1px at 90% 58%, rgba(240, 219, 174, .5), transparent),
    radial-gradient(ellipse 70% 45% at 80% -5%, rgba(216, 182, 124, 0.09), transparent 70%),
    linear-gradient(180deg, #0B1024 0%, #0F1630 55%, #17203F 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }

/* one language at a time, chosen by the switch */
html[lang="ru"] [data-l="en"], html:not([lang="ru"]) [data-l="ru"] { display: none !important; }

header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 56px); background: rgba(11, 16, 36, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 24px; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 19px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: #F3EBDD; padding-top: 2px; white-space: nowrap; }
@media (max-width: 640px) { .brand span { font-size: 15px; letter-spacing: 0.22em; } } @media (max-width: 360px) { .brand { gap: 8px; } .brand img { width: 28px; height: 28px; } .brand span { font-size: 12.5px; letter-spacing: 0.16em; } }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.lang button { background: none; border: 0; color: var(--ivory-faint); padding: 7px 12px; cursor: pointer; font: inherit; letter-spacing: inherit; }
.lang button.on { background: rgba(216, 182, 124, 0.16); color: var(--gold-light); }

main { padding: clamp(48px, 9vw, 110px) 16px clamp(70px, 10vw, 120px); }
.doc { max-width: 760px; margin: 0 auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.doc h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(32px, 9vw, 72px); line-height: 1.05; margin-top: 14px;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  background: linear-gradient(180deg, #FFF8EC 0%, var(--gold-light) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.doc .updated { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 14px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4vw, 32px); line-height: 1.2; color: var(--gold-light); margin-top: 48px; scroll-margin-top: 90px; }
.doc h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--ivory); margin-top: 34px; }
.doc p, .doc li { color: var(--ivory-soft); }
.doc p { margin-top: 14px; }
.doc strong { color: var(--ivory); font-weight: 700; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--gold-light); }
.doc a:not(.btn) { color: var(--gold-light); border-bottom: 1px solid rgba(216, 182, 124, 0.4); overflow-wrap: anywhere; transition: border-color .2s; }
.doc a:not(.btn):hover { border-color: var(--gold-light); }
.doc ul { list-style: none; margin-top: 14px; }
.doc li { position: relative; padding-left: 22px; margin-top: 9px; }
.doc li::before { content: '✦'; position: absolute; left: 0; top: 2px; font-size: 10px; color: var(--gold); }
.doc hr { border: 0; height: 1px; background: var(--line); margin: 44px 0 0; }
.contact { margin-top: 30px !important; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: #1A1508; box-shadow: 0 10px 40px rgba(216, 182, 124, 0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(216, 182, 124, 0.38); }

footer {
  border-top: 1px solid var(--line); padding: 32px clamp(16px, 6vw, 72px) 40px; font-size: 13px; color: var(--ivory-faint);
  background: rgba(11, 16, 36, 0.6);
}
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a:hover { color: var(--gold-light); }
.imprint { margin-top: 14px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
