/* Legal documents: offer and privacy policy */
.doc-page { padding-top: clamp(32px, 6vh, 64px); padding-bottom: clamp(56px, 9vh, 96px); }
.doc-head { max-width: 860px; margin-bottom: 28px; }
.doc-head h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; margin-bottom: 14px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.doc-meta .ru-only:empty { display: none; }
.doc-meta .ru-only { color: var(--soft); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.doc-toc h2 { font: 500 13px/1 var(--sans); color: var(--muted); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; }
.doc-toc a:hover, .doc-toc a:focus-visible { color: var(--text); border-left-color: var(--line-strong); }
.doc-toc a.is-current { color: var(--text); border-left-color: var(--gold); }

.doc { max-width: 780px; min-width: 0; }
.doc-lead { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 8px; color: var(--soft); line-height: 1.7; }
.doc-lead strong { color: var(--text); font-weight: 600; }
.doc section { padding-top: 28px; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc section + section { border-top: 1px solid var(--line); margin-top: 28px; }
.doc h2 { font: italic 800 clamp(19px, 1.8vw, 23px)/1.25 var(--wide); margin: 0 0 16px; }
.doc h2 .n { color: var(--muted); margin-right: 8px; font-family: var(--num); font-style: italic; font-weight: 800; font-size: 1.1em; }
.doc p, .doc li { color: var(--soft); font-size: 16px; line-height: 1.75; }
.doc p { margin: 0 0 14px; }
.doc p > strong:first-child { color: var(--text); font-weight: 600; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--dim); }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--gold); }

.doc-req { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.doc-req dt { color: var(--muted); font-size: 14px; }
.doc-req dd { margin: 0; color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.doc-req .num { font: italic 800 20px/1 var(--num); letter-spacing: 0.02em; }

@media (max-width: 900px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .doc-toc { position: static; }
    .doc-toc ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 6px; }
    .doc-toc a { margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
    .doc-toc a.is-current { border-color: var(--line-strong); }
}
@media (max-width: 560px) {
    .doc-req { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .doc-req dd { margin-bottom: 10px; }
}
