/* Shared styling for the legal pages. Deliberately plain, static HTML: these
   must render even if the app bundle fails, and must be readable and printable
   for a customer's procurement or security reviewer. */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --heading: #0f172a;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --warn-bg: #fffbeb;
  --warn-border: #fcd34d;
  --warn-text: #78350f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #cbd5e1;
    --text-muted: #94a3b8;
    --heading: #f1f5f9;
    --border: #334155;
    --accent: #818cf8;
    --warn-bg: #292524;
    --warn-border: #a16207;
    --warn-text: #fde68a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 76ch; margin: 0 auto; }

header.doc {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  font-size: 15px;
}

.brand span { color: var(--accent); }

h1 {
  font-size: 30px;
  line-height: 1.25;
  color: var(--heading);
  margin: 20px 0 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 20px;
  color: var(--heading);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

h3 { font-size: 16px; color: var(--heading); margin: 26px 0 8px; }

p, li { color: var(--text); }
li { margin-bottom: 8px; }

a { color: var(--accent); }

.meta { color: var(--text-muted); font-size: 14px; margin: 0; }
.lede { font-size: 17px; color: var(--text); }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
th { background: var(--surface); color: var(--heading); font-weight: 600; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 20px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
}
.notice strong { color: var(--warn-text); }

.fill {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px dashed var(--warn-border);
  border-radius: 3px;
  padding: 0 5px;
  font-weight: 600;
  font-size: 0.95em;
}

nav.docnav {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
nav.docnav a { margin-right: 16px; display: inline-block; }

footer.doc {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

ul.plain { list-style: none; padding: 0; }
ul.plain li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
ul.plain a { font-weight: 600; font-size: 16px; text-decoration: none; }
ul.plain p { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); }

@media print {
  body { padding: 0; color: #000; background: #fff; }
  .notice { border: 1px solid #999; }
  nav.docnav, footer.doc { display: none; }
}
