/* ==========================================================================
   Game 36 - doc.css
   Static pages: about us, privacy policy, terms of use
   ========================================================================== */

.g36-doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 34px;
    align-items: start;
}

.g36-doc-main {
    padding: 30px 32px;
    background: var(--g36-surface);
    border: 1px solid var(--g36-line);
    border-radius: 22px;
    box-shadow: var(--g36-shadow);
}

.g36-doc-main h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.g36-doc-updated {
    margin: 8px 0 22px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--g36-ink-3);
    letter-spacing: .02em;
    text-transform: uppercase;
}

.g36-doc-main section {
    margin-bottom: 26px;
}

.g36-doc-main section:last-child {
    margin-bottom: 0;
}

.g36-doc-main h2 {
    margin: 0 0 10px;
    padding-left: 12px;
    border-left: 4px solid var(--g36-brand);
    font-size: 18px;
    line-height: 1.35;
}

.g36-doc-main h3 {
    margin: 16px 0 6px;
    font-size: 15px;
    color: var(--g36-ink);
}

.g36-doc-main p {
    margin: 0 0 11px;
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--g36-ink-2);
}

.g36-doc-main ul {
    margin: 0 0 12px;
    padding-left: 4px;
    list-style: none;
}

.g36-doc-main li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--g36-ink-2);
}

.g36-doc-main li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--g36-brand);
    opacity: .55;
}

.g36-doc-main a {
    color: var(--g36-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.g36-doc-lead {
    padding: 16px 18px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--g36-brand-soft);
    font-size: 14.5px;
    line-height: 1.7;
    color: #3f3a9e;
}

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */

.g36-toc {
    position: sticky;
    top: 26px;
    padding: 20px;
    background: var(--g36-surface);
    border: 1px solid var(--g36-line);
    border-radius: 18px;
}

.g36-toc h2 {
    margin-bottom: 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--g36-ink-3);
}

.g36-toc ol {
    display: flex;
    flex-direction: column;
    gap: 2px;
    counter-reset: g36toc;
}

.g36-toc li {
    counter-increment: g36toc;
}

.g36-toc a {
    display: block;
    padding: 7px 10px 7px 28px;
    position: relative;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--g36-ink-2);
    line-height: 1.45;
}

.g36-toc a::before {
    content: counter(g36toc) ".";
    position: absolute;
    left: 10px;
    top: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--g36-ink-3);
}

.g36-toc a:hover {
    background: var(--g36-brand-soft);
    color: var(--g36-brand);
}

.g36-toc a:hover::before {
    color: var(--g36-brand);
}

.g36-toc-contact {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--g36-line);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--g36-ink-3);
}

.g36-toc-contact a {
    display: inline;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    color: var(--g36-brand);
}

.g36-toc-contact a::before {
    content: none;
}

@media (max-width: 1023px) {
    .g36-doc {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .g36-toc {
        display: none;
    }

    .g36-doc-main {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .g36-doc-main h1 {
        font-size: 23px;
    }

    .g36-doc-main section {
        margin-bottom: 22px;
    }

    .g36-doc-main h2 {
        font-size: 16.5px;
    }
}
