/* NutaChat legal site. Colours: Nocturne (packages/tokens/tokens.json).
   No external fonts, no scripts, no trackers. */
:root {
  color-scheme: light dark;
  --bg: #e4e7f5;
  --surface: #f3f5fe;
  --text: #292b31;
  --muted: rgb(41 43 49 / 0.7);
  --divider: rgb(41 43 49 / 0.16);
  --accent: #5d5294;          /* accent.700: AA contrast on the light bg */
  --accent-soft: rgb(121 108 191 / 0.12);
  --warn-bg: rgb(217 168 107 / 0.2);
  --warn-border: #d9a86b;
  --radius: 14px;
  --measure: 46rem;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161826;
    --surface: #232532;
    --text: #e9e9ed;
    --muted: rgb(233 233 237 / 0.7);
    --divider: rgb(233 233 237 / 0.16);
    --accent: #b5abfc;        /* accent.400: AA contrast on the dark bg */
    --accent-soft: rgb(145 132 217 / 0.16);
    --warn-bg: rgb(217 168 107 / 0.16);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.site-header, .site-footer, main { padding-left: 16px; padding-right: 16px; }
.site-header { border-bottom: 1px solid var(--divider); }
.bar {
  max-width: var(--measure); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--bg); font-weight: 500; font-size: 0.95rem;
}
.lang { display: flex; gap: 4px; font-size: 0.9rem; }
.lang a { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a:hover { background: var(--accent-soft); color: var(--text); }
.lang a[aria-current] { background: var(--accent-soft); color: var(--text); }

main { max-width: var(--measure); margin: 0 auto; padding-top: 28px; padding-bottom: 48px; }
h1, h2, h3 { font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.85rem; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 40px 0 10px; padding-top: 16px; border-top: 1px solid var(--divider); }
h3 { font-size: 1.05rem; margin: 24px 0 6px; }
p, ul, ol, dl { margin: 0 0 14px; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }

.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9rem; color: var(--muted); margin: 0 0 20px; padding: 0; list-style: none; }
.meta li { margin: 0; }

.card, .toc, .note { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 18px; }
.toc ol { margin: 6px 0 0; }
.toc li { margin-bottom: 2px; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 28px; } }
.note { border-left: 4px solid var(--accent); }
.caps { text-transform: uppercase; font-size: 0.93rem; letter-spacing: 0.01em; }

.docs { list-style: none; padding: 0; display: grid; gap: 10px; }
.docs li { margin: 0; }
.docs a { display: block; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); }
.docs a:hover { background: var(--accent-soft); }
.docs span { display: block; color: var(--muted); font-size: 0.9rem; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 150px; min-height: 48px; padding: 6px 14px;
  border: 1px solid var(--divider); border-radius: 10px;
  background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.8rem; line-height: 1.25;
}
.badge b { font-size: 1rem; font-weight: 500; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--divider); }
th { font-weight: 500; background: var(--surface); }


.site-footer { border-top: 1px solid var(--divider); padding-top: 20px; padding-bottom: 36px; font-size: 0.9rem; color: var(--muted); }
.site-footer .bar { display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0 0 6px; }

@media print {
  .lang, .site-footer nav, .skip { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
