/* AmeriGA legal pages — minimal light design (v4.0)
   Extracted from the inline template styles so the plugin templates and the
   AmeriGA theme share one source. */

body.ameriga-legal-body { margin: 0; background: #fdfdfc; }

.agm-legal {
    --ink: #16181d;
    --muted: #5c6270;
    --faint: #9aa0ad;
    --line: #e4e5e8;
    --bg: #fdfdfc;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
}
.agm-legal-standalone { min-height: 100vh; }
.agm-legal *, .agm-legal *::before, .agm-legal *::after { box-sizing: border-box; }
.agm-legal a { color: inherit; text-decoration: none; }

.agm-legal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
}
.agm-legal-wordmark { font-weight: 700; letter-spacing: .14em; font-size: 15px; color: var(--ink); }
.agm-legal-back {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.agm-legal-back:hover { color: var(--ink); }

.agm-legal-wrap { max-width: 760px; margin: 0 auto; padding: 56px 28px 72px; flex: 1; width: 100%; }
.agm-legal-kicker {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 14px;
}
.agm-legal h1 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 12px; color: var(--ink); }
.agm-legal-meta {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--faint);
    margin: 0 0 18px;
}
.agm-legal-intro { font-size: 15px; color: var(--muted); margin: 0; max-width: 640px; }

.agm-legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 28px 0 0;
    padding: 18px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}
.agm-legal-toc a { font-size: 12.5px; color: var(--muted); }
.agm-legal-toc a:hover { color: var(--ink); }

.agm-legal section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.agm-legal h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0 0 12px;
    display: flex;
    gap: 12px;
    align-items: baseline;
    color: var(--ink);
}
.agm-legal h2 .n {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    color: var(--faint);
    font-weight: 500;
    flex: none;
}
.agm-legal p { font-size: 15px; margin: 0 0 12px; color: var(--ink); }
.agm-legal p:last-child { margin-bottom: 0; }
.agm-legal p.muted { color: var(--muted); }
.agm-legal ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.agm-legal li {
    font-size: 15px;
    position: relative;
    padding: 7px 0 7px 20px;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.agm-legal li:first-child { border-top: 0; }
.agm-legal li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 5px; height: 5px; background: var(--ink); }
.agm-legal strong { font-weight: 600; }
.agm-legal .emph {
    background: #f5f5f3;
    border: 1px solid var(--line);
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink);
    text-transform: none;
}
.agm-legal .contact { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; color: var(--ink); margin-top: 4px; }
.agm-legal-note { font-size: 12.5px; color: var(--faint); margin-top: 22px; font-style: italic; }

.agm-legal-footer {
    padding: 24px 28px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--faint);
}
.agm-legal-footer a { color: var(--muted); }
.agm-legal-footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
    .agm-legal h1 { font-size: 26px; }
    .agm-legal-wrap { padding: 40px 20px 56px; }
}
