/* Starta.one — shared stylesheet for legal documents
   Used by every /legal/*.html document. Edit here to restyle all of them.
   Self-contained, no external dependencies, mobile-first, dark-mode aware. */

:root {
  --accent: #7755ff;
  --accent-press: #5533dd;
  --text: #1a1a1f;
  --text-soft: #45454f;
  --muted: #70707c;
  --bg: #ffffff;
  --surface: #f6f6fb;
  --surface-2: #ececf3;
  --border: #e3e3ec;
  --warn-bg: rgba(251, 188, 4, 0.16);
  --warn-border: #d8a200;
  --max: 820px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ededf2;
    --text-soft: #c6c6d2;
    --muted: #9a9aa8;
    --bg: #16161a;
    --surface: #1e1e25;
    --surface-2: #282830;
    --border: #32323c;
    --accent: #a18cff;
    --accent-press: #c2b3ff;
    --warn-bg: rgba(251, 188, 4, 0.12);
    --warn-border: #b88a00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 36px 20px 96px; }

header.doc { border-bottom: 1px solid var(--border); padding-bottom: 22px; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.4px; font-size: 14px; text-transform: uppercase; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
h1 { font-size: 30px; line-height: 1.2; margin: 16px 0 8px; letter-spacing: -0.4px; }
.doc-meta { color: var(--muted); font-size: 14px; margin: 2px 0; }
.doc-meta strong { color: var(--text-soft); font-weight: 600; }

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin: 24px 0; }
.summary h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--accent);
  margin: 0 0 10px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 5px 0; color: var(--text-soft); }

nav.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin: 24px 0 36px; }
nav.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted);
  margin: 0 0 10px; }
nav.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
nav.toc li { margin: 4px 0; break-inside: avoid; }
nav.toc a { color: var(--text-soft); text-decoration: none; }
nav.toc a:hover { color: var(--accent); text-decoration: underline; }

h2.section { font-size: 21px; margin: 44px 0 10px; letter-spacing: -0.2px; scroll-margin-top: 16px; }
h3 { font-size: 17px; margin: 26px 0 6px; }
p { margin: 11px 0; }
.lead { color: var(--text-soft); font-size: 18px; }
a { color: var(--accent); }
a:hover { color: var(--accent-press); }
ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
strong { font-weight: 600; }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: 10px 13px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--text-soft); white-space: nowrap; }

.callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.callout strong { color: var(--accent); }
.placeholder { background: var(--warn-bg); border: 1px dashed var(--warn-border); border-radius: 6px;
  padding: 1px 7px; font-size: 0.92em; }

footer.doc { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted);
  font-size: 14px; }
footer.doc a { color: var(--accent); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 24px 16px 72px; }
  h1 { font-size: 25px; }
  h2.section { font-size: 19px; }
  nav.toc ol { columns: 1; }
}

@media print {
  nav.toc, .summary { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
