/* Shared styles for static legal pages on https://bounds-layout-inspector.web.app/.
   Kept dark-friendly to match the gate-page brand and to look right on phones. */
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #11161f;
  --border: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --link: #5b9dff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 15px; -webkit-font-smoothing: antialiased;
}
header {
  border-bottom: 1px solid var(--border); padding: 18px 24px;
  display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto;
}
header .brand { font-weight: 600; letter-spacing: 0.01em; }
header .crumb { color: var(--muted); font-size: 13px; }
main {
  max-width: 760px; margin: 0 auto; padding: 28px 24px 96px;
}
h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 19px; font-weight: 600; margin: 36px 0 10px; letter-spacing: -0.005em; }
h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; color: var(--text); }
p, li { color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--link); }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.meta strong { color: var(--text); }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
code { background: var(--surface); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin: 18px 0;
}
.callout strong { color: var(--text); }
footer {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 18px 24px;
  max-width: 760px; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); margin-right: 16px; }
.btn-primary {
  display: inline-block; padding: 12px 18px; border-radius: 10px;
  background: #2b65a7; color: #fff !important; text-decoration: none; font-weight: 600;
}
.btn-primary:hover { background: #316eb5; text-decoration: none; }
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #f7f8fa;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --link: #2b65a7;
  }
}
