/* Explicit app choices override the shared blog's system palette. */
:root[data-theme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f4f6fa;
  --text: #181d34;
  --text-secondary: #444654;
  --link: #2b4fe0;
  --hairline: rgb(24 29 52 / 8%);
  --callout: #eaefff;
  --callout-text: #181d34;
  --warning: #ba1a1a;
  --on-link: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #11131c;
  --surface: #282934;
  --text: #e2e1ef;
  --text-secondary: #c5c5d6;
  --link: #b9c3ff;
  --hairline: #444654;
  --callout: #33343f;
  --callout-text: #e2e1ef;
  --warning: #ffb4ab;
  --on-link: #11131c;
}

.legal-contents {
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.legal-list {
  list-style: none;
  padding-left: 0;
}

.legal-list .legal-list {
  margin-top: 0.6em;
  padding-left: 1em;
}

.legal-marker {
  font-weight: 600;
}

#legal-text h2 {
  scroll-margin-top: 1em;
}

@media print {
  :root {
    --page: white;
    --text: black;
    --text-secondary: black;
    --link: black;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 10pt;
  }
  .legal-contents,
  .site-header,
  .site-footer,
  .consent-banner,
  dialog {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  #legal-text a {
    color: black;
  }
  #legal-text h1,
  #legal-text h2 {
    break-after: avoid;
  }
}
