:root {
    --navy: #0F172A;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --ai: #4F46E5;
    --ai-2: #4338CA;
    --cyan: #0284C7;
    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --info: #0284C7;
    --disabled: #94A3B8;
    --bg: #F4F6F8;
    --bg-2: #EEF2F6;
    --surface: #FFFFFF;
    --card: #FFFFFF;
    --line: #E2E8F0;
    --text: #0F172A;
    --text-secondary: #334155;
    --muted: #64748B;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --focus: 0 0 0 3px rgba(37, 99, 235, 0.18);
    --font: "Ubuntu", "Noto Sans Devanagari", sans-serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    font-family: var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; max-width: 100%; overflow-x: hidden; overflow-y: auto; }
html:has(body.admin-body:not(.embed-mode)) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}
body {
    color: var(--text);
    background: var(--bg);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
code {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.86em;
    color: var(--navy);
}

/* ——— Auth ——— */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
        radial-gradient(700px 360px at 100% 0%, rgba(124, 58, 237, 0.10), transparent 50%),
        var(--bg);
}
.auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.auth-brand {
    background: var(--navy);
    color: #fff;
    padding: 44px 40px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    min-height: 100%;
}
.auth-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--ai));
    color: #fff;
}
.auth-brand h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; }
.auth-brand p { margin: 0; color: #94A3B8; max-width: 34ch; }
.auth-brand-logo {
    width: min(280px, 100%);
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 10px 12px;
}
.auth-brand { text-align: center; align-items: stretch; }
.auth-brand-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    flex: 1 1 auto;
}
.auth-support {
    margin-top: auto;
    width: 100%;
    text-align: left;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding-top: 16px;
    display: grid;
    gap: 7px;
    color: #CBD5E1;
    font-size: 0.88rem;
    line-height: 1.45;
}
.auth-support-title {
    margin: 0 0 2px;
    color: #F8FAFC;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.auth-support p { margin: 0; max-width: none; color: #CBD5E1; display: flex; align-items: flex-start; gap: 8px; }
.auth-support-ico { margin-right: 0; color: var(--cyan); flex: 0 0 auto; margin-top: 2px; font-size: 0.95rem; }
.auth-tagline {
    margin: 0 !important;
    max-width: 28ch !important;
    color: #CBD5E1 !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.55;
}
.auth-brand .auth-points { text-align: left; width: 100%; }
.auth-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; color: #CBD5E1; font-size: 0.92rem; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points i { color: var(--cyan); }
.auth-card {
    padding: 44px 40px;
    background: var(--card);
}
.auth-card h1 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -0.02em; }
.eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 650;
    color: var(--primary);
    margin: 0 0 8px;
}
.lede, .hint, .mic-hint { color: var(--muted); }
.hint { font-size: 0.85rem; margin-top: 18px; }
.auth-alt { margin-top: 16px; }
.auth-alt a { color: var(--primary); font-weight: 650; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-shell.is-register { width: min(1080px, 100%); }
.auth-card form.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.auth-card form.auth-grid .span-2 { grid-column: 1 / -1; }
.auth-card form.auth-grid label { margin: 8px 0; }
.auth-card label { display: grid; gap: 6px; margin: 14px 0; font-size: 0.85rem; color: var(--muted); font-weight: 550; }
.auth-card .req {
    color: #DC2626;
    font-weight: 700;
    margin-left: 3px;
}

.password-field {
    position: relative;
    display: block;
}
.password-field input {
    padding-right: 46px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.password-toggle:hover,
.password-toggle:focus-visible {
    color: #1D4ED8;
    background: #EFF6FF;
    outline: none;
    box-shadow: none;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #CBD5E1; }
input:focus, select:focus, textarea:focus, button:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus);
}

.btn-primary, .btn-ghost, .btn-ai {
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { width: 100%; background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary.sm, .btn-ghost.sm, .btn-ai.sm { width: auto; padding: 8px 12px; font-size: 0.85rem; }
.btn-ghost {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ai {
    background: var(--ai);
    color: #fff;
}
.btn-ai:hover { background: var(--ai-2); color: #fff; }

.banner {
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    margin: 0 0 16px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--text);
}
.banner-ok { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.banner-error { background: #FEF2F2; border-color: #FECACA; color: var(--danger); }
.banner-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

.app-body { min-height: 100vh; }
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 18px;
}
.topbar-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.8rem;
    background: #fff;
    color: var(--text);
}
.pill.muted { color: var(--muted); }
a.pill { color: inherit; text-decoration: none; }
a.pill:hover { border-color: var(--primary); color: var(--primary); }
.text-link { color: var(--muted); text-decoration: none; font-weight: 550; }
.text-link:hover { color: var(--primary); }
.text-danger { color: var(--danger); }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-new, .badge-open, .badge-issued { background: #DBEAFE; color: #1D4ED8; }
.badge-processing { background: #EDE9FE; color: #6D28D9; }
.badge-confirmed, .badge-partial { background: #CFFAFE; color: #0E7490; }
.badge-pending { background: #FEF3C7; color: #B45309; }
.badge-completed, .badge-delivered, .badge-paid, .badge-success, .badge-active { background: #DCFCE7; color: #15803D; }
.badge-cancelled, .badge-out, .badge-danger, .badge-failed, .badge-refund { background: #FEE2E2; color: #B91C1C; }
.badge-idle, .badge-muted { background: var(--bg-2); color: var(--muted); }

/* ——— Voice Assistant ——— */
.stage {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 20px;
    min-height: calc(100vh - 148px);
    align-items: stretch;
}
.console, .transcript-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.console {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 20px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 32%),
        var(--card);
    overflow: auto;
}
.console-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ai);
    margin: 0 0 10px;
}
.state-chip {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 650;
    background: #fff;
}
.state-chip[data-state="IDLE"] { color: #15803D; border-color: #BBF7D0; background: #F0FDF4; }
.state-chip[data-state="LISTENING"] { color: var(--cyan); border-color: #A5F3FC; background: #ECFEFF; }
.state-chip[data-state="PROCESSING"] { color: var(--ai); border-color: #DDD6FE; background: #F5F3FF; }
.state-chip[data-state="AI_SPEAKING"] { color: var(--primary); border-color: #BFDBFE; background: #EFF6FF; }
.state-chip[data-state="ERROR"] { color: var(--danger); border-color: #FECACA; background: #FEF2F2; }

.mic-btn {
    margin: 22px 0 4px;
    width: 160px;
    height: 160px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.mic-btn:focus-visible { box-shadow: none; }
.mic-btn:focus-visible .mic-core { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.28); }
.mic-ring-outer,
.mic-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.mic-ring-outer { inset: -8px; border: 2px solid transparent; }
.mic-ring {
    inset: 0;
    border: 2px solid rgba(37, 99, 235, 0.16);
}
.mic-core {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--primary), var(--ai));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mic-btn:hover .mic-core { transform: scale(1.03); }
.mic-core svg { width: 42px; height: 42px; fill: #fff; }
.console[data-state="LISTENING"] .mic-ring {
    animation: pulse 1.4s ease-out infinite;
    border-color: rgba(6, 182, 212, 0.55);
}
.console[data-state="LISTENING"] .mic-ring-outer {
    animation: pulse-soft 1.8s ease-out infinite;
    border-color: rgba(6, 182, 212, 0.28);
}
.console[data-state="PROCESSING"] .mic-core {
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.28);
}
.console[data-state="AI_SPEAKING"] .mic-ring {
    animation: pulse 1.8s ease-out infinite;
    border-color: rgba(124, 58, 237, 0.4);
}
.console[data-state="ERROR"] .mic-core { background: linear-gradient(145deg, #F87171, var(--danger)); }
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.14); opacity: 0; }
}
@keyframes pulse-soft {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.12); opacity: 0; }
}

.mic-think {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    gap: 5px;
    z-index: 2;
}
.console[data-state="PROCESSING"] .mic-think { display: flex; }
.mic-think i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
    animation: think 0.9s ease-in-out infinite;
}
.mic-think i:nth-child(2) { animation-delay: 0.15s; }
.mic-think i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-4px); }
}

.waveform {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
}
.console[data-state="AI_SPEAKING"] .waveform {
    height: 28px;
    margin: 10px 0 2px;
    opacity: 1;
}
.waveform span {
    width: 4px;
    height: 8px;
    border-radius: 99px;
    background: #CBD5E1;
}
.console[data-state="AI_SPEAKING"] .waveform span {
    background: linear-gradient(180deg, var(--cyan), var(--ai));
    animation: wave 0.9s ease-in-out infinite;
}
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.08s; }
.waveform span:nth-child(3) { animation-delay: 0.16s; }
.waveform span:nth-child(4) { animation-delay: 0.05s; }
.waveform span:nth-child(5) { animation-delay: 0.18s; }
.waveform span:nth-child(6) { animation-delay: 0.1s; }
.waveform span:nth-child(7) { animation-delay: 0.22s; }
@keyframes wave {
    0%, 100% { height: 8px; }
    50% { height: 26px; }
}

.mic-hint {
    margin: 8px 0 0;
    font-weight: 650;
    color: var(--navy);
}
.voice-retry { margin-top: 10px; width: auto; }

.voice-try {
    width: 100%;
    margin-top: 16px;
    text-align: left;
}
.voice-try p,
.voice-actions p {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}
.voice-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.voice-chip {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 550;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.voice-chip:hover {
    border-color: #C4B5FD;
    background: #F5F3FF;
    color: var(--ai);
}

.voice-ready-card {
    width: 100%;
    margin-top: 16px;
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #BBF7D0;
    background: #F0FDF4;
    border-radius: 12px;
}
.voice-ready-title {
    margin: 0 0 4px;
    font-weight: 700;
    color: #15803D;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}
.voice-ready-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}
.voice-ready-card p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.voice-actions {
    width: 100%;
    margin-top: 14px;
    text-align: left;
}
.voice-actions ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
}
.voice-actions li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    padding: 7px 8px;
    border-radius: 8px;
    background: var(--bg);
}
.voice-actions i { color: var(--primary); font-size: 0.95rem; }

.controls { display: grid; gap: 10px; width: 100%; margin-top: 14px; }
.lang-select { text-align: left; margin: 0; }
.live-line {
    min-height: 2.4em;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--line);
    text-align: left;
}

.transcript-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    flex-shrink: 0;
}
.panel-head h2 { margin: 0; font-size: 1rem; }
.voice-panel-lede { margin: 4px 0 0; font-size: 0.8rem; }
.messages {
    flex: 1;
    overflow: auto;
    padding: 18px 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #F8FAFC;
    min-height: 280px;
}
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }
.msg.user { margin-left: auto; align-items: flex-end; }
.msg.assistant { margin-right: auto; align-items: flex-start; }
.msg-meta { font-size: 0.68rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.bubble {
    padding: 11px 13px;
    border-radius: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.bubble.user {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.bubble.assistant {
    background: #fff;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    color: var(--text);
}
.bubble.error { border-color: #FECACA; color: var(--danger); background: #FEF2F2; }
.voice-debug {
    width: 100%;
    margin-top: 16px;
    text-align: left;
    background: #0F172A;
    color: #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.75rem;
    line-height: 1.45;
}
.voice-debug h3 {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #67E8F9;
}
.voice-debug ol {
    margin: 0;
    padding-left: 1.2rem;
}
.voice-debug li { margin: 3px 0; word-break: break-word; }
.voice-debug .ok { color: #86EFAC; }
.voice-debug .fail { color: #FCA5A5; }
.voice-debug-note {
    margin: 10px 0 0;
    color: #94A3B8;
    font-size: 0.7rem;
}
.voice-debug-note a { color: #7DD3FC; }
.composer {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: #fff;
    flex-shrink: 0;
}
.composer input {
    flex: 1;
    min-width: 0;
}
.composer .btn-primary { background: var(--primary); }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { padding: 28px 24px; }
    .auth-card { padding: 28px 22px; }
    .auth-card form.auth-grid { grid-template-columns: 1fr; }
    .stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .transcript-panel { min-height: 520px; }
    .console { max-height: none; }
}

.auth-agree {
    margin: 10px 0 4px;
}
.auth-agree-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}
.auth-agree-label input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: var(--primary);
}
.auth-agree-label a {
    color: var(--primary);
    font-weight: 650;
    text-decoration: none;
}
.auth-agree-label a:hover { text-decoration: underline; }

.site-legal-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    align-items: center;
    width: min(980px, 100%);
    padding: 4px 8px 8px;
    color: var(--muted);
    font-size: 0.78rem;
}
.site-legal-foot a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}
.site-legal-foot a:hover,
.site-legal-foot a[aria-current="page"] { color: var(--primary); text-decoration: underline; }
.legal-body .site-legal-foot {
    width: min(820px, 100%);
    margin: 0 auto 28px;
}

.legal-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}
.legal-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}
.legal-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}
.legal-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
}
.legal-nav a.is-active,
.legal-nav a:hover { color: var(--primary); }
.legal-signin {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff !important;
}
.legal-wrap {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 32px 20px 8px;
}
.legal-kicker {
    margin: 0 0 6px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
}
.legal-wrap > h1 {
    margin: 0 0 6px;
    font-size: 1.85rem;
    letter-spacing: -0.03em;
}
.legal-updated {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.85rem;
}
.legal-prose {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 30px 32px;
    box-shadow: var(--shadow);
    line-height: 1.65;
    font-size: 0.95rem;
}
.legal-prose h2 {
    margin: 1.4em 0 0.5em;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}
.legal-prose p, .legal-prose ul { margin: 0 0 0.9em; color: #334155; }
.legal-prose ul { padding-left: 1.2em; }
.legal-prose a { color: var(--primary); font-weight: 650; }

@media (max-width: 860px) {
    .auth-agree-label { font-size: 0.8rem; }
}
