.am-legal-document {
    max-width: 960px;
    margin: 0 auto;
    color: #d0d0d0;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.am-legal-document .am-legal-kicker {
    margin: 0 0 16px;
    color: #ff5a5a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.am-legal-document h1 {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-align: left;
}

.am-legal-document h2 {
    margin: 50px 0 18px;
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.35;
    scroll-margin-top: 35px;
}

.am-legal-document p,
.am-legal-document li {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
}

.am-legal-document .am-legal-intro {
    max-width: 840px;
    color: #eee;
    font-size: 21px;
    line-height: 1.6;
}

.am-legal-document .am-legal-meta {
    margin-bottom: 28px;
    color: #aaa;
    font-size: 14px;
}

.am-legal-document strong {
    color: #f4f4f4;
    font-weight: 600;
}

.am-legal-document a,
.am-privacy-note a,
.am-loan-privacy a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #e60000;
    text-underline-offset: 4px;
}

.am-legal-document a:hover,
.am-privacy-note a:hover,
.am-loan-privacy a:hover {
    color: #ff9b9b;
}

.am-legal-document a:focus-visible,
.am-legal-document .am-legal-table:focus-visible,
.am-privacy-note a:focus-visible,
.am-loan-privacy a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.am-legal-document .am-legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 24px 0;
    border-top: 1px solid #343434;
    border-bottom: 1px solid #343434;
    font-size: 14px;
}

.am-legal-document ul {
    margin: 0 0 24px;
    padding-left: 22px;
    list-style: disc;
}

.am-legal-document ul li {
    margin-bottom: 16px;
    padding-left: 4px;
}

.am-legal-document ul li::before {
    display: none;
}

.am-legal-document .am-legal-table {
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid #343434;
    border-radius: 16px;
    scrollbar-color: #666 #161616;
    scrollbar-width: thin;
}

.am-legal-document table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.65;
}

.am-legal-document th,
.am-legal-document td {
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid #343434;
    background: transparent;
    text-align: left;
    vertical-align: top;
}

.am-legal-document th {
    color: #fff;
    font-weight: 600;
}

.am-legal-document thead th {
    background: #171717;
}

.am-legal-document tr:nth-child(even) {
    background: #101010;
}

.am-legal-document tbody tr:last-child th,
.am-legal-document tbody tr:last-child td {
    border-bottom: 0;
}

.am-privacy-note {
    margin: 22px 0;
    padding-top: 18px;
    border-top: 1px solid #454545;
    color: #ccc;
    overflow-wrap: anywhere;
}

.contact-other-form-wrapper .contact-other-form-wrapper--inside,
.formularz-wrapper.another-matter-modal .formularz {
    width: 720px;
    min-width: 0;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

.formularz-wrapper.another-matter-modal .formularz {
    max-height: 90vh;
    overflow-y: auto;
}

.am-privacy-note p,
.formularz-wrapper .am-loan-privacy {
    margin: 0;
    color: #ccc;
    font-family: "Exo 2", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    text-align: left;
}

.formularz-wrapper .am-loan-request .container {
    font-size: 14px;
    line-height: 1.6;
}

.formularz-wrapper .am-loan-privacy {
    margin-top: 14px;
    padding-left: 32px;
}

.main-footer .footer-single-col--company {
    flex: 0 1 280px;
    width: 280px;
    min-width: 0;
    max-width: 100%;
}

.main-footer .am-company-details p.am-company-identifiers {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 2px 12px;
    align-items: baseline;
    justify-content: start;
    margin-top: 12px;
    text-align: left;
}

.main-footer .am-company-identifier-label {
    color: #b8b8b8;
}

.main-footer .am-company-identifier-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: .035em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .main-footer .footer-single-col--company {
        flex-basis: auto;
    }

    .main-footer .am-company-details p.am-company-identifiers {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .am-legal-document {
        font-size: 16px;
    }

    .am-legal-document h2 {
        margin-top: 36px;
        font-size: 23px;
    }

    .am-legal-document p,
    .am-legal-document li {
        font-size: 16px;
        line-height: 1.75;
    }

    .am-legal-document .am-legal-intro {
        font-size: 18px;
    }

    .am-legal-document .am-legal-toc {
        gap: 12px 20px;
    }

}
