/* The legal pages (/privacy/, /cookies/, /terms/, /rules/).
   A plain document on the full width of .wrap: no aside, no drawings. Line length is held by the type size and the
   leading, not by a narrow column. Tables are the journal's .post-table and scroll inside it on a phone. */

.legal-head { padding: 24px 0 8px; display: flex; flex-direction: column; gap: 16px; }
.legal-head .lead { max-width: none; }
.legal-edition { font-size: 15px; line-height: 22px; color: var(--graphite); }

.prose.legal { max-width: none; padding-top: 24px; font-size: 18px; line-height: 30px; }
.legal p, .legal li { font-size: inherit; line-height: inherit; }
.legal h2 { margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal .post-toc + h2, .legal > h2:first-child { margin-top: 32px; padding-top: 0; border-top: 0; }
.legal p + p, .legal .post-table + p, .legal p + .post-table, .legal ul + p, .legal p + ul { margin-top: 16px; }

/* contents: numbered, in columns on a wide screen */
.legal .post-toc { padding: 20px 24px; }
.legal .post-toc b { font-weight: 700; }
.legal .post-toc ol { display: block; columns: 3 240px; column-gap: 40px; padding-left: 24px; list-style: decimal; }
.legal .post-toc li { padding: 2px 0; break-inside: avoid; }
.legal .post-toc li::before { content: none; }
.legal .post-toc li::marker { color: var(--orange-deep); font-weight: 700; }

/* lists: a quiet dot for bullets, numbers for clauses */
.legal ul { gap: 8px; }
.legal ul > li { padding-left: 22px; }
.legal ul > li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.legal .post-list { margin-top: 12px; gap: 10px; padding-left: 28px; list-style: decimal; }
.legal .post-list > li::marker { color: var(--orange-deep); font-weight: 700; }
.legal .post-list > li { padding-left: 4px; }
.legal .post-list > li::before { content: none; }
.legal .post-list ul { margin-top: 10px; }

/* tables */
.legal .post-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; }
.legal .post-table table { font-size: 16px; line-height: 24px; }
.legal .post-table th, .legal .post-table td { padding: 12px 16px; }
.legal .post-table thead th { background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); }
.legal .post-table tbody tr:last-child > * { border-bottom: 0; }
.legal .post-table code, .legal p code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--paper); white-space: nowrap; }
.legal-kv th { width: 220px; color: var(--graphite); font-weight: 600; border-bottom: 1px solid var(--line); }
.legal-kv td { border-bottom: 1px solid var(--line); }

/* the processings: four columns on a wide screen, a card per row on a phone (below) */
.legal-proc-table th:nth-child(1) { width: 22%; }
.legal-proc-table th:nth-child(2) { width: 30%; }
.legal-proc-table td:first-child { font-weight: 600; color: var(--ink); }
.legal-proc-table tr[id] { scroll-margin-top: 90px; }
.legal-proc-table tr:target > td { background: var(--paper); }
.legal-pending { margin-top: 12px; }
.legal ul + ul, .legal p + ol, .legal ol + p { margin-top: 16px; }

/* the other documents, after the text */
.legal-nav { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-nav-title { font-weight: 700; }
.legal ul.legal-docs, .legal-docs { display: flex; flex-wrap: wrap; flex-direction: row; gap: 8px 32px; margin-top: 8px; }
.legal ul.legal-docs > li { padding-left: 0; }
.legal ul.legal-docs > li::before { content: none; }
.legal-docs span[aria-current] { color: var(--graphite); }

@media (max-width: 599px) { .legal-head .d2 { font-size: 28px; line-height: 32px; } }
@media (max-width: 767px) {
  .prose.legal { font-size: 17px; line-height: 27px; }
  .legal h2 { margin-top: 40px; padding-top: 20px; }
  .legal .post-toc { padding: 16px 18px; }
  .legal .post-table table { font-size: 15px; line-height: 22px; }
  .legal .post-table:not(.legal-kv) table { min-width: 600px; } /* columns stay readable, the table scrolls inside its frame */
  /* the operator block: the label above its value */
  .legal-kv table, .legal-kv tbody, .legal-kv tr, .legal-kv th, .legal-kv td { display: block; width: auto; }
  .legal-kv th { padding: 12px 16px 0; border-bottom: 0; font-size: 13px; line-height: 18px; text-transform: uppercase; letter-spacing: .04em; }
  .legal-kv td { padding: 4px 16px 12px; }
  .legal-kv tr:last-child > td { border-bottom: 0; }
  .legal-docs { flex-direction: column; }
  .legal .post-table.legal-proc-table table { min-width: 0; }
  .legal-proc-table thead { display: none; }
  .legal-proc-table table, .legal-proc-table tbody, .legal-proc-table tr, .legal-proc-table td { display: block; width: auto; }
  .legal-proc-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .legal-proc-table tr:last-child { border-bottom: 0; }
  .legal .post-table.legal-proc-table td { padding: 0; border: 0; }
  .legal-proc-table td + td { margin-top: 10px; }
  .legal-proc-table td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; line-height: 18px; text-transform: uppercase; letter-spacing: .04em; color: var(--graphite); font-weight: 600; }
}

/* /contactus/: the mail beside the Telegram button (never broken inside the address), the card links, no waiter
   on the phone */
.contact-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.contact-mail { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--orange-deep); overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
.way-links { display: flex; flex-wrap: wrap; gap: 8px 24px; flex: 0 0 auto !important; }
.way-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--orange-deep); }
@media (max-width: 833px) { .contact-hero .art { display: none; } }

/* guest-flow audit, 11.11.2026: the documents in one line, the contents and quick links under the title, the
   processings as folds on the phone. Navigation only, the text stays as written. */
.legal-docs-top { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 22px; }
.legal-docs-top li { list-style: none; }
.legal-docs-top a, .legal-docs-top span { min-height: 44px; display: inline-flex; align-items: center; }
.legal-docs-top span[aria-current] { font-weight: 600; color: var(--ink); }
.legal-quick { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.legal-quick a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--orange-deep); }
.legal-status { margin: 0; font-weight: 600; color: var(--ink); }
.legal-toc { margin: 8px 0 24px; padding: 16px 24px; border: 1.5px solid var(--line); border-radius: var(--radius-sheet); }
.legal-toc ol { margin: 8px 0 0; padding-left: 24px; list-style: decimal; columns: 2 280px; column-gap: 32px; }
.legal-toc li { display: list-item; break-inside: avoid; padding: 2px 0; color: var(--graphite); }
.legal-toc a { display: inline-block; min-height: 32px; padding: 4px 0; color: var(--orange-deep); }
.legal :is(h2[id]) { scroll-margin-top: 96px; }
.legal-proc-list { display: none; }
.legal-proc-list details { border-top: 1px solid var(--line); padding: 12px 0; }
.legal-proc-list details:last-child { border-bottom: 1px solid var(--line); }
.legal-proc-list summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.legal-proc-list dl { margin: 8px 0 0; display: grid; gap: 4px; }
.legal-proc-list dt { font-size: 13px; line-height: 18px; color: var(--graphite); margin-top: 8px; }
.legal-proc-list dd { margin: 0; }
@media (max-width: 833px) {
  .legal-proc-table { display: none; }
  .legal-proc-list { display: block; }
  .legal { padding-bottom: 104px; }
}

/* /sitemap/: chains under their own heading, the letters folded with an index on top */
.sitemap-abc { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 0; }
.sitemap-abc a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-s); color: var(--orange-deep); font-weight: 600; text-decoration: none; }
.sitemap-abc a:hover { background: var(--orange-soft); }
.sitemap-letter > summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; min-height: 44px; }
.sitemap-letter > summary::-webkit-details-marker { display: none; }
.sitemap-letter > summary h2 { margin: 0; }
/* 404: the waiter and the text on the page itself, no plate */
.fnone { background: transparent; }
