/* Curb legal pages — shares design tokens with the landing (styles.css) */
:root {
    --primary: #EC6F2D;
    --primary-dark: #C94F16;
    --primary-light: #FFF1E8;

    --bg-start: #FFF7ED;
    --bg-end: #FFF1E8;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --text: #0F172A;
    --text-muted: #475569;
    --text-subtle: #64748B;

    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(236, 111, 45, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06);

    --radius-md: 16px;
    --radius-lg: 24px;

    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'Bebas Neue', 'Arial Narrow', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { display: block; max-width: 100%; }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 247, 237, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.brand span {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    line-height: 1;
    padding-top: 0.15em;
}

.nav-links {
    display: flex;
    gap: 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a.is-current { color: var(--primary); font-weight: 600; }

@media (max-width: 480px) {
    .brand span { display: none; }
    .nav-links { gap: 0.9rem; font-size: 0.8rem; }
}

/* Page header */
.page-header {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 1.75rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.updated {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-dark);
    background: var(--primary-light);
    border: 1px solid rgba(236, 111, 45, 0.18);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
}

/* Content card */
.legal-card {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(1.75rem, 4.5vw, 3rem) clamp(1.25rem, 4.5vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .legal-card { margin-left: 1rem; margin-right: 1rem; width: auto; }
}

.legal-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 2.25rem 0 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.legal-card h2:first-of-type { margin-top: 0.5rem; }

.legal-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin: 1.4rem 0 0.4rem;
}

.legal-card p { margin-bottom: 1rem; color: var(--text-muted); }
.legal-card ul, .legal-card ol { margin: 0.5rem 0 1rem 1.4rem; color: var(--text-muted); }
.legal-card li { margin-bottom: 0.35rem; }
.legal-card li::marker { color: var(--primary); }
.legal-card strong { font-weight: 600; color: var(--text); }

.legal-card a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 111, 45, 0.3);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.legal-card a:hover { color: var(--primary-dark); border-bottom-color: var(--primary-dark); }

/* Contact block at the end of each document */
.contact-card {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--primary-light);
    border: 1px solid rgba(236, 111, 45, 0.18);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.contact-card p { margin-bottom: 0; }

/* Footer */
.footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 2.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-subtle);
    width: 100%;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer a:hover { color: var(--primary); }
