/* Юридические страницы такси «Фортуна» */
:root {
    color-scheme: light;
    --ink: #1a1520;
    --muted: #6d6776;
    --gold: #f0c51c;
    --gold-soft: #fff5c7;
    --purple: #7a3fc1;
    --line: #e7e1d6;
    --bg: #f6f4ee;
    --surface: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; display: block; }

.skip-link {
    position: fixed;
    z-index: 100;
    left: 24px;
    top: -90px;
    padding: 12px 16px;
    color: #111;
    background: var(--gold);
    border-radius: 12px;
}
.skip-link:focus { top: 10px; }

.legal-container {
    width: min(calc(100% - 40px), 960px);
    margin-inline: auto;
}

/* Шапка */
.legal-header {
    background: #0b0a11;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.legal-header__inner {
    width: min(calc(100% - 40px), 960px);
    min-height: 78px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}
.legal-brand:hover { text-decoration: none; }
.legal-brand__crown { width: 32px; height: 27px; color: var(--gold); flex-shrink: 0; }
.legal-brand__text { display: flex; flex-direction: column; line-height: 1; }
.legal-brand__text small {
    color: #b8b2c0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .44em;
    padding-left: 2px;
    margin-bottom: 4px;
}
.legal-brand__text strong {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.07em;
}
.legal-brand__text strong span { color: var(--gold); }
.legal-header__actions { display: flex; align-items: center; gap: 17px; }
.legal-header__hours { color: #a9a4b5; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.legal-header__phone {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    color: var(--gold);
    border: 1px solid rgba(255, 218, 89, .4);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}
.legal-header__phone:hover { background: rgba(255, 218, 89, .1); border-color: var(--gold); text-decoration: none; }

/* Документ */
.legal-main { padding: 34px 0 68px; }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #655e70;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
}
.legal-back:hover { color: var(--ink); text-decoration: none; }
.legal-doc {
    position: relative;
    padding: clamp(26px, 5vw, 56px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(40, 30, 12, .07);
}
.legal-kicker {
    margin: 0 0 8px !important;
    color: #8a6400 !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.legal-doc h1 {
    margin: 0 0 22px;
    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.05em;
}
.legal-doc h1 + p {
    margin-top: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}
.legal-doc h2 {
    position: relative;
    margin: 34px 0 12px;
    padding-left: 18px;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.03em;
}
.legal-doc h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: .14em;
    bottom: .14em;
    width: 4px;
    border-radius: 2px;
    background: var(--gold);
}
.legal-doc p { margin: 0 0 15px; color: #383142; }
.legal-doc ul { margin: 0 0 18px; padding: 0; list-style: none; }
.legal-doc li { position: relative; margin: 8px 0; padding-left: 22px; color: #383142; }
.legal-doc li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--gold);
}
.legal-doc strong { color: #151019; }
.legal-doc code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #f2efe7;
    font-size: .92em;
}
.legal-doc a { font-weight: 700; }

/* Навигация по документам */
.legal-doc__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}
.legal-doc__nav span { color: var(--muted); font-weight: 800; }
.legal-doc__nav a { font-weight: 700; text-decoration: none; }
.legal-doc__nav a:hover { text-decoration: underline; }

/* Подвал */
.legal-footer {
    padding: 34px 0 38px;
    color: #aaa4b6;
    background: #0b0a11;
    font-size: 12.5px;
}
.legal-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 30px;
    padding-bottom: 20px;
    color: #e2dde9;
    line-height: 1.8;
}
.legal-footer__top strong { color: #fff; font-size: 14px; }
.legal-footer__top a { color: var(--gold); text-decoration: none; font-weight: 700; }
.legal-footer__top a:hover { text-decoration: underline; }
.legal-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 18px 0;
    border-block: 1px solid rgba(255, 255, 255, .08);
}
.legal-footer__nav a { color: #b9b3c6; text-decoration: none; }
.legal-footer__nav a:hover { color: #fff; }
.legal-footer__info { padding-top: 18px; color: #7d7789; line-height: 1.85; }
.legal-footer__copy { margin-top: 12px; color: #5f5a6b; }

@media (max-width: 680px) {
    .legal-header__hours { display: none; }
    .legal-header__inner { min-height: 68px; }
    .legal-brand__text strong { font-size: 22px; }
    .legal-header__phone { min-height: 38px; padding: 0 12px; font-size: 11px; }
    .legal-main { padding-top: 24px; }
    .legal-doc h1 { margin-bottom: 18px; }
    .legal-doc h1 + p { font-size: 12.5px; }
    .legal-footer__top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
