.legal-document {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
    color: #1f2f48;
}

.legal-document h1 {
    letter-spacing: -0.02em;
}

.legal-document p,
.legal-document li,
.legal-document dd,
.legal-document dt {
    line-height: 1.7;
}

.legal-document a {
    overflow-wrap: anywhere;
}

.legal-document .table-responsive {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.75rem;
}

.legal-document table {
    margin-bottom: 0;
}

.legal-document th {
    white-space: nowrap;
    color: #334766;
    background: #f7f9fc;
}

@media (max-width: 575.98px) {
    .legal-document {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .legal-document h1 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .legal-document h2 {
        margin-top: 2rem !important;
        font-size: 1.16rem;
        line-height: 1.35;
    }

    .legal-document h3 {
        margin-top: 1.5rem !important;
        font-size: 1.02rem;
        line-height: 1.4;
    }

    .legal-document p,
    .legal-document li,
    .legal-document dd,
    .legal-document dt {
        font-size: 0.93rem;
        line-height: 1.62;
    }

    .legal-document .btn {
        width: 100%;
    }

    .legal-document .table-responsive {
        overflow: visible;
        border: 0;
    }

    .legal-document table,
    .legal-document tbody,
    .legal-document tr,
    .legal-document td {
        display: block;
        width: 100%;
    }

    .legal-document thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .legal-document tr {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        border: 1px solid #e5ebf3;
        border-radius: 0.75rem;
        background: #ffffff;
    }

    .legal-document tr:last-child {
        margin-bottom: 0;
    }

    .legal-document td {
        display: flex;
        align-items: baseline;
        gap: 0.65rem;
        padding: 0.38rem 0;
        border: 0;
    }

    .legal-document td + td {
        border-top: 1px solid #edf1f6;
    }

    .legal-document td::before {
        flex: 0 0 6.6rem;
        color: #64748b;
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.35;
    }
}
