/* ==========================================================================
   DESSANT — legal document pages (terms.html / privacy.html + ru/ua/pl versions)
   Dark reading surface matching the main site (owner request 2026-07-10;
   was a light "paper" theme before): bg0 page, amber accents, Manrope
   display headings, "In plain words" summary asides.
   ========================================================================== */

:root {
  --paper: #06070b;
  --card: #10131d;
  --ink: #eef0f6;
  --muted: #b4bac9;
  --line: rgba(255, 255, 255, 0.10);
  --dark: #0b0d14;
  --amber: #ffb224;
  --link: #ffb224;
  --aside-bg: rgba(255, 178, 36, 0.07);
  --aside-line: rgba(255, 178, 36, 0.45);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #ffc95c; }

.wrap { max-width: 860px; margin-inline: auto; padding-inline: 24px; }

/* top bar */
.topbar { background: var(--dark); padding: 16px 0; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); }
.topbar a.back {
  color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; font-size: 14px;
}
.topbar a.back:hover { color: var(--amber); }

/* document head */
.doc-head { padding: 56px 0 8px; }
.doc-head h1 {
  font-size: clamp(34px, 5vw, 48px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 10px;
}
.doc-head .updated { color: var(--muted); font-size: 14px; }
.doc-head .howto {
  margin-top: 22px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted);
}

main { padding: 10px 0 80px; }

main h2 {
  font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em;
  margin: 44px 0 12px; scroll-margin-top: 20px;
}
main h2 .no { color: var(--amber); margin-right: 6px; }
main h3 { font-size: 16.5px; font-weight: 700; margin: 22px 0 8px; }
main p, main li { font-size: 15.5px; color: #c8cedb; margin-bottom: 12px; }
main ul, main ol { padding-left: 22px; margin-bottom: 14px; }
main li { margin-bottom: 6px; }
main strong { color: var(--ink); }

/* "In plain words" aside */
.plain {
  display: block; margin: 14px 0 18px; padding: 14px 18px;
  background: var(--aside-bg); border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0; font-size: 14.5px; color: #e6c88a;
}
.plain b {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 4px;
}

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.05); color: var(--muted);
}

/* footer */
.footer {
  border-top: 1px solid var(--line); background: var(--dark); padding: 28px 0;
  color: var(--muted); font-size: 14px;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.footer a { color: var(--link); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* Polish-only language disclaimer footer line (terms-pl.html / privacy-pl.html).
   Shares the class name with css/site.css so the pl homepage and the
   hand-maintained PL legal pages render the same subtle note. */
.footer-lang-note { margin-top: 14px; text-align: center; }
.footer-lang-note p { margin: 0; color: var(--muted); font-size: 13.5px; }

@media (max-width: 560px) {
  body { font-size: 15px; }
  .doc-head { padding-top: 40px; }
}
