/* Документы API. Светлая страница, одна колонка для чтения. */

.legal-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #3f3f46;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.legal-nav a:hover {
    color: #18181b;
    background: rgba(24, 24, 27, 0.05);
}

.legal-nav a[aria-current="page"] {
    color: #18181b;
}

.doc {
    width: min(46rem, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 28px;
    min-width: 0;
}

.doc h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.doc .sub {
    margin: 0 0 8px;
    color: var(--muted);
}

.doc .updated {
    margin: 0 0 8px;
    color: var(--quiet);
    font-size: 14px;
    line-height: 1.45;
}

.doc h2 {
    margin: 32px 0 8px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 650;
}

.doc p,
.doc li {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.55;
}

.doc ul {
    margin: 0 0 12px;
    padding-left: 1.25rem;
}

.doc a {
    color: var(--accent);
}

.doc strong {
    font-weight: 650;
}

@media (max-width: 680px) {
    .doc { width: min(46rem, calc(100% - 32px)); }
    .doc h1 { font-size: 28px; }
}
