/* Teisiniai dokumentai (taisyklės, privatumo politika).
   Savarankiškas stilius — šiuos puslapius turi matyti ir neprisijungęs
   lankytojas, todėl jie nepriklauso nuo vidinės sistemos CSS. Spalvos, šriftas
   ir akcentai perimti iš pagrindinio puslapio, kad dokumentai atrodytų kaip ta
   pati Kliperio svetainė, o ne kaip svetimas priedas. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #0D0D0D;
  --surface-2: #141414;
  --border: #262626;
  --border-soft: rgba(255,255,255,.09);
  --ink: #FFFFFF;
  --body: #D8D8D8;
  --muted: #A6A6A6;
  --dim: #8A8A8A;
  --red: #F42D5E;
  --red2: #FF5A3C;
  --grad: linear-gradient(135deg, #FF5A3C, #F42D5E);
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }
a { color: var(--red); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Fonas: tie patys „rutuliai“ kaip pagrindiniame puslapyje, tik ramesni —
   dokumentas skirtas skaityti, o ne žavėtis. */
.orb {
  position: fixed; width: 340px; height: 340px; border-radius: 50%;
  filter: blur(190px); pointer-events: none; z-index: 0; opacity: .18;
}
.orb.o1 { background: var(--red2); top: -110px; left: -110px; }
.orb.o2 { background: var(--red); bottom: -140px; right: -120px; }

.doc-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 54px; padding: 0 clamp(14px, 4vw, 28px);
  background: rgba(8,8,10,.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.doc-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 900; letter-spacing: -.01em; font-size: 1.05rem; }
.doc-brand:hover { text-decoration: none; }
.doc-brand img { width: 26px; height: 26px; display: block; }
.doc-top a.back { color: var(--muted); font-size: .88rem; font-weight: 700; }
.doc-top a.back:hover { color: var(--ink); text-decoration: none; }

.doc { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 52px 22px 96px; }
.doc h1 {
  margin: 0 0 12px; font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 900;
  line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.doc-meta { margin: 0 0 32px; color: var(--dim); font-size: .84rem; font-weight: 600; }
.doc-meta b { color: var(--muted); font-weight: 800; }

.doc-lead {
  margin: 0 0 36px; padding: 20px 22px;
  background: rgba(13,13,13,.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft); border-radius: 16px;
  color: var(--body); font-size: .97rem;
}
.doc-lead p { margin: 0 0 10px; }
.doc-lead p:last-child { margin: 0; }

.toc {
  margin: 0 0 44px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
}
.toc h2 {
  margin: 0 0 12px; font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
}
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); font-weight: 600; }
.toc a:hover { color: var(--ink); text-decoration: none; }

.doc h2 {
  margin: 52px 0 14px; padding-top: 14px;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.3; letter-spacing: -.015em;
  color: var(--ink); font-weight: 900; scroll-margin-top: 72px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin: 30px 0 9px; font-size: 1.02rem; color: var(--ink); font-weight: 800; scroll-margin-top: 72px; }
.doc h4 { margin: 22px 0 8px; font-size: .94rem; color: var(--muted); font-weight: 800; letter-spacing: .01em; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--dim); }
.doc strong { color: var(--ink); font-weight: 800; }

.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: .9rem; }
.doc th, .doc td { padding: 11px 13px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); color: var(--ink); font-weight: 800; }
.doc tr:nth-child(even) td { background: rgba(255,255,255,.015); }
.table-wrap { overflow-x: auto; border-radius: 12px; }

/* Akcentinis blokas: gradientinis kraštas – tas pats ženklas kaip mygtukuose. */
.note {
  position: relative; margin: 18px 0 22px; padding: 15px 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  font-size: .94rem; color: var(--body);
}
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.note p { margin: 0 0 9px; }
.note p:last-child { margin: 0; }

.doc-foot { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--dim); font-size: .84rem; }
.doc-foot a { margin-right: 18px; color: var(--muted); font-weight: 700; }
.doc-foot a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .doc { padding: 32px 16px 72px; }
  body { font-size: 15px; }
  .orb { display: none; }
}
@media print {
  .orb, .doc-top, .toc { display: none; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .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; }
  .note::before { display: none; }
  .doc th { background: #f0f0f0; color: #000; }
  .doc tr:nth-child(even) td { background: #fff; }
  a { color: #000; }
}
