/* ============================================================
   STR.systems — legal documents
   Оферта, політика конфіденційності, контакти.

   Deliberately NOT the steward/ page's language. That page is
   built as a Telegram conversation because the product's claim
   is "it is Telegram". A contract is not a conversation — it is
   a document someone has to find a clause in, possibly a bank
   compliance officer, possibly under time pressure. So: one
   column, numbered clauses, a visible hierarchy, and nothing
   that moves.

   Same brand tokens as everything else, so it is recognisably
   the same company. Dark only, matching brand/tokens.css — that
   is an owner decision (2026-08-13), not an omission.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ---- bar ---------------------------------------------------- */
/* The identity block is copied from the Steward page rather than reinvented —
   same avatar, same two lines, same blue full stop. A reader following a
   footer link out of that page should land somewhere that is obviously the
   same product, and a contract is the worst place to look like a different
   site. Values lifted from steward.css so the two cannot drift by eye. */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--s-2) var(--s-4) var(--s-3);
  background: var(--veil);
  border-bottom: 1px solid var(--veil-line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.bar__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  max-width: var(--measure);
  margin: 0 auto;
}
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #0c131b;
  filter: brightness(0.82) contrast(1.14);
}
.bar__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.bar__id b { font-size: var(--t-body); font-weight: 600; color: var(--ink); }
.bar__id small {
  font-size: var(--t-micro);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The company link under the bot's name. Deliberately NOT the link blue:
   this page's own rule is that brass carries every brand moment and the link
   blue never does, and a blue word inside the identity block reads as a stray
   UI link rather than as the maker's name. Muted like the line it sits in,
   brass on hover so it is discoverable without shouting. */
.bar__id small a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.bar__id small a:hover { color: var(--accent); }

.dot { color: #3c77ef; }
.bar__spacer { flex: 1; }

/* Back sits on its own line under the identity, not squeezed into the row:
   the row already carries a language switch and an action, and at 360px a
   fourth item is what pushes something off the edge. */
.bar__back {
  display: block;
  max-width: var(--measure);
  margin: var(--s-2) auto 0;
  color: var(--ink-3);
  font-size: var(--t-xs);
  text-decoration: none;
}
.bar__back:hover { color: var(--ink); }

/* The language switch is a real requirement here, not a nicety:
   the Ukrainian text is the binding one and the bank reads it,
   while the customers read the English. Both must be one tap
   from each other on every page. */
.bar__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-3);
  font-size: var(--t-xs);
  text-decoration: none;
  white-space: nowrap;
}
.bar__lang:hover { color: var(--ink); border-color: var(--accent-line); }

/* The action, in the same corner it occupies on the Steward page — a reader
   who arrives here from that page should not have to go back for it, and the
   acquirer's checklist wants an Open-in-Telegram route from the site. */
.bar__cta {
  padding: var(--s-1) var(--s-3);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-btn);
  font-size: var(--t-xs);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.bar__cta:hover { background: var(--accent-soft); color: var(--on-accent); }

/* Two labels, one shown at a time: at 360px the bar carries a back link, a
   language switch and this, and the full wording pushes the language switch
   off the edge. */
.lbl-sm { display: none; }
@media (max-width: 30rem) {
  .lbl-lg { display: none; }
  .lbl-sm { display: inline; }
  .bar { gap: var(--s-2); padding-left: var(--s-3); padding-right: var(--s-3); }
}

/* ---- page --------------------------------------------------- */
.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s-7) var(--s-4) var(--s-9);
}

.doc__eyebrow {
  margin: 0 0 var(--s-2);
  color: var(--accent);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 var(--s-3);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-h2);
  text-wrap: balance;
}

.doc__meta {
  margin: 0 0 var(--s-7);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-size: var(--t-xs);
}

h2 {
  margin: var(--s-7) 0 var(--s-4);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2:first-of-type { margin-top: var(--s-6); }

p { margin: 0 0 var(--s-4); }

/* Numbered clauses. The number is the addressable thing in a
   contract — "see 7.3" — so it is set in the mono face and given
   its own column rather than run into the sentence. */
.cl {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
}
.cl__n {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  padding-top: 0.09em;
}
.cl__t { margin: 0; }
.cl__t > p { margin: 0 0 var(--s-3); }
.cl__t > p:last-child { margin-bottom: 0; }

strong, b { color: var(--ink); font-weight: 600; }

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

ul { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }
li::marker { color: var(--ink-3); }

/* ---- price table -------------------------------------------- */
.tbl-wrap { overflow-x: auto; margin: 0 0 var(--s-5); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
th, td {
  padding: var(--s-3) var(--s-3);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
th {
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
td { color: var(--ink-2); }
td b { color: var(--ink); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The USD equivalent, under the hryvnia figure rather than beside it. As a
   fourth column it scrolled off the edge on a phone — and it is the half that
   explains where the hryvnia number came from, so it is the last thing that
   should disappear. */
.eq {
  display: block;
  margin-top: 0.15em;
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 400;
}

/* Footnote under the price table. The hryvnia figures move with the exchange
   rate, so the reader needs the basis and the date right where the numbers
   are — not three clauses later. */
.tbl-note {
  margin: calc(var(--s-4) * -1) 0 var(--s-5);
  color: var(--ink-3);
  font-size: var(--t-xs);
}

/* ---- requisites / callout ----------------------------------- */
.req {
  margin: var(--s-5) 0;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-group);
}
.req dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); }
.req dt { color: var(--ink-3); font-size: var(--t-sm); }
.req dd { margin: 0; color: var(--ink); font-size: var(--t-sm); }

/* The document's own summary — "in short: we never store card details".
   Set as a RECITAL, the way a contract opens, not as a filled card with an
   accent rail down its side. Two hairlines and brighter ink do the work; the
   accent survives at line weight instead of as a bar. The card-with-a-rail
   version this replaces is UI language, and it is the single most recognisable
   tell of a generated page — wrong register for a document a bank's compliance
   officer reads. */
.note {
  margin: var(--s-6) 0;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
  color: var(--ink);
  font-size: var(--t-sm);
}
.note :last-child { margin-bottom: 0; }

/* A clause that is load-bearing enough that a reader skimming
   must not miss it — no refunds, no card storage, who is liable
   for a door code. Marked, not shouted. */
.key {
  border-left: 2px solid var(--line);
  padding-left: var(--s-4);
  margin-left: -1px;
}

/* ---- action ------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-btn);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}
.cta:hover { background: var(--accent-soft); color: var(--on-accent); }

/* ---- foot --------------------------------------------------- */
.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s-5) var(--s-4) var(--s-7);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-3);
  font-size: var(--t-xs);
}
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 0; }

/* A placeholder the owner still has to fill. Loud on purpose —
   this must be impossible to deploy without noticing. */
.todo {
  background: var(--alert-wash);
  color: var(--alert);
  border: 1px dashed var(--alert);
  border-radius: var(--r-btn);
  padding: 0.05em 0.4em;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

@media (max-width: 30rem) {
  .doc { padding-top: var(--s-6); }
  .cl { grid-template-columns: 2.7rem 1fr; gap: var(--s-2); }
  .req dl { grid-template-columns: 1fr; gap: var(--s-1); }
  .req dt { margin-top: var(--s-2); }
}

@media print {
  body { background: #fff; color: #000; }
  .bar, .cta { display: none; }
  a { color: #000; }
}
