/* minumeeting legal pages (M-6-1) — one stylesheet, system fonts, no external request.
   Pages are generated by scripts/legal/build.mjs; this file is written by hand. */
:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --card: #ffffff;
  --fg: #0b1220;
  --muted: #4b5563;
  --line: #dfe3ea;
  --accent: #0b7d72;
  --accent-strong: #16a34a;
  --mark: #fff3bf;
  --mark-line: #e0b400;
  --note: #ecfdf5;
  --note-line: #34d399;
  --draft: #fff7e6;
  --draft-line: #f59e0b;
  --code: #eef1f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --card: #131318;
    --fg: #e8eaee;
    --muted: #a3a9b5;
    --line: #2a2d36;
    --accent: #34d3c2;
    --accent-strong: #4ade80;
    --mark: #3d3200;
    --mark-line: #b38f00;
    --note: #0d2a22;
    --note-line: #10b981;
    --draft: #2b1d03;
    --draft-line: #b7791f;
    --code: #1d1f27;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  overflow-wrap: break-word;
}

[lang="ar"] body, body:lang(ar) { line-height: 1.85; }

.wrap {
  display: block;
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 16px;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -48px;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2;
}
.skip:focus { top: 8px; }

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
header.site .wrap {
  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(--fg);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand img { border-radius: 7px; }
.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  text-decoration: none;
  font-size: 0.95rem;
}

.draft {
  margin: 0;
  background: var(--draft);
  border-bottom: 1px solid var(--draft-line);
  font-size: 0.92rem;
  padding-block: 10px;
}

main.wrap { padding-block: 24px 48px; }

article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
}
@media (min-width: 720px) { article { padding: 36px 40px; } }

h1 { font-size: 1.85rem; line-height: 1.3; margin: 0 0 8px; }
h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 2.2em 0 0.6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
h3 { font-size: 1.08rem; margin: 1.6em 0 0.4em; scroll-margin-top: 16px; }
h4 { font-size: 1rem; margin: 1.3em 0 0.3em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
li { margin-bottom: 0.35em; }
li > ul, li > ol { margin-top: 0.35em; margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
strong { font-weight: 650; }

.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4em; }

.toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px 4px;
  margin-bottom: 1.6em;
  font-size: 0.95rem;
}
.toc p { font-weight: 650; margin-bottom: 0.4em; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; }

blockquote {
  margin: 0 0 1.2em;
  padding: 12px 16px;
  background: var(--note);
  border-inline-start: 4px solid var(--note-line);
  border-radius: 8px;
}
blockquote > :last-child { margin-bottom: 0; }

mark.pending {
  background: var(--mark);
  color: inherit;
  border: 1px dashed var(--mark-line);
  border-radius: 4px;
  padding: 0 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 1em;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre code { background: none; padding: 0; font-size: inherit; }
pre, code { direction: ltr; unicode-bidi: isolate; text-align: start; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: start; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--code); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
/* Phones: each row becomes a small card with the column name above each value — no sideways scrolling. */
@media (max-width: 560px) {
  .table-wrap { overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td { padding: 3px 0; border: 0; }
  td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
  }
  td:first-child { font-weight: 650; }
  td:first-child::before { display: none; }
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 0 0 0.8em;
}
details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 0.6em; }

footer.site { color: var(--muted); font-size: 0.9rem; padding-block: 0 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
footer.site ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }

main.index section { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 8px; margin-bottom: 16px; }
main.index h2 { border-top: 0; padding-top: 0; margin-top: 1em; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  header.site, footer.site nav, .skip, .toc { display: none; }
  article { border: 0; padding: 0; }
  a { color: #000; }
  details { border: 0; padding: 0; }
}
