/* Teisiniai dokumentai (taisyklės, privatumo politika).
   Atskiras, savarankiškas stilius: šiuos puslapius turi matyti ir
   neprisijungęs lankytojas, todėl jie nepriklauso nuo sistemos CSS. */
:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #181818;
  --surface-2: #212121;
  --border: #303030;
  --ink: #f1f1f1;
  --body: #d4d4d4;
  --muted: #aaaaaa;
  --dim: #717171;
  --link: #3ea6ff;
  --brand: #ba141a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.doc-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px;
  background: rgba(15,15,15,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.doc-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; letter-spacing: -.2px; }
.doc-brand img { width: 26px; height: 26px; display: block; }
.doc-top a.back { color: var(--muted); font-size: 14px; }
.doc-top a.back:hover { color: var(--ink); text-decoration: none; }

.doc { max-width: 800px; margin: 0 auto; padding: 46px 22px 90px; }
.doc h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; letter-spacing: -.6px; color: var(--ink); font-weight: 700; }
.doc-meta { margin: 0 0 30px; color: var(--dim); font-size: 13.5px; }
.doc-meta b { color: var(--muted); font-weight: 500; }

.doc-lead {
  margin: 0 0 34px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--body); font-size: 15px;
}
.doc-lead p { margin: 0 0 9px; }
.doc-lead p:last-child { margin: 0; }

.toc { margin: 0 0 40px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.toc h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.toc li { margin: 3px 0; }

.doc h2 {
  margin: 44px 0 12px; padding-top: 12px;
  font-size: 20px; line-height: 1.35; letter-spacing: -.2px; color: var(--ink); font-weight: 600;
  scroll-margin-top: 70px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin: 26px 0 8px; font-size: 16px; color: var(--ink); font-weight: 600; }
.doc p { margin: 0 0 13px; }
.doc ul, .doc ol { margin: 0 0 15px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 14px; }
.doc th, .doc td { padding: 9px 11px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.note {
  margin: 16px 0 20px; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand);
  border-radius: 8px; font-size: 14.5px; color: var(--body);
}
.note p { margin: 0 0 8px; }
.note p:last-child { margin: 0; }

.doc-foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--dim); font-size: 13.5px; }
.doc-foot a { margin-right: 16px; }

@media (max-width: 560px) {
  .doc { padding: 30px 16px 70px; }
  .doc h1 { font-size: 25px; }
  .doc h2 { font-size: 18px; }
  body { font-size: 15px; }
}
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .doc-top, .toc { display: none; }
  .doc { max-width: none; padding: 0; }
  .doc h1, .doc h2, .doc h3, .doc strong { color: #000; }
  .doc-lead, .note { background: #fff; border: 1px solid #bbb; }
  .doc th { background: #f0f0f0; color: #000; }
  a { color: #000; }
}
