/* The legal pages (/privacy, /terms, /accessibility) wear the app's look: the porcelain dashboard locked at V21 (BRAND.md, Visual identity).
   Tokens, room and keys follow the platform's packages/dashboard/src/styles/porcelain.css; keep them in step.
   Reading content stays flat ink on the room; depth marks only what you can press. Baloo 2 ranks by weight:
   800 names, 700 keys and labels, 600 reading text. Light only. */

@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/baloo2-600.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo2-700.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo2-800.woff2") format("woff2"); }

:root {
  --voice: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --brand: #e0263f;
  --ink: #13213d;
  --title: #111d36;
  --body: #364461;
  --quiet: #56637c;
  --rule: rgba(54, 68, 97, .16);
  --link: #1a4bb8;
  --emboss: 0 1px 0 rgba(255, 255, 255, .92);
  --room: #edf1f6;
  --key-pill: image-set(url("porcelain/key-pill@1x.webp") 1x, url("porcelain/key-pill@2x.webp") 2x);
  --key-drop: drop-shadow(0 1px 1px rgba(26, 40, 72, .1)) drop-shadow(0 4px 7px rgba(40, 66, 120, .14));
  --key-drop-up: drop-shadow(0 2px 2px rgba(26, 40, 72, .1)) drop-shadow(0 8px 11px rgba(40, 66, 120, .18));
  --key-drop-down: drop-shadow(0 .5px .5px rgba(26, 40, 72, .16));
  --tap: 44px;
  color-scheme: light;
}
/* Firefox misdraws an image-set() border image on a dense screen; the @1x key's pixels match its cuts. */
@supports (-moz-appearance: none) { @media (min-resolution: 1.5dppx) { :root { --key-pill: url("porcelain/key-pill@1x.webp"); } } }

html { background: var(--room); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--voice); font-weight: 600; color: var(--body); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

/* the room: a cool white lit from the upper left, one slow glow and two soft streaks; blue graphite after dark */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background-color: var(--room);
  background-image:
    radial-gradient(1300px 820px at 22% -16%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(900px 520px at 86% 104%, rgba(190, 210, 234, .5) 0%, rgba(190, 210, 234, 0) 70%),
    linear-gradient(180deg, #f6f8fa 0%, #eef1f5 52%, #e7ebf1 100%); }
.scene > i { position: absolute; will-change: transform, opacity; }
.scene .glow { width: 1100px; height: 1100px; right: -380px; top: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 216, 236, .36), rgba(200, 216, 236, 0)); animation: drift 56s ease-in-out infinite alternate; }
.scene .streak { right: -6%; bottom: 10%; width: 72%; height: 160px; transform: rotate(-11deg); border-radius: 50%; filter: blur(18px);
  background: linear-gradient(90deg, rgba(176, 200, 230, 0) 0%, rgba(176, 200, 230, .3) 55%, rgba(255, 255, 255, .7) 82%, rgba(176, 200, 230, 0) 100%); }
.scene .streak + .streak { bottom: 4%; height: 70px; width: 58%; opacity: .7; transform: rotate(-8deg); }
@keyframes drift { to { transform: translate(-150px, 120px) scale(.92); } }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 28px 56px; }
.logotype { display: inline-block; padding-top: 6px; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.01em; color: var(--brand); text-shadow: var(--emboss); text-decoration: none; }

/* the document: flat ink on the room */
.doc { font-size: 1.0625rem; line-height: 1.6; }
.doc h1 { margin: 56px 0 12px; font-size: 3rem; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; color: var(--title); text-shadow: var(--emboss); text-wrap: balance; }
.doc h2 { margin: 56px 0 10px; font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--title); text-shadow: var(--emboss); scroll-margin-top: 24px; }
.doc h3 { margin: 30px 0 8px; font-size: 1.1875rem; font-weight: 800; line-height: 1.2; color: var(--ink); text-shadow: var(--emboss); scroll-margin-top: 24px; }
.doc h2 + h3 { margin-top: 16px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 8px; padding-left: 2px; }
.doc li::marker { color: var(--quiet); }
.doc strong { font-weight: 800; color: var(--ink); }
.doc a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a[href^="tel:"] { white-space: nowrap; }
.doc .meta { font-size: .9375rem; font-weight: 700; color: var(--quiet); }
.doc .meta strong { font-weight: 700; color: inherit; }

/* the page's jump list: porcelain keys, nine-sliced to their label; hover lifts, pressing seats (the shadow swaps
   without a transition: WebKit crashed on animated filters) */
.jump { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 22px 0 8px; }
.key { --h: 40px; position: relative; isolation: isolate; display: inline-flex; align-items: center; height: var(--tap); padding: 0 18px;
  font-size: .96875rem; font-weight: 700; line-height: 1; color: var(--ink); text-shadow: var(--emboss); text-decoration: none; white-space: nowrap; transition: transform .14s ease; }
.doc .key { color: var(--ink); text-decoration: none; }
.key::before { content: ""; position: absolute; z-index: -1; inset: calc((var(--tap) - var(--h)) / 2) 0; border: 0 solid transparent; pointer-events: none;
  border-image: var(--key-pill) 33 34 fill / calc(var(--h) * .825) calc(var(--h) * .85) / calc(var(--h) * .35) stretch; filter: var(--key-drop); }
.key:hover { transform: translateY(-1px); }
.key:hover::before { filter: var(--key-drop-up); }
.key:active { transform: translateY(1px); }
.key:active::before { filter: brightness(.97) var(--key-drop-down); }

/* tables: a label column and its answer, ruled with hairlines; on a phone each row stacks */
.doc table { width: 100%; margin: 6px 0 20px; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.doc thead th { padding: 0 16px 8px 0; font-size: .875rem; font-weight: 700; color: var(--quiet); text-align: left; border-bottom: 1.5px solid var(--rule); }
.doc tbody th, .doc tbody td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.doc tbody th { width: 34%; font-weight: 800; color: var(--ink); }
.doc tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 620px) {
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc table, .doc tbody, .doc tr, .doc tbody th, .doc tbody td { display: block; width: auto; }
  .doc tbody tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .doc tbody tr:last-child { border-bottom: 0; }
  .doc tbody th, .doc tbody td { padding: 0; border: 0; }
  .doc tbody th { margin-bottom: 2px; }
}

.foot { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .9375rem; font-weight: 700; color: var(--quiet); }
.foot a { color: var(--quiet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a[aria-current] { color: var(--ink); text-decoration: none; }

@media (max-width: 519px) {
  .wrap { padding: 18px 18px 40px; }
  .logotype { font-size: 1.75rem; }
  .doc { font-size: 1rem; }
  .doc h1 { margin-top: 36px; font-size: 2.25rem; }
  .doc h2 { margin-top: 44px; font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scene > i { animation: none; }
  .key, .key::before { transition: none; }
}

