/*
  Shared styling for the AutoGo public legal and support pages.

  Deliberately a plain stylesheet next to plain HTML, not a Nuxt page. The admin app is
  `ssr: false`, so a Vue route returns an empty shell to anything that is not a full browser —
  and these three URLs are read by App Store review tooling, by crawlers and by people on bad
  connections. A static file under `public/` is served by Nitro before any app code runs.
*/

:root {
  color-scheme: light dark;

  --ink: #14161c;
  --ink-muted: #565b69;
  --ink-faint: #858b9a;
  --page: #f7f8fa;
  --surface: #ffffff;
  --line: #e4e7ee;
  --accent: #5b4bdb;
  --accent-soft: #efedfd;
  --warn-ink: #7a4a05;
  --warn-bg: #fdf3e2;
  --warn-edge: #d99b22;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f5;
    --ink-muted: #a2a8b8;
    --ink-faint: #767d8e;
    --page: #0e1015;
    --surface: #171a21;
    --line: #272b35;
    --accent: #a99cff;
    --accent-soft: #221f3a;
    --warn-ink: #f0c98a;
    --warn-bg: #2b2114;
    --warn-edge: #a8791f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;      /* ~70 characters at this size; prose past that is tiring */
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

header.masthead {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

.dateline {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

h2 {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 2.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

p, li { color: var(--ink-muted); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent); text-underline-offset: 2px; }

.lede {
  font-size: 1.0625rem;
  color: var(--ink);
}

/* Tables carry the data inventory. They are the densest thing on the page, so they get their
   own scroll container rather than forcing the whole document to scroll sideways on a phone. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--page);
}

tr:last-child td { border-bottom: 0; }
td { color: var(--ink-muted); }
td:first-child { color: var(--ink); font-weight: 500; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.875rem 1rem;
  margin: 0 0 1.25rem;
}
.note p:last-child { margin-bottom: 0; }

/* An unresolved item that must not reach production. Loud on purpose. */
.todo {
  border-left: 3px solid var(--warn-edge);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.875rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}
.todo p { color: var(--warn-ink); }
.todo p:last-child { margin-bottom: 0; }

.langbar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.langbar a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.langbar a[aria-current="true"] {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 1.25rem;
  margin: 0 0 1.25rem;
}
.contact-card p:last-child { margin-bottom: 0; }

footer.pagefoot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.875rem;
}
footer.pagefoot a { color: var(--ink-faint); }
