/* Automation Hub: legal pages. No external fonts, scripts or trackers. */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #1b1f2a;
  --muted: #4a5163;
  --border: #e2e5ee;
  --accent: #4338ca;
  --accent-text: #3730a3;
  --todo-bg: #fff4d6;
  --todo-text: #6b4a00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220;
    --surface: #171b2d;
    --text: #e8eaf2;
    --muted: #b4b9c9;
    --border: #2a3047;
    --accent: #8b8cff;
    --accent-text: #a5a6ff;
    --todo-bg: #3b2f0b;
    --todo-text: #ffe3a3;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--accent); color: #fff; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
nav a[aria-current="page"] { font-weight: 650; text-decoration: none; }
.wrap { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: 1.25rem; }
main { padding-block: 2rem 3rem; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 0.6rem; padding-top: 0.25rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.meta { color: var(--muted); margin-bottom: 1.5rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 0.9rem 1.1rem; margin: 1.25rem 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem 1.1rem 0.4rem; }
.toc h2 { margin-top: 0; font-size: 1rem; }
mark.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 0.25em; border-radius: 3px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface); }
.table-scroll { overflow-x: auto; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.93rem; padding-block: 1.25rem 2rem; }
@media print { .site-header nav, .skip-link { display: none; } a { color: inherit; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Table notes (no inline styles: the site's Content-Security-Policy forbids them). */
.table-note { caption-side: bottom; text-align: left; }
