/* Shared styling for the standalone legal pages. These sit outside the React
   app, so they carry their own CSS rather than the Tailwind build. */

:root {
  --primary: #1e75bb;
  --primary-dark: #155a92;
  --surface: #f4f9fc;
  --ink: #0f2d3d;
  --muted: #4a6473;
  --line: #dbe5ec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

header.bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

header.bar .inner,
main.doc,
footer.bar .inner {
  margin: 0 auto;
  max-width: 780px;
  padding: 0 24px;
}

header.bar .inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 76px;
}

header.bar img { width: 48px; height: 48px; object-fit: contain; }

header.bar a.back {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

header.bar a.back:hover { text-decoration: underline; }

main.doc { padding-top: 40px; padding-bottom: 64px; }

h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

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

h2 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
}

h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }

p, li { color: var(--muted); }
li { margin-bottom: 6px; }
ul, ol { padding-left: 22px; }

strong { color: var(--ink); }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th { background: #fff; color: var(--ink); font-weight: 700; }
td { background: #fff; }

.wrap { overflow-x: auto; }

footer.bar {
  border-top: 1px solid var(--line);
  background: #fff;
}

footer.bar .inner {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 520px) {
  h1 { font-size: 26px; }
  main.doc { padding-top: 28px; }
}
