/* Legal pages (terms, privacy, refunds). Same tokens as app.css so they read as part of Munin, but standalone: no SPA, no JS.
   UX2: values on the app's scale (space 4 8 16 24 32 48, type 13 15 17 24 32, radius 6 16) */
:root {
  --page: linear-gradient(135deg, #C7D6EC 0%, #CFE3EA 45%, #D9D6EE 100%);
  --sheet: #FFFFFF; --line: rgba(0, 0, 0, .08);
  --text: rgba(0, 0, 0, .86); --text-2: rgba(0, 0, 0, .56); --accent: #0064E1; --brand-ink: #0B0D10;
  --todo: #FFF1C2; --todo-ink: #6B4E00;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: linear-gradient(135deg, #1B2333 0%, #17262B 45%, #221F33 100%);
    --sheet: #1A1A1D; --line: rgba(255, 255, 255, .09);
    --text: rgba(255, 255, 255, .9); --text-2: rgba(255, 255, 255, .58); --accent: #4C9BFF; --brand-ink: rgba(255, 255, 255, .92);
    --todo: #4A3A0A; --todo-ink: #FFE08A; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); background-attachment: fixed; color: var(--text); font: 15px/1.7 var(--font); -webkit-font-smoothing: antialiased; padding: 32px 16px 64px; }
.sheet { max-width: 760px; margin: 0 auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 48px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-ink); text-decoration: none; margin-bottom: 32px; }
.brand svg { width: 20px; height: 20px; }
h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 4px; }
.meta { color: var(--text-2); font-size: 13px; margin: 0 0 32px; }
h2 { font-size: 17px; margin: 32px 0 8px; }
p, li { max-width: 68ch; }
ul { padding-left: 24px; }
li { margin: 4px 0; }
a { color: var(--accent); }
.todo { background: var(--todo); color: var(--todo-ink); padding: 0 4px; border-radius: 6px; }
nav.legal { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
nav.legal a { color: var(--text-2); }
@media (max-width: 600px) { .sheet { padding: 32px 24px; } h1 { font-size: 24px; } }
/* Cookie settings in the footer (ANA1): looks like the links next to it */
.legal .cookie-set{font:inherit;color:var(--text-2);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
body.mn-consent-open{padding-bottom:var(--mn-consent-h,0px)}
/* LEGAL2: the services table in the privacy policy and the component table on the licenses page; scrolls inside its box on a phone */
.table-wrap { overflow-x: auto; margin: 8px 0 16px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
details { margin: 8px 0; }
summary { cursor: pointer; }
pre.license { white-space: pre-wrap; font-size: 12px; line-height: 1.5; color: var(--text-2); max-width: 68ch; }
/* phone: each row becomes a block, the column name goes in front of the cell so nothing hides behind a sideways scroll */
@media (max-width: 600px) {
  table { min-width: 0; }
  thead { display: none; }
  tr, td { display: block; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; }
  td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
}
