/* =========================================
   СТРАНИЦЫ ДОКУМЕНТОВ (политика, согласие)
   ========================================= */
@font-face {
    font-family: 'CutoutOfFont';
    src: url('../fonts/CutOut/CutOutOFFont-Regular.woff2') format('woff2'),
    url('../fonts/CutOut/CutOutOFFont-Regular.woff') format('woff');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UbuntuLight';
    src: url('../fonts/Ubuntu/Ubuntu-Light.woff2') format('woff2'),
    url('../fonts/Ubuntu/Ubuntu-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --black-bg: #000000;
    --white-bg: #FFFFFF;
    --yellow-bg: #FBBA06;
    --text-main: #111111;
    --text-muted: #555555;
    --line: #E6E6E6;
    --pain-strip: #9C0404;
    --purple-strip: #4B1384;

    --font-head: 'CutoutOfFont', 'Arial Black', sans-serif;
    --font-body: 'UbuntuLight', 'Segoe UI', Roboto, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    background: var(--white-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

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

a:hover {
    color: var(--pain-strip);
}

/* --- Шапка --- */
.doc-hero {
    background: var(--yellow-bg);
    border-bottom: 2px solid var(--text-main);
    padding: 22px 16px 48px;
}

.doc-topbar {
    max-width: 820px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.doc-logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--purple-strip);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.doc-back {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    border: 2px solid var(--text-main);
    border-radius: 50px;
    padding: 6px 16px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.doc-back:hover {
    background: var(--text-main);
    color: var(--white-bg);
}

.doc-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.doc-hero h1 {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 18px;
    text-wrap: balance;
}

.doc-meta {
    font-size: 0.95rem;
    color: var(--text-main);
}

.doc-meta span + span::before {
    content: '·';
    margin: 0 10px;
}

/* --- Основной текст --- */
.doc {
    max-width: 852px; /* 820 + поля, чтобы текст стоял ровно под заголовком */
    margin: 0 auto;
    padding: 48px 16px 80px;
}

.doc-lead {
    font-size: 1.05rem;
    padding: 20px 24px;
    border: 2px solid var(--text-main);
    border-radius: 20px;
    margin-bottom: 40px;
}

.doc-toc {
    margin-bottom: 48px;
}

.doc-toc h2 {
    font-size: 1rem !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
}

.doc-toc ol {
    list-style: none;
    columns: 2;
    column-gap: 32px;
    padding: 0;
}

.doc-toc li {
    break-inside: avoid;
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.doc h2 {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    line-height: 1.15;
    margin: 56px 0 18px;
    padding-top: 20px;
    border-top: 2px solid var(--text-main);
}

.doc h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.25;
    margin: 32px 0 12px;
}

.doc p {
    margin-bottom: 14px;
}

.doc ul,
.doc ol.doc-list {
    padding-left: 1.4em;
    margin-bottom: 16px;
}

.doc li {
    margin-bottom: 6px;
}

.doc li::marker {
    color: var(--purple-strip);
}

.doc strong {
    font-weight: 700;
}

.doc .label {
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    margin: 8px 0 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.5;
}

.doc th,
.doc td {
    text-align: left;
    vertical-align: top;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.doc th {
    background: #FFF6DA;
    font-weight: 700;
}

.doc tr:last-child td {
    border-bottom: 0;
}

.doc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: #F4F4F4;
    padding: 1px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.requisites {
    border: 2px solid var(--text-main);
    border-radius: 20px;
    padding: 20px 24px;
}

.requisites p {
    margin-bottom: 6px;
}

.btn-inline {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--white-bg);
    background: var(--text-main);
    border: 2px solid var(--text-main);
    border-radius: 50px;
    padding: 8px 18px;
    text-decoration: none;
    cursor: pointer;
}

.btn-inline:hover {
    background: var(--white-bg);
    color: var(--text-main);
}

/* --- Подвал --- */
.site-footer {
    background: var(--black-bg);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 28px 16px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 32px;
}

.footer-legal p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: flex-start;
}

.footer-links a,
.footer-links button {
    color: var(--white-bg);
    font: inherit;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--yellow-bg);
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .doc-topbar {
        margin-bottom: 28px;
    }

    .doc-logo {
        font-size: 1.15rem;
    }

    .doc-hero {
        padding-bottom: 36px;
    }

    .doc {
        padding-top: 32px;
    }

    .doc-lead,
    .requisites {
        padding: 16px 18px;
    }

    .doc-toc ol {
        columns: 1;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media print {
    .doc-topbar,
    .doc-toc,
    .site-footer,
    .cc-banner {
        display: none !important;
    }

    .doc-hero {
        background: none;
        border: 0;
        padding: 0 0 16px;
    }

    .doc {
        padding: 0;
    }

    a {
        color: inherit;
    }
}
