body.legal-table-page {
    width: min(1240px, calc(100% - 32px));
}

body.legal-table-page h1 {
    text-align: center;
}

.table-scroll {
    width: 100%;
    margin: 18px 0 28px;
    border: 1px solid var(--legal-line);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--legal-muted) var(--legal-surface);
}

.table-scroll:focus-visible {
    outline-offset: 4px;
}

.table {
    width: 100%;
    min-width: 720px;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.table p {
    width: auto !important;
    margin: 0;
    white-space: normal !important;
}

.table th,
.table td {
    padding: 10px 12px;
    border: 1px solid var(--legal-line);
    color: var(--legal-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.table th {
    color: var(--legal-ink);
    background: color-mix(in srgb, var(--legal-surface) 82%, var(--legal-line));
    font-weight: 700;
}

.table tbody tr:hover td {
    background: color-mix(in srgb, var(--legal-surface) 94%, var(--legal-line));
}

@media (max-width: 640px) {
    body.legal-table-page {
        width: 100%;
    }

    .table-scroll {
        border-right: 0;
        border-left: 0;
    }
}
