/* Яшаяев Технологии — legal documents (the personal data policy and the consent).
   A long document lies on the cabinet as one sheet of paper; its contents run down the rail side,
   and the section being read lights its LED. Read mode: a 68ch measure and numbered clauses. */

/* ——— Head on rack black ——— */
.lhead {
  background: var(--rack); color: var(--white);
  padding: calc(var(--nav-h) + clamp(40px, 6.5vw, 104px)) 0 clamp(36px, 4.6vw, 68px);
}
.lhead__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.lhead__crumbs a { text-decoration: none; }
.lhead__crumbs .strip--flat { transition: filter .2s; }
.lhead__crumbs .strip--flat:hover { filter: brightness(1.08); }
.lhead__here { font: 400 clamp(15px, 1.2vw, 19px)/1.2 var(--f-label); color: var(--steel); }
.lhead__title { margin-top: clamp(20px, 2.4vw, 36px); max-width: 17em; font: 400 clamp(32px, 3.55vw, 62px)/1.08 var(--f-display); letter-spacing: -.005em; }
.lhead__lead { margin-top: 20px; max-width: 40em; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; color: var(--steel-2); }
.lhead__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-d2); }
.lhead__meta div { display: flex; flex-direction: column; gap: 4px; }
.lhead__meta dt { font: 700 13.5px/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.lhead__meta dd { margin: 0; color: var(--label); }

/* The not-found page: the same head, filling the screen, with two ways out */
.lhead--404 { min-height: calc(100svh - 120px); display: flex; align-items: center; }
.lhead--404 .wrap { width: 100%; }
.lhead__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.foot--slim { padding-block: 0 32px; border-top: 0; }
.foot--slim .foot__legal { margin-top: 0; }

/* ——— The cabinet with the sheet on it ——— */
.ldoc { position: relative; background: var(--cab); color: var(--ink); padding-block: clamp(40px, 5vw, 88px) var(--sec-pad); }
.ldoc::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: max(6px, calc(var(--gutter) * .32)); width: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(15,16,18,.42) 0 2.2px, transparent 2.6px) 0 0 / 10px 18px repeat-y,
    linear-gradient(90deg, rgba(15,16,18,.08), rgba(15,16,18,.16) 50%, rgba(15,16,18,.08));
  border-inline: 1px solid rgba(15,16,18,.12);
}
.ldoc ::selection { background: var(--ink); color: var(--signal); }
.ldoc__grid { display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(0, 8.9fr); gap: 32px clamp(32px, 4.5vw, 88px); align-items: start; }

/* Contents: engraved labels with an LED per section */
.toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.toc summary { list-style: none; display: block; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 700 14px/1 var(--f-label); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; }
.toc a {
  position: relative; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 4px;
  padding: 9px 0 9px 16px; border-bottom: 1px solid var(--line-l);
  color: var(--ink-2); font-size: 15px; line-height: 1.35; text-decoration: none;
  transition: color .2s;
}
.toc a::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); transition: background .3s, box-shadow .3s; }
.toc a:hover { color: var(--ink); }
.toc a.is-here { color: var(--ink); font-weight: 500; }
.toc a.is-here::before { background: var(--led-paper); box-shadow: 0 0 0 3px rgba(47,192,106,.2); }
.toc .mono { color: var(--ink-3); }
.toc__other { margin-top: 22px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.toc__other a { display: inline; padding: 0; border: 0; font-weight: 600; color: var(--ink); text-decoration: underline 2px var(--signal-lo); text-underline-offset: .32em; transition: text-decoration-thickness .25s var(--ease-out); }
.toc__other a::before { display: none; }
.toc__other a:hover { text-decoration-thickness: 4px; }

/* The sheet */
.sheet-doc {
  background: #fbfbf9; color: var(--ink);
  border-radius: 4px; padding: clamp(24px, 3.6vw, 64px) clamp(20px, 4.4vw, 80px) clamp(28px, 4vw, 72px);
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(15,16,18,.08), 0 24px 48px -28px rgba(15,16,18,.55);
}
.sheet-doc__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-l2); font: 700 13.5px/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

.cl { padding-top: clamp(28px, 2.6vw, 40px); scroll-margin-top: calc(var(--nav-h) + 20px); }
.cl + .cl { margin-top: clamp(4px, .6vw, 10px); border-top: 1px solid var(--line-l); }
.cl__h { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: baseline; font: 400 clamp(20px, 1.5vw, 25px)/1.22 var(--f-display); }
.cl__h .mono { font-size: .72em; color: var(--ink-3); }
.cl__body { margin-left: 2.6em; margin-top: 14px; max-width: 60ch; font-size: clamp(16px, 1.1vw, 17px); }
.cl__body > * + * { margin-top: 12px; }
.cl__body p, .cl__body li { color: #22252a; }
.cl__body b { font-weight: 600; color: var(--ink); }
.cl__body a { color: var(--ink); text-decoration: underline 1.5px var(--signal-lo); text-underline-offset: .22em; }
.cl__body a:hover { text-decoration-thickness: 3px; }
.cl__body ul { list-style: none; }
.cl__body ul li { position: relative; padding-left: 20px; }
.cl__body ul li + li { margin-top: 6px; }
.cl__body ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 2px; background: var(--ink-2); }

/* numbered sub-clauses hang their numbers in a figure column */
.pt { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); }
.pt > .mono { padding-top: .2em; color: var(--ink-3); font-size: .8em; }
.pt > div > * + * { margin-top: 8px; }

/* a key/value table for the operator's details and the data list */
.kv { border-top: 1px solid var(--line-l2); }
.kv > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 4px 24px; padding: 10px 0; border-bottom: 1px solid var(--line-l); }
.kv dt { font: 700 13.5px/1.5 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
/* inside a numbered clause the keys are short: give the room to the values */
.pt .kv > div { grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 4px 18px; }
.kv dd { margin: 0; color: #22252a; }

/* the closing box with the address for requests */
.lnote { margin-top: clamp(32px, 3vw, 48px); padding: 20px 22px; border: 1.5px solid var(--ink); border-radius: 6px; display: grid; gap: 6px; }
.lnote b { font: 400 clamp(18px, 1.3vw, 21px)/1.25 var(--f-display); font-weight: 400; }
.lnote p { max-width: 60ch; }
.lnote a { font-weight: 600; color: var(--ink); text-decoration: underline 2px var(--signal-lo); text-underline-offset: .32em; }
.lnote a:hover { text-decoration-thickness: 4px; }

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .ldoc__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out); }
  .toc[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
}
@media (max-width: 899px) {
  .ldoc::before { display: none; }
  .cl__h { grid-template-columns: 2.2em minmax(0, 1fr); }
  .cl__body { margin-left: 0; }
  .pt { grid-template-columns: 2.9em minmax(0, 1fr); }
  .kv > div, .pt .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ——— Print: the document alone ——— */
@media print {
  .nav, .mcta, .foot, .toc, .skip, .ldoc::before { display: none !important; }
  body, .lhead, .ldoc { background: #fff !important; color: #000 !important; }
  .lhead { padding: 0 0 12pt; }
  .lhead__title, .lhead__meta dd, .lhead__lead { color: #000 !important; }
  .lhead__here, .lhead__meta dt { color: #3f444a !important; }
  .ldoc { padding: 0; }
  .ldoc__grid { display: block; }
  .sheet-doc { box-shadow: none; padding: 0; background: #fff; }
  .cl { break-inside: avoid-page; }
  .cl__body a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
