@font-face {
    font-family: "Prata";
    src: url("../fonts/Prata-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #fbf9f6;
    --surface: #ffffff;
    --surface-soft: #fff6f0;
    --ink: #292522;
    --muted: #716a66;
    --line: #e8e1dc;
    --peach: #f3a887;
    --peach-dark: #a94f35;
    --lavender: #eee9ff;
    --shadow: 0 22px 65px rgba(83, 61, 50, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 7%, rgba(243, 168, 135, 0.13), transparent 24rem),
        radial-gradient(circle at 92% 32%, rgba(206, 196, 255, 0.16), transparent 25rem),
        var(--paper);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--peach-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-thickness: 2px;
}

.legal-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgba(232, 225, 220, 0.88);
    background: rgba(251, 249, 246, 0.9);
    backdrop-filter: blur(16px);
}

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

.legal-header__inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: "Prata", Georgia, serif;
    font-size: 22px;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.header-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.legal-shell {
    display: grid;
    width: min(1180px, calc(100% - 40px));
    margin: 56px auto 88px;
    grid-template-columns: 245px minmax(0, 820px);
    justify-content: space-between;
    gap: 64px;
}

.legal-nav {
    position: sticky;
    top: 112px;
    align-self: start;
}

.legal-nav__title {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-nav nav {
    display: grid;
    gap: 3px;
}

.legal-nav a {
    display: block;
    padding: 9px 13px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a.is-active {
    color: var(--ink);
    background: var(--surface-soft);
}

.legal-nav a.is-active {
    font-weight: 600;
}

.legal-document {
    overflow: hidden;
    border: 1px solid rgba(232, 225, 220, 0.92);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.document-heading {
    padding: clamp(32px, 6vw, 62px) clamp(24px, 7vw, 72px) 38px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 92% 16%, rgba(238, 233, 255, 0.95), transparent 18rem),
        linear-gradient(135deg, #fffaf6 0%, #fff 72%);
}

.document-heading__eyebrow {
    margin: 0 0 14px;
    color: var(--peach-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.document-heading h1 {
    max-width: 700px;
    margin: 0;
    font-family: "Prata", Georgia, serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.document-heading__lead {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.document-heading__date {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.document-content {
    padding: 42px clamp(24px, 7vw, 72px) 64px;
}

.document-content h2 {
    margin: 48px 0 17px;
    font-family: "Prata", Georgia, serif;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.3;
}

.document-content h2:first-child {
    margin-top: 0;
}

.document-content h3 {
    margin: 28px 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.document-content p,
.document-content li {
    color: #4f4945;
}

.document-content p {
    margin: 0 0 15px;
}

.document-content ul,
.document-content ol {
    margin: 12px 0 20px;
    padding-left: 23px;
}

.document-content li {
    margin: 7px 0;
    padding-left: 4px;
}

.document-content strong {
    color: var(--ink);
    font-weight: 600;
}

.notice,
.requisites-card {
    margin: 28px 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--surface-soft);
}

.notice--lavender {
    background: var(--lavender);
}

.notice p:last-child,
.requisites-card p:last-child {
    margin-bottom: 0;
}

.requisites-card {
    border: 1px solid var(--line);
    background: var(--surface);
}

.steps {
    counter-reset: legal-step;
    list-style: none;
    padding-left: 0 !important;
}

.steps li {
    position: relative;
    min-height: 40px;
    padding-left: 50px;
    counter-increment: legal-step;
}

.steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--peach-dark);
    background: var(--surface-soft);
    content: counter(legal-step);
    font-size: 12px;
    font-weight: 600;
}

.legal-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}

.legal-footer__inner {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: var(--muted);
    font-size: 11px;
}

.legal-footer p {
    margin: 0;
}

@media (max-width: 880px) {
    .legal-shell {
        margin-top: 26px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-nav {
        position: static;
        overflow: hidden;
    }

    .legal-nav__title {
        display: none;
    }

    .legal-nav nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 7px;
        gap: 6px;
        scrollbar-width: thin;
    }

    .legal-nav a {
        flex: 0 0 auto;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.7);
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    .legal-header__inner,
    .legal-footer__inner,
    .legal-shell {
        width: min(100% - 28px, 1180px);
    }

    .legal-header__inner {
        min-height: 68px;
    }

    .brand {
        font-size: 20px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .legal-document {
        border-radius: 22px;
    }

    .document-heading {
        padding-top: 34px;
    }

    .document-content {
        padding-top: 30px;
        padding-bottom: 46px;
    }

    .document-content h2 {
        margin-top: 38px;
    }

    .legal-footer__inner {
        min-height: 0;
        padding-block: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media print {
    body {
        background: #fff;
        font-size: 12pt;
    }

    .legal-header,
    .legal-nav,
    .legal-footer {
        display: none;
    }

    .legal-shell {
        display: block;
        width: 100%;
        margin: 0;
    }

    .legal-document {
        border: 0;
        box-shadow: none;
    }

    .document-heading,
    .document-content {
        padding-inline: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
