/* The legal texts of 4uchet.by (infra/by/legal/). They share site.css for the
   face, the colours and the base; this file is only the page of a document.
   Like the rest of the site it asks for nothing from another host. */

.legal-page {
  background: var(--page);
  color: var(--ink);
}
.legal-frame {
  width: min(100% - 2 * var(--pad), 880px);
  margin-inline: auto;
}
.legal-top {
  border-bottom: 1px solid var(--hair-2);
  background: var(--panel);
}
.legal-top .legal-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.legal-back {
  color: var(--ink-2);
  font-size: 14px;
}
.legal-back:hover {
  color: var(--orange-ink);
}
.legal-doc {
  padding-block: 48px 72px;
}
.legal-meta {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 8px;
}
.legal-doc h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-doc h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 40px 0 12px;
}
.legal-doc h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal-doc p,
.legal-doc li {
  line-height: 1.65;
}
.legal-doc p + p,
.legal-doc p + ul,
.legal-doc p + ol,
.legal-doc ul + p,
.legal-doc ol + p {
  margin-top: 12px;
}
.legal-doc ul,
.legal-doc ol {
  margin: 12px 0;
  padding-left: 24px;
  list-style: revert;
}
.legal-doc li + li {
  margin-top: 6px;
}
.legal-doc a {
  color: var(--orange-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--sunk);
  padding: 1px 5px;
  border-radius: var(--corner);
}
.legal-table {
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--hair-2);
  border-radius: var(--corner);
  background: var(--panel);
}
.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hair);
}
.legal-table th {
  background: var(--chrome);
  font-weight: 600;
  white-space: nowrap;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-gap {
  background: var(--orange-soft);
  color: var(--orange-ink);
  padding: 0 3px;
  border-radius: var(--corner);
}
.legal-draft {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  background: var(--orange-tint);
  border-radius: var(--corner);
}
.legal-preview {
  margin-top: 24px;
  padding: 8px 12px;
  background: var(--night);
  color: #fff;
  font-size: 14px;
  border-radius: var(--corner);
}
.legal-foot {
  border-top: 1px solid var(--hair-2);
  background: var(--panel);
  padding-block: 32px;
  font-size: 14px;
  color: var(--ink-2);
}
.legal-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
.legal-foot a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.legal-foot a:hover {
  color: var(--orange-ink);
}

@media (max-width: 640px) {
  .legal-doc {
    padding-block: 32px 48px;
  }
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .legal-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--hair-2);
  }
  .legal-table tr:last-child {
    border-bottom: 0;
  }
  .legal-table td {
    display: block;
    border: 0;
    padding: 4px 12px;
  }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-3);
    font-size: 12px;
  }
}
