.tpf-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 24px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--tpf-line);
}

.tpf-legal-nav a {
    padding: 7px 0;
    color: var(--tpf-muted);
    font-size: 14px;
    text-decoration: none;
}

.tpf-legal-nav a[aria-current="page"] {
    color: var(--tpf-purple);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.tpf-legal-content {
    max-width: 850px;
    overflow-wrap: anywhere;
}

.tpf-legal-content > :first-child,
.tpf-legal-content > #cmplz-document > :first-child {
    margin-top: 0;
}

/* Match the legal text to the site's typography without changing consent controls. */
.tpf-legal-content #cmplz-document {
    max-width: none;
    margin: 0;
    color: inherit;
    font: inherit;
}

.tpf-legal-content #cmplz-document :is(p,li,td) {
    font-size: inherit;
    line-height: inherit;
}

.tpf-legal-content #cmplz-document h2 {
    margin: 32px 0 12px;
    color: var(--tpf-ink);
    font-family: inherit;
    font-size: clamp(21px, 2.5vw, 27px);
    font-weight: 600;
}

.tpf-legal-content #cmplz-document a {
    color: var(--tpf-purple);
}
