/*
 * Barquecon legal and support pages (platform-iot.barquecontech.com/legal/*, /support).
 * LIGHT theme. Every colour below is a primitive from packages/ui-kit/src/tokens/globals.css
 * (--bq-light-* and the brand constants), copied verbatim; nginx/test-nginx-routes.sh fails if a
 * colour here is not one of them, or if the retired orange appears. Sizes follow the ui-kit's
 * Tailwind scale (0.25rem steps; text 0.75/0.875/1/1.125/1.5rem; radius 0.375/0.5rem).
 * No web fonts, no scripts, no external requests of any kind.
 */
:root {
  --bq-navy: #0d1b2a;
  --bq-gold: #f1b621;
  --bg: #eef2f8;            /* --bq-light-bg */
  --surface: #ffffff;       /* --bq-light-surface-raised */
  --surface-sunken: #e4e9f2;/* --bq-light-surface-sunken */
  --border: #d5dded;        /* --bq-light-border */
  --ink: #0d1b2a;           /* --bq-light-ink */
  --ink-secondary: #223349; /* --bq-light-ink-secondary */
  --ink-muted: #55647c;     /* --bq-light-ink-muted */
  --accent-text: #7d5f11;   /* --bq-light-accent-text (gold darkened for text on white) */
  --accent-soft: #fdf3d7;   /* --bq-light-accent-soft */
  --accent-on-soft: #6b4f0e;/* --bq-light-accent-on-soft */
  --focus: #a87e14;         /* --bq-light-focus-ring */
  --warn-fill: #f7efe4;     /* --bq-light-state-warning-fill */
  --warn-ink: #955c08;      /* --bq-light-state-warning-ink */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: var(--accent-text); text-underline-offset: 0.125rem; }
a:focus-visible { outline: 0.125rem solid var(--focus); outline-offset: 0.125rem; }
.bar { background: var(--bq-navy); padding: 0.75rem 1rem; }
.bar-inner { max-width: 48rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { color: var(--surface); font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: 0.01em; }
.brand span { color: var(--bq-gold); }
.bar nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.bar nav a { color: var(--surface); font-size: 0.875rem; text-decoration: none; }
.bar nav a[aria-current="page"] { color: var(--bq-gold); }
main { max-width: 48rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; overflow-wrap: break-word; }
.draft {
  background: var(--warn-fill);
  color: var(--warn-ink);
  border: 0.0625rem solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}
.card { background: var(--surface); border: 0.0625rem solid var(--border); border-radius: 0.5rem; padding: 1.5rem 1rem; }
@media (min-width: 40rem) { .card { padding: 2rem 2rem; } }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.125rem; margin: 2rem 0 0.5rem; padding-top: 1rem; border-top: 0.0625rem solid var(--border); }
h3 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }
.meta { color: var(--ink-muted); font-size: 0.875rem; margin: 0 0 1rem; }
p, li { color: var(--ink-secondary); }
ul, ol { padding-left: 1.5rem; }
li { margin: 0.25rem 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 0.75rem 0; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem; border-bottom: 0.0625rem solid var(--border); }
th { background: var(--surface-sunken); color: var(--ink); font-weight: 600; }
.callout { background: var(--accent-soft); color: var(--accent-on-soft); border-radius: 0.5rem; padding: 0.75rem 1rem; margin: 1rem 0; }
.callout p, .callout li { color: var(--accent-on-soft); }
code { background: var(--surface-sunken); border-radius: 0.375rem; padding: 0 0.25rem; font-size: 0.875rem; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  th, td { padding: 0.5rem 0.5rem; }
  .table-wrap table { font-size: 0.75rem; }
}
footer { max-width: 48rem; margin: 0 auto; padding: 0 1rem 2rem; color: var(--ink-muted); font-size: 0.75rem; }
footer a { color: var(--ink-muted); }
