/* HAMD legal pages — shared styles */
:root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --text: #16191d;
    --muted: #5b6472;
    --rule: #e3e6ea;
    --accent: #1f6feb;
    --accent-soft: #eaf1fd;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101317;
        --surface: #171b21;
        --text: #e8eaed;
        --muted: #9aa4b2;
        --rule: #262c34;
        --accent: #6ea8fe;
        --accent-soft: #17222f;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 5rem;
}

header.masthead {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.01em;
}

.brand .mark {
    font-size: 1.05rem;
}

.brand .tag {
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted);
}

h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 1.5rem 0 .4rem;
}

.dates {
    color: var(--muted);
    font-size: .875rem;
    margin: 0;
}

.summary {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin: 2rem 0;
}

.summary h2 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 0 0 .6rem;
}

.summary ul { margin: 0; padding-left: 1.15rem; }
.summary li { margin: .35rem 0; }

h2 {
    font-size: 1.2rem;
    letter-spacing: -.01em;
    margin: 2.4rem 0 .6rem;
    padding-top: .3rem;
}

h3 {
    font-size: 1rem;
    margin: 1.5rem 0 .4rem;
}

p, ul, ol { margin: .7rem 0; }
ul, ol { padding-left: 1.3rem; }
li { margin: .3rem 0; }

a { color: var(--accent); }

strong { font-weight: 650; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: .93rem;
}

.table-scroll { overflow-x: auto; }

th, td {
    text-align: left;
    vertical-align: top;
    padding: .55rem .7rem;
    border-bottom: 1px solid var(--rule);
}

th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.note {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    padding: .8rem 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1.2rem 0;
}

.note p { margin: .3rem 0; }

footer.pagefoot {
    border-top: 1px solid var(--rule);
    margin-top: 3.5rem;
    padding-top: 1.25rem;
    color: var(--muted);
    font-size: .875rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
}

footer.pagefoot a { color: var(--muted); }

.toc {
    font-size: .93rem;
    columns: 2;
    column-gap: 2rem;
}

@media (max-width: 34rem) {
    .toc { columns: 1; }
    h1 { font-size: 1.55rem; }
    .wrap { padding-top: 1.75rem; }
}
