/* Policy, download, invite, pairing and studio pages. Same brand as the landings (assets/landing.css),
   kept plain and readable: these are legal and help pages. */
:root {
  --ink: #0e2a2e;
  --muted: #4a6265;
  --paper: #fff6e8;
  --card: #ffffff;
  --line: #eadfcc;
  --brand: #0d6b63;
  --brand-ink: #ffffff;
  --header: #072b30;
  --warn-bg: #fff0c9;
  --warn-ink: #5c3f00;
  --mark: #ffe08a;
  --code-bg: #e3f3f0;
  --code-ink: #0d4a52;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ede2;
    --muted: #b9c8c6;
    --paper: #061f23;
    --card: #0b2e33;
    --line: #1d4a50;
    --brand: #8fe0d3;
    --brand-ink: #062328;
    --header: #041a1d;
    --warn-bg: #3b300f;
    --warn-ink: #ffe3a3;
    --mark: #6b5510;
    --code-bg: #12464c;
    --code-ink: #e3fffb;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 Roboto, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 -16px 24px;
  padding: 14px 16px;
  background: var(--header);
  color: #fff6e8;
}
@media (min-width: 832px) {
  header.site { margin: 0 0 24px; border-radius: 0 0 20px 20px; padding: 14px 20px; }
}

header.site a.home { color: #fff6e8; font-weight: 800; text-decoration: none; }
header.site .home { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
header.site .home img.mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }

nav.lang a { color: #ffc857; font-weight: 700; }
nav.lang a[aria-current="true"] { color: #fff6e8; text-decoration: none; }
header.site a:focus-visible { outline: 3px solid #ffc857; outline-offset: 3px; border-radius: 6px; }

article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 20px;
  box-shadow: 0 24px 48px -36px rgba(13, 74, 82, 0.45);
}
@media (min-width: 600px) { article { padding: 36px 36px; } }

h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 1.22rem; margin: 30px 0 8px; }
h3 { font-size: 1.05rem; margin: 18px 0 6px; }
p, li { overflow-wrap: anywhere; }
.meta { color: var(--muted); margin: 0 0 16px; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }

.draft {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 3px; }

ol.steps li { margin-bottom: 6px; }

/* Download page */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin: 20px 0 8px; }
.button {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 14px;
  min-height: 48px;
  box-shadow: 0 10px 24px -14px rgba(13, 107, 99, 0.9);
}
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
figure.qr { margin: 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
figure.qr img { display: block; margin: 0 auto 4px; background: #fff; border-radius: 8px; }
code { overflow-wrap: anywhere; font-size: 0.85rem; }

footer { color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

.pair-code {
  font: 800 2.4rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-ink);
  display: inline-block;
}
