/* ============================================================
   Exodus — legal / document pages
   ============================================================ */
.doc-head {
    position: relative;
    padding: 150px 0 48px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.doc-head .doc-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 80% at 20% 0%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 20% 0%, #000 20%, transparent 70%);
}

.doc-head .inner {
    position: relative;
    z-index: 2;
}

.doc-head h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    margin-top: 16px;
}

.doc-head .updated {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: .04em;
    margin-top: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.doc-head .updated b {
    color: var(--cyan);
    font-weight: 500;
}

.doc-layout {
    display: grid;
    grid-template-columns: 248px 1fr;
    gap: 64px;
    padding: 56px 0 100px;
    align-items: start;
}

/* sticky table of contents */
.toc {
    position: sticky;
    top: 96px;
    align-self: start;
}

.toc h5 {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 16px;
}

.toc nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid var(--border);
}

.toc a {
    font-size: 13.5px;
    color: var(--muted);
    padding: 7px 0 7px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    transition: color .2s, border-color .2s;
    line-height: 1.35;
}

.toc a:hover {
    color: var(--text);
}

.toc a.active {
    color: var(--text);
    border-left-color: var(--cyan);
}

/* prose */
.prose {
    max-width: 760px;
}

.prose>section {
    scroll-margin-top: 92px;
    padding-bottom: 8px;
}

.prose>section+section {
    margin-top: 46px;
}

.prose h2 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -.01em;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.prose h2 .n {
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--cyan);
    font-weight: 500;
}

.prose h3 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 18px;
    margin: 26px 0 10px;
}

.prose p {
    color: #bcc6d4;
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 14px;
}

.prose ul,
.prose ol {
    margin: 0 0 16px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prose ul li {
    position: relative;
    padding-left: 26px;
    color: #bcc6d4;
    font-size: 15px;
    line-height: 1.7;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}

.prose ol {
    counter-reset: item;
}

.prose ol li {
    position: relative;
    padding-left: 34px;
    color: #bcc6d4;
    font-size: 15px;
    line-height: 1.7;
    counter-increment: item;
}

.prose ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--blue-soft);
    color: var(--cyan);
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 600;
    display: grid;
    place-items: center;
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(34, 211, 238, .4);
    transition: text-decoration-color .2s;
}

.prose a:hover {
    text-decoration-color: var(--cyan);
}

.prose .callout {
    border: 1px solid var(--border-2);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 8px 0 18px;
    background: var(--surface-2);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.prose .callout .ic {
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 7px;
    background: var(--blue-soft);
    color: var(--cyan);
    display: grid;
    place-items: center;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 13px;
}

.prose .callout p {
    margin: 0;
    font-size: 14.5px;
    color: var(--muted);
}

/* definition-style table inside prose */
.prose .ptable {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 6px 0 18px;
}

.prose .ptable .r {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.prose .ptable .r:last-child {
    border-bottom: none;
}

.prose .ptable .r:nth-child(odd) {
    background: var(--surface);
}

.prose .ptable .r dt,
.prose .ptable .r .k {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: .04em;
}

.prose .ptable .r dd,
.prose .ptable .r .v {
    font-size: 14.5px;
    color: #bcc6d4;
    line-height: 1.6;
}

.doc-foot-note {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted-2);
}

/* footer legal links */
.footer__legal {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer__legal a {
    color: var(--muted-2);
    font-size: 13px;
    font-family: var(--f-mono);
    transition: color .2s;
}

.footer__legal a:hover {
    color: var(--text);
}

@media (max-width:900px) {
    .doc-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toc {
        position: static;
        margin-bottom: 36px;
        padding-bottom: 28px;
        border-bottom: 1px solid var(--border);
    }

    .toc nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 18px;
    }

    .prose .ptable .r {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}