/* EnemoAi legal pages: the same design tokens as the app (public/index.html). No web fonts or third-party
   requests: the serif falls back to the system's book face. */
:root {
  --bg: #e8eff8; --panel: #dee8f4; --line: #e3e6ee; --fg: #050817; --muted: #5b6070; --faint: #9aa0ad;
  --blue: #0043f9; --blue-soft: #edf2ff; --amber: #8a4b00; --amber-bg: #fff6e8; --amber-line: #f3d9ad;
  --sans: system-ui, -apple-system, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
button, input, select, textarea { font-family: inherit; }
body { font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; font-size: 16px; }
a { color: var(--blue); text-underline-offset: 2px; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.top .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); }
.top .brand img { height: 17px; width: auto; display: block; }
.top .brand img.mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.top nav { display: flex; gap: 14px; font-size: .9rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--blue); }
.crumbs { font-size: .82rem; color: var(--muted); margin: 26px 0 4px; }
.crumbs a { color: var(--muted); }
h1 { font-weight: 600; font-size: 2.2rem; line-height: 1.15; margin: 4px 0 6px; letter-spacing: -.01em; }
.meta { color: var(--muted); font-size: .88rem; margin: 0 0 22px; }
.meta span + span::before { content: " · "; }
.lead { font-size: 1.15rem; line-height: 1.5; margin: 0 0 20px; }
.summary { background: var(--blue-soft); border: 1px solid #d6e1ff; border-radius: 14px; padding: 16px 20px; margin: 0 0 22px; }
.summary h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: var(--blue); margin: 0 0 6px; }
.summary ul { margin: 6px 0 8px; padding-left: 20px; }
.summary li { margin: 4px 0; }
.summary .fine { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.notice { background: var(--amber-bg); border: 1px solid var(--amber-line); color: #3d2600; border-radius: 12px; padding: 12px 16px; margin: 0 0 22px; font-size: .95rem; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin: 0 0 26px; font-size: .9rem; }
.toc summary { cursor: pointer; font-weight: 650; }
.toc ol { margin: 8px 0 2px; padding-left: 22px; columns: 2 260px; column-gap: 28px; }
.toc li { margin: 2px 0; break-inside: avoid; }
section { margin: 0 0 8px; scroll-margin-top: 16px; }
h2 { font-weight: 600; font-size: 1.45rem; line-height: 1.25; margin: 34px 0 10px; }
h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 6px; }
p, li { overflow-wrap: anywhere; }
.cl { font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
dfn { font-style: normal; font-weight: 700; }
ul.plain { list-style: none; padding-left: 0; }
ol.alpha { list-style: lower-alpha; }
ol.roman { list-style: lower-roman; }
.table-wrap { overflow-x: auto; margin: 10px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--panel); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.caps { text-transform: uppercase; font-size: .92rem; letter-spacing: .01em; }
.history { font-size: .9rem; }
.docs { list-style: none; padding: 0; margin: 10px 0 24px; display: grid; gap: 10px; }
.docs li a { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--fg); background: #fff; }
.docs li a:hover { border-color: var(--blue); }
.docs .t { font-size: 1.15rem; }
.docs .d { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.docs .v { display: block; color: var(--faint); font-size: .78rem; margin-top: 4px; }
.foot { margin: 48px 0 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.lockup { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 10px; }
.lockup img { height: 15px; width: auto; }
.lockup .l2 { font-size: .76rem; }
.lockup .l3 { font-size: .85rem; }
.foot nav { display: flex; gap: 6px 14px; justify-content: center; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--blue); }
@media (max-width: 560px) { h1 { font-size: 1.8rem; } h2 { font-size: 1.28rem; } .top nav { gap: 10px; } }
@media print {
  body { font-size: 11pt; line-height: 1.45; color: #000; background: #fff; }
  .top nav, .toc, .foot nav { display: none; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .summary, .notice { background: #fff; border: 1px solid #999; }
  .table-wrap { overflow: visible; border: 0; }
  table { min-width: 0; }
  h2, h3 { break-after: avoid; }
  section, tr, li { break-inside: avoid-page; }
}
.foot .corp { margin: 10px 0 0; font-size: .8rem; }

/* Brand art has a white background baked in: blend it into the page tint (white becomes the background color). */
img[src*="/brand/enemoai-"] { mix-blend-mode: multiply; }
/* refine loop 2026-11-01: brand art blends into the tint, 44px targets, readable version lines, balanced headings */
img[src*="/brand/enemoai-"] { mix-blend-mode: multiply; }
.top .brand, .top nav a { min-height: 44px; display: inline-flex; align-items: center; }
.top nav a { padding: 0 4px; }
.toc summary { min-height: 44px; display: flex; align-items: center; }
.docs .v { color: var(--muted); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* The language notice (decision #52; written by docs/legal-src/legal_pages.py): English governs, said in every language. */
.governs { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; margin: 22px 0 0; font-size: .88rem; color: var(--muted); }
.governs p { margin: 0; }
.governs .local { color: var(--fg); font-weight: 600; margin: 0 0 4px; }
.governs details { margin-top: 6px; }
.governs summary { cursor: pointer; color: var(--muted); }
.governs ul { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 4px; }
.governs li[dir="rtl"] { text-align: right; }
.governs .ln { font-weight: 650; color: var(--fg); }
.governs .ln::after { content: ":"; }
.governs + .crumbs { margin-top: 14px; }
/* #121: the index heading clears the language notice; tiles, links and targets match the rest of the site. No legal wording is touched. */
.governs + h1 { margin-top: 28px; }
.governs summary { min-height: 28px; }
.toc summary { justify-content: space-between; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--muted); }
.toc[open] summary::after { content: "−"; }
.docs .t { font-weight: 600; font-size: 1.02rem; }
h3 { font-weight: 600; }
.crumbs a { display: inline-block; padding-block: 4px; }
.toc li a { display: inline-block; padding-block: 4px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 4px; }
@media (max-width: 560px) { h1 { font-size: 1.6rem; } }
@media print { .governs details { display: none; } }
.table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
