/* landing/legal/legal.css — the /legal pages (generated by
   legal/build_legal.py; this stylesheet is hand-written). Same tokens and
   fonts as landing/index.html; one readable column on phone and iPad;
   a plain black-on-white print layout without the nav and footer. */

:root {
    --bg-primary:     #f8fafc;
    --bg-card:        #ffffff;
    --border-color:   rgba(148, 163, 184, 0.25);
    --text-primary:   #334155;
    --text-secondary: #64748b;
    --text-muted:     #94a3b8;
    --teal:           #0F6E56;
    --teal-light:     #E1F5EE;
    --indigo:         #7b9cef;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--teal); overflow-wrap: anywhere; }

.legal-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.legal-nav-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legal-logo {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.legal-logo span { color: var(--teal); }

.legal-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.legal-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.legal-crumb { margin: 0 0 0.5rem; font-size: 0.9rem; }
.legal-crumb a { text-decoration: none; }

h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-print {
    min-height: 44px;
    padding: 0 1.1rem;
    font: 500 0.95rem 'Outfit', sans-serif;
    color: var(--teal);
    background: var(--bg-card);
    border: 1px solid rgba(15, 110, 86, 0.35);
    border-radius: 999px;
    cursor: pointer;
}

.legal-doc,
.legal-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.25rem 0.5rem;
}

.legal-doc h2,
.legal-main > h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.5rem;
}

.legal-doc h2:first-child { margin-top: 0; }

.legal-doc p,
.legal-doc li { margin: 0 0 0.75rem; overflow-wrap: anywhere; }

.legal-doc ul,
.legal-doc ol { padding-left: 1.4rem; margin: 0 0 0.75rem; }

.legal-doc hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.75rem 0;
}

.legal-lead { color: var(--text-secondary); margin: 0 0 1.5rem; }

.legal-list { list-style: none; margin: 0; padding: 0.25rem 0; }

.legal-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-list li:last-child { border-bottom: none; }

.legal-list a { font-weight: 600; font-size: 1.05rem; text-decoration: none; }

.legal-item-meta { color: var(--text-secondary); font-size: 0.9rem; }

.legal-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0 1rem 2rem;
}

@media (min-width: 700px) {
    .legal-main { padding: 2.5rem 1.5rem 4rem; }
    h1 { font-size: 2.3rem; }
    .legal-doc { padding: 2rem 2.25rem 1rem; }
}

@media print {
    body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
    .legal-nav, .legal-footer, .legal-crumb, .legal-print { display: none; }
    .legal-main { max-width: none; padding: 0; }
    .legal-doc, .legal-list { border: none; padding: 0; }
    h1, .legal-doc h2 { color: #000; }
    .legal-doc h2 { break-after: avoid; }
    .legal-doc p, .legal-doc li { break-inside: avoid; }
    a { color: #000; text-decoration: none; }
    .legal-meta { color: #000; }
}
