/* Text pages: Terms, Privacy, 404. Same tokens as the app. */
:root { --ink: #14181F; --ink-2: #3E4651; --muted: #5B6472; --line: #E3E6EA; --bg: #F5F6F8; --surface: #FFFFFF; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--ink); }
.page-header { padding: 18px 24px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-logo { text-decoration: none; font-size: 15px; color: var(--muted); }
.page-logo strong { color: var(--ink); font-weight: 800; font-size: 17px; }
.page-logo-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; }
.page { max-width: 720px; margin: 0 auto; padding: 32px 24px 48px; }
.page h1 { font-size: 30px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.01em; }
.page h2 { font-size: 17px; margin: 28px 0 6px; }
.page p, .page li { font-size: 15px; color: var(--ink-2); }
.page ul { padding-left: 20px; }
.page li { margin: 6px 0; }
.updated { font-size: 13px !important; color: var(--muted) !important; margin: 0 0 20px; }
.page-footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 20px 24px 32px; border-top: 1px solid var(--line); font-size: 13px; }
.page-footer a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

/* Header nav and info pages (How it works, Bus types) */
.page-nav { display: flex; gap: 18px; font-size: 14px; }
.page-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.page-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.page .lead { font-size: 17px !important; color: var(--ink-2); margin: 6px 0 20px; }
.steps { list-style: none; padding: 0; counter-reset: step; margin: 8px 0 24px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 10px 56px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: white; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps h2 { margin: 2px 0 4px; }
.cta { margin: 20px 0 28px; }
.button { display: inline-block; background: var(--ink); color: white !important; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 10px; }
.button:hover { opacity: .88; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.page section { scroll-margin-top: 16px; }
.page section h2 { font-size: 22px; margin-top: 32px; }
.count { font-weight: 700; color: var(--ink) !important; margin: 12px 0 6px; }
.note { font-size: 13px !important; color: var(--muted) !important; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.routes { width: 100%; border-collapse: collapse; font-size: 13px; }
.routes th, .routes td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.routes th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); }
.routes td.svc { font-weight: 800; color: var(--ink); white-space: nowrap; }
.routes tr:last-child td { border-bottom: none; }
@media (max-width: 600px) { .routes td:nth-child(4), .routes th:nth-child(4) { display: none; } }

/* Bus and area pages */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 16px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.button.ghost { background: var(--surface); color: var(--ink) !important; border: 1px solid var(--line-2, #CDD2D8); margin-left: 8px; }
.bus-map { height: 340px; border-radius: 14px; border: 1px solid var(--line); margin: 8px 0 16px; background: #d1d1d1; }
.goes-to a { font-weight: 600; }
.stops { padding-left: 22px; }
.stops li { margin: 4px 0; }
.stops small { color: var(--muted); margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); }
.area-routes td.svc a { color: var(--ink); text-decoration: none; }
.area-routes td.svc small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.area-routes td.svc small.ends { color: #0B7A3E; font-weight: 700; }
.area-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.area-links a { font-weight: 600; }
@media (max-width: 600px) { .area-routes td:nth-child(5), .area-routes th:nth-child(5) { display: none; } .button.ghost { margin: 8px 0 0; } }
.routes td.svc a { color: var(--ink); }
.area-routes td:nth-child(4) { white-space: nowrap; }
