/* ==========================================================================
   Janki Steno — simple document pages
   Privacy / Terms / Refund and the two payment receipts.

   These five views each carried the same inline <style> block, which redefined
   the global `body` font and, worse, the global `.container`. The layout's own
   footer uses `.container`, so on those pages the footer collapsed to an 800px
   white card. Everything is scoped to .js-doc here instead.
   ========================================================================== */

.js-doc {
    width: 100%;
    max-width: 50rem;
    margin: clamp(1rem, 3vw, 2rem) auto;
    padding: clamp(1.15rem, 3vw, 2rem);
    border-radius: .75rem;
    background: #fff;
    color: #344054;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    box-shadow: 0 4px 18px -6px rgba(16, 24, 40, .14);
}

    .js-doc h1 {
        margin: 0 0 1.25rem;
        color: #101828;
        font-size: clamp(1.35rem, 3.2vw, 1.85rem);
        font-weight: 600;
        text-align: center;
    }

    .js-doc h2 {
        margin: 1.5rem 0 .6rem;
        color: #101828;
        font-size: clamp(1.05rem, 2.4vw, 1.25rem);
        font-weight: 600;
    }

    .js-doc ol,
    .js-doc ul {
        margin: .75rem 0;
        padding-left: 1.35rem;
    }

        .js-doc ol > li,
        .js-doc ul > li {
            margin-bottom: .9rem;
        }

    .js-doc p {
        margin: 0 0 .9rem;
    }

    .js-doc strong,
    .js-doc b {
        color: #101828;
    }

    /* Long emails / URLs in policy text must not widen the card. */
    .js-doc a {
        overflow-wrap: anywhere;
    }

/* --------------------------------------------------------------------------
   Receipt-style key/value tables (payment review + response)
   -------------------------------------------------------------------------- */

.js-doc-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

    .js-doc-table table {
        width: 100%;
        margin-bottom: 0;
    }

    .js-doc-table th {
        width: 42%;
        white-space: nowrap;
        background: #f8fafc;
        color: #101828;
        font-weight: 600;
    }

    .js-doc-table td {
        overflow-wrap: anywhere;
    }

.js-doc-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.25rem;
}

/* On a phone the two-column receipt becomes stacked label/value pairs so
   nothing has to scroll sideways to be read. */
@media (max-width: 575.98px) {
    .js-doc-table table,
    .js-doc-table tbody,
    .js-doc-table tr,
    .js-doc-table th,
    .js-doc-table td {
        display: block;
        width: 100%;
    }

    .js-doc-table tr {
        border-bottom: 1px solid #e4e7ec;
        padding: .35rem 0;
    }

    .js-doc-table th {
        border: 0;
        padding-bottom: .1rem;
        font-size: .78rem;
        letter-spacing: .03em;
        text-transform: uppercase;
        color: #667085;
        background: transparent;
    }

    .js-doc-table td {
        border: 0;
        padding-top: 0;
    }

    .js-doc-actions .btn {
        width: 100%;
    }
}
