/* AIUse Ledger legal pages. Same-origin stylesheet (the site CSP is style-src 'self', so inline <style> is not used). */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #535b66;
  --border: #d4d9e0;
  --primary: #1f4e8c;
  --focus: #b35c00;
  --note-bg: #e8eff9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --surface: #1b2128;
    --text: #e8ebef;
    --muted: #b3bbc5;
    --border: #36404b;
    --primary: #9cc2f5;
    --focus: #ffb366;
    --note-bg: #1d2a3b;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}
.skip { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--surface); color: var(--text); }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }
header.site, footer.site { background: var(--surface); border-bottom: 1px solid var(--border); }
footer.site { border-top: 1px solid var(--border); border-bottom: 0; margin-top: 2.5rem; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem; }
.brand { font-weight: 700; font-size: 1.1rem; margin: 0; }
.brand span { color: var(--muted); font-weight: 400; }
nav ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
nav a[aria-current='page'] { font-weight: 700; text-decoration: none; color: var(--text); }
main { display: block; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.5rem 0 0.25rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.25rem; }
p, ul, ol, table { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--primary); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.updated { color: var(--muted); margin: 0 0 1.25rem; }
.note { background: var(--note-bg); border-left: 4px solid var(--primary); padding: 0.75rem 1rem; border-radius: 4px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 0.95rem; }
caption { text-align: left; font-weight: 600; padding: 0.25rem 0; }
th, td { border: 1px solid var(--border); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
th { background: var(--bg); }
.small { font-size: 0.9rem; color: var(--muted); }
@media print {
  header.site nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
