/* Caduceus legal site — sage earth palette matching the app */

:root {
    --bg: #FAFBF7;
    --surface: #FFFFFF;
    --text: #2E342A;
    --muted: #7A7864;
    --primary: #8FA976;
    --primary-dark: #6B8557;
    --primary-tint: #EDF1E6;
    --border: #EDEAE0;
    --callout-bg: #F5EFE2;
    --callout-border: #E5DAC4;
    --callout-text: #7A5C34;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ─── Home hero ─── */
.hero {
    text-align: center;
    padding: 40px 0 32px;
}

.hero .logo {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 12px;
    color: var(--text);
}

.hero .tagline {
    font-size: 16px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
}

/* ─── Feature cards ─── */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 40px 0;
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
}

.card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* ─── Legal section on home ─── */
.legal {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.legal h2 {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}

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

.legal li {
    margin-bottom: 12px;
}

.legal a {
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 15px;
}

.legal a:hover {
    text-decoration: underline;
}

/* ─── Document pages (privacy, terms) ─── */
.breadcrumbs {
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.doc h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: var(--text);
}

.doc .meta {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 40px;
    font-weight: 600;
}

.doc section {
    margin-bottom: 32px;
}

.doc h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 12px;
    color: var(--text);
}

.doc h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 20px 0 8px;
    color: var(--text);
}

.doc p {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 15px;
}

.doc ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.doc li {
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text);
}

.doc a {
    color: var(--primary-dark);
    font-weight: 600;
}

.doc strong {
    color: var(--text);
    font-weight: 700;
}

.doc .callout {
    background: var(--callout-bg);
    border: 1px solid var(--callout-border);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 0 0 32px;
    color: var(--callout-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ─── Footer ─── */
footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
    line-height: 1.5;
}

footer .small {
    font-size: 11px;
    color: var(--muted);
}

footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}
