/* legal documents (terms, privacy, imprint).
   uses the design tokens from css/modes.css. */

.legal {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.legal__header {
    margin-bottom: 2rem;
}

.legal__title {
    font-size: clamp(34px, calc(28px + 1.6vw), 50px);
    margin-bottom: 0.75rem;
}

.legal__updated {
    margin: 0 0 1.25rem;
    font-size: 14px;
    color: var(--meetfy--text-color--muted);
}

.legal__intro {
    font-size: 17px;
    line-height: 1.65;
    color: var(--meetfy--text-color--common);
}

/* table of contents */
.legal__toc {
    margin: 0 0 2.5rem;
    padding: 22px 26px;
    background: var(--meetfy--background-color--card);
    border: 1px solid var(--meetfy--border-color--common);
    border-radius: 16px;
}

.legal__toc-title {
    margin: 0 0 12px;
    font-family: var(--meetfy--font-family--heading);
    font-size: 18px;
    color: var(--meetfy--text-color--brightest);
}

.legal__toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 28px;
}

.legal__toc-list li {
    margin: 0 0 8px;
    break-inside: avoid;
    font-size: 15px;
    line-height: 1.4;
}

.legal__toc-list a {
    color: var(--meetfy--text-color--common);
    text-decoration: none;
}

.legal__toc-list a:hover,
.legal__toc-list a:focus {
    color: var(--meetfy--accent-color--common);
    text-decoration: underline;
}

/* sections */
.legal__section {
    margin: 0 0 2.25rem;
    scroll-margin-top: 110px;
}

.legal__section-title {
    margin: 0 0 14px;
    font-family: var(--meetfy--font-family--heading);
    font-size: 22px;
    line-height: 1.3;
    color: var(--meetfy--text-color--brightest);
}

.legal__section p,
.legal__list li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--meetfy--text-color--common);
}

.legal__section p {
    margin: 0 0 12px;
}

.legal__list {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal__list li {
    margin: 0 0 8px;
}

.legal a {
    color: var(--meetfy--accent-color--common);
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .legal__toc-list {
        columns: 1;
    }
}
