/* Unbubble public legal pages: Terms of Service and Privacy Notice.
   Self-contained: no web fonts, scripts or external requests. Same azure /
   egg-yolk / grey / purple tokens as admin.css. Text pairs meet WCAG AA
   (>= 4.5:1); focus outlines meet 3:1. */
:root {
  --azure-50: #eef5fd;
  --azure-600: #0b5cad;
  --azure-700: #094b8e;
  --azure-900: #0a2540;
  --yolk-100: #fff5d1;
  --yolk-400: #f7c948;
  --yolk-500: #f0b429;
  --yolk-900: #5c4100;
  --grey-0: #ffffff;
  --grey-50: #f5f7fa;
  --grey-300: #cbd2d9;
  --grey-700: #52606d;
  --grey-900: #1f2933;
  --purple-600: #6b3fa0;
  --line: var(--grey-300);

  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--grey-900);
  background: var(--grey-50);
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0 auto;
  max-width: 960px;
  padding: 24px;
  font-size: 1.0625rem;
}
a {
  color: var(--azure-700);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--azure-900);
}
:focus-visible {
  outline: 3px solid var(--purple-600);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 24px;
  top: 4px;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--grey-0);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  letter-spacing: 0.2em;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--azure-900);
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yolk-400);
  box-shadow:
    inset 0 0 0 4px var(--grey-0),
    0 0 0 2px var(--azure-600);
}
.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

main {
  padding: 8px 0 32px;
}
main:focus {
  outline: none;
}
.legal {
  max-width: 70ch;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
  color: var(--azure-900);
  overflow-wrap: anywhere;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--yolk-500);
  border-radius: 8px;
  background: var(--yolk-100);
  color: var(--yolk-900);
}
.legal-meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  min-width: 0;
}
.legal-meta dt {
  font-weight: 650;
}
.legal-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
/* The document is the server's escaped plaintext: its line breaks and
   paragraphs are kept as written, and long words wrap on narrow screens. */
.legal-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--grey-700);
}
footer p {
  margin: 8px 0 0;
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }
  .skip:focus {
    left: 16px;
  }
}
@media print {
  .skip,
  .site-header nav,
  footer nav {
    display: none;
  }
  :root,
  body {
    background: #fff;
  }
  body {
    max-width: none;
    padding: 0;
  }
  a {
    color: inherit;
  }
}
