/* Shared styling for the standalone legal pages (privacy.html, terms.html).
   Deliberately its own small stylesheet rather than vinscanner.css: these pages
   are plain documents, they must render even if the app's CSS changes shape,
   and app-store reviewers / crawlers open them directly. Palette matches the
   app's instrument theme. */

:root {
    --bg-page:        #0b0e14;
    --bg-card:        #141b26;
    --border:         #28303f;
    --text-primary:   #eef2f8;
    --text-secondary: #9aa6ba;
    --text-muted:     #616d80;
    --accent:         #2f6bff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 72px; }

.back {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
}
.back:hover { text-decoration: underline; }

h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; }

.updated {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 28px;
}

h2 {
    font-size: 19px;
    margin: 34px 0 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

h3 { font-size: 16px; margin: 22px 0 6px; color: var(--text-primary); }

p, li { color: var(--text-secondary); }
li { margin-bottom: 7px; }
ul { padding-left: 22px; }

a { color: var(--accent); }

strong { color: var(--text-primary); }

.lead {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 8px;
}
.lead p { margin: 0; }
.lead p + p { margin-top: 10px; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 15px;
    display: block;
    overflow-x: auto;
}
th, td {
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
td { color: var(--text-secondary); }

.foot {
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 520px) {
    h1 { font-size: 24px; }
    .wrap { padding: 22px 16px 60px; }
}
