/*
 * A legal document on the website: one column of text that reads comfortably,
 * after website.css, which gives every website page its header and footer.
 */

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px var(--gutter) 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--klopt-text-2);
}

.legal h1 {
    margin-bottom: 8px;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: var(--klopt-tracking-display);
    line-height: 1.02;
    color: var(--klopt-ink);
}

.legal h2 {
    margin-top: 24px;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--klopt-ink);
}

.legal strong {
    color: var(--klopt-ink);
}

.legal ul {
    padding-left: 1.25em;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal a {
    color: var(--klopt-ink);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal a:hover {
    color: var(--klopt-green);
}

/* Until a lawyer has reviewed the text: a card with an ink rule, as the Subject pages' notices */
.legal .concept {
    padding: 14px 20px;
    background: var(--klopt-white);
    border-radius: var(--klopt-radius);
    box-shadow: inset 3px 0 0 var(--klopt-ink);
    font-size: 15px;
    line-height: 1.5;
}

.legal .concept strong {
    margin-right: 8px;
    font-family: var(--klopt-font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* A table wider than a phone scrolls on its own, not the page */
.legal .table {
    overflow-x: auto;
    border-radius: var(--klopt-radius);
    background: var(--klopt-white);
    box-shadow: inset 0 0 0 1px var(--klopt-line);
}

.legal .table:focus-visible {
    outline: 2px solid var(--klopt-green);
    outline-offset: 3px;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
}

.legal th,
.legal td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.legal th {
    font-weight: 600;
    color: var(--klopt-ink);
}

.legal tbody tr {
    box-shadow: inset 0 1px 0 var(--klopt-line);
}
