/* Оформление страниц правовых документов. Цвета и шрифты — как на сайте. */
@import url("/fonts/bitter/bitter.css");
@import url("/fonts/roboto/roboto.css");

:root {
    --green: #6aa621;
    --green-light: #87bc33;
    --blue: #171e7a;
    --ink: #231f20;
    --muted: #6c6c6c;
    --rule: #e3e3e3;
    --bg-soft: #f8f8f8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
    -webkit-text-size-adjust: 100%;
}

.doc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 24px;
    border-bottom: 3px solid var(--green);
}

.doc-home {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

.doc-home:hover { text-decoration: underline; }

.doc-org {
    font-family: "Bitter", Georgia, serif;
    color: var(--blue);
    font-weight: 700;
}

.doc {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 24px 56px;
}

.doc h1 {
    font-family: "Bitter", Georgia, serif;
    font-size: 30px;
    line-height: 1.25;
    color: var(--blue);
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
}

.doc h2, .doc h3 {
    font-family: "Bitter", Georgia, serif;
    color: var(--blue);
    line-height: 1.3;
    margin: 34px 0 12px;
}

.doc h2 { font-size: 21px; }
.doc h3 { font-size: 18px; }

.doc p { margin: 0 0 14px; text-align: justify; }

.doc a { color: var(--green); word-break: break-word; }

.doc ul, .doc ol { margin: 0 0 14px; padding-left: 24px; }
.doc li { margin-bottom: 6px; }

/* Таблицы согласий: на узком экране прокручиваются, а не ломают вёрстку. */
.doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14px;
}

.doc table td, .doc table th {
    border: 1px solid var(--rule);
    padding: 9px 11px;
    vertical-align: top;
    text-align: left;
}

.doc table th, .doc table tr:first-child td {
    background: var(--bg-soft);
    font-weight: 500;
}

/* В docx строки данных набраны полужирным — в вебе это шумит. */
.doc table tr:not(:first-child) strong { font-weight: 400; }

.doc-foot {
    border-top: 1px solid var(--rule);
    background: var(--bg-soft);
    padding: 24px;
}

.doc-nav {
    max-width: 860px;
    margin: 0 auto 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 14px;
}

.doc-nav a { color: var(--blue); }

.doc-copy {
    max-width: 860px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--muted);
}

.doc-copy a { color: var(--green); }

@media (max-width: 640px) {
    body { font-size: 15px; }
    .doc { padding: 24px 16px 40px; }
    .doc h1 { font-size: 23px; }
    .doc p { text-align: left; }
    .doc table { display: block; overflow-x: auto; }
}
