/* Privacy policy and terms pages. Builds on news-article.css (same reading
 * typography); adds the pieces only legal documents need. Bump ?v= in the
 * pages that link it after every change.
 */

/* Plain document look, close to the previous Termly pages: 15px body text
   on every screen, intro the same size as the rest, compact spacing. */
.legal.news-article {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.legal.news-article .lead {
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1rem;
}

.legal.news-article h1 {
    font-size: clamp(1.6rem, 3.2vw, 2rem);
}

.legal.news-article h2,
.legal.news-article h2.text-primary {
    font-size: 1.15rem;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
}

.legal.news-article p,
.legal.news-article ul {
    margin-bottom: 0.9rem;
}

.legal.news-article li {
    margin-bottom: 0.25rem;
}

.legal h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

/* "W skrócie" summary opening each section. */
.legal .legal-short {
    background: #f6f7f8;
    border-left: 4px solid var(--na-accent);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.legal .legal-toc {
    columns: 2;
    column-gap: 2.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.legal .legal-toc li {
    break-inside: avoid;
    margin-bottom: 0.35rem;
}

.legal .legal-table {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.legal .legal-table th {
    font-weight: 700;
    border-bottom-width: 2px;
}

.legal .legal-table td,
.legal .legal-table th {
    padding: 0.75rem 0.75rem 0.75rem 0;
    vertical-align: top;
}

.legal .legal-address {
    font-style: normal;
    line-height: 1.7;
}

.legal .legal-langs {
    font-size: 0.95rem;
    color: var(--na-muted);
}

/* Section anchors land below the fixed menu. */
.legal [id] {
    scroll-margin-top: 5rem;
}

@media (max-width: 575.98px) {
    .legal .legal-toc {
        columns: 1;
    }

    /* Two-column tables stack into label/value pairs on phones. */
    .legal .legal-table thead {
        display: none;
    }

    .legal .legal-table tr {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--na-rule);
    }

    .legal .legal-table td {
        display: block;
        border: 0;
        padding: 0.1rem 0;
    }

    .legal .legal-table td:first-child {
        font-weight: 700;
    }
}
