/* Privacy policy additions: summary box, sub-headings, storage tables and change log.
   Loaded only by text pages, after service-pages.css. */
.legal-summary {
    margin-bottom: 8px;
    padding: 22px 24px 20px;
    border: 1px solid rgba(26, 110, 216, 0.18);
    border-radius: var(--radius);
    background: var(--accent-soft);
}

.legal-body .legal-summary h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

.legal-summary ul {
    margin-top: 10px;
}

.legal-body h3 {
    margin-top: 28px;
    color: var(--navy);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.legal-body .legal-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.legal-table .legal-tech code {
    padding: 2px 6px;
    border: 1px solid var(--border);
    background: var(--off-white);
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.legal-table--stack th:first-child {
    width: 40%;
}

.legal-changes {
    margin-top: 14px;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 18px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-changes dt {
    color: var(--navy);
    font-weight: 700;
}

.legal-changes dd {
    color: var(--muted);
}

@media (max-width: 640px) {
    .legal-table--stack {
        min-width: 0;
    }

    .legal-table--stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .legal-table--stack tr {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
    }

    .legal-table--stack tr:last-child {
        border-bottom: 0;
    }

    .legal-table--stack td {
        display: grid;
        grid-template-columns: 7.5rem minmax(0, 1fr);
        gap: 10px;
        padding: 4px 0;
        border-bottom: 0;
    }

    .legal-table--stack td > code {
        justify-self: start;
    }

    .legal-table--stack td::before {
        content: attr(data-label);
        color: var(--navy);
        font-size: 0.8rem;
        font-weight: 700;
    }

    .legal-changes {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .legal-changes dd {
        margin-bottom: 10px;
    }
}
