/* ===== LEGAL DOCUMENT STYLES =====
   Loaded only by the legal pages under /addsworth/. base.css supplies the
   palette, container, header and footer; this file styles the document body,
   which is carried across from the application's bundled copy unchanged. */

.legal-document {
    padding: 3rem 0 4rem;
}

.legal-document h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.legal-document h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-bg-light);
}

.legal-document h3 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.5rem;
    color: var(--color-accent);
}

.legal-document p {
    margin-bottom: 1rem;
}

.legal-document ul {
    margin: 0 0 1rem 1.5rem;
}

.legal-document li {
    margin-bottom: 0.5rem;
}

.legal-document strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Effective date, last updated and version. Both pages carry the same block,
   so a drift between them and the shipped documents is visible at a glance. */
.legal-meta {
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    background-color: var(--color-bg-light);
    border-left: 3px solid var(--color-accent);
}

.legal-meta p {
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.legal-meta strong {
    color: var(--color-text);
}

/* Wide tables scroll inside their own container rather than the page. */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.legal-document table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal-document th,
.legal-document td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--color-bg-light);
    vertical-align: top;
}

.legal-document th {
    color: var(--color-text);
    font-weight: 600;
    white-space: nowrap;
}

.legal-document td {
    color: var(--color-text-muted);
}

.table-footnote {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.site-footer .footer-sub {
    margin-top: 0.5rem;
}

@media only screen and (max-width: 600px) {
    .legal-document {
        padding: 2rem 0 3rem;
    }

    .legal-document h1 {
        font-size: 1.6rem;
    }

    .legal-document h2 {
        font-size: 1.2rem;
    }
}
