/* Terms, Privacy and the 404 page in the v2 look. The shared palette, components, scroll reveals,
   scrollspy and reading progress live in site-v2.css and motion-v2.js; this file only lays out
   these pages. Nothing here hides copy: decoration alone animates in, and only with motion. */

:root { --policy-on-grad: #ffffff; }
:root[data-theme="dark"] { --policy-on-grad: #12142a; }

/* ==========================================================================
   Terms and Privacy
   ========================================================================== */

.policy {
  width: min(1020px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header) + 52px) 0 clamp(48px, 6vw, 72px);
}
.policy :is(h1, h2, h3) { color: var(--v2-text); font-family: var(--v2-display); text-wrap: balance; }

/* Hero: eyebrow, display title, one line of context, the two documents and the date. */
.policy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.policy-hero-copy { display: grid; justify-items: start; gap: 18px; min-width: 0; }
.policy-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}
.policy-lede { max-width: 48ch; margin: 0; color: var(--v2-soft); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; }
.policy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }

.policy-docs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--v2-line);
  border-radius: 15px;
  background: var(--v2-glass);
  box-shadow: var(--v2-shadow);
}
.policy-docs a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--v2-dur-fast) ease, background-color var(--v2-dur-fast) ease;
}
.policy-docs a:hover { color: var(--v2-text); background: var(--v2-elev-2); }
.policy-docs a[aria-current="page"], .policy-docs a[aria-current="page"]:hover { color: var(--v2-btn-text); background: transparent; }
.policy-docs-pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--v2-btn-bg);
  box-shadow: 0 10px 24px -12px rgba(106, 89, 227, .85);
}
.policy-date { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--v2-muted); font-size: 14px; line-height: 1.4; }
.policy-date svg { flex: 0 0 auto; color: var(--v2-violet); }
.policy-date strong { color: var(--v2-soft); font-weight: 700; }

/* Decorative stacked pages beside the title (hidden from assistive tech, wide screens only). */
.policy-art { position: relative; width: 300px; height: 270px; perspective: 900px; }
.policy-art-tilt {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--v2-ease-out);
}
.policy-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 214px;
  margin: -107px 0 0 -84px;
  border: 1px solid var(--v2-line-2);
  border-radius: 20px;
  background: var(--v2-elev);
  box-shadow: var(--v2-shadow-lg);
}
.policy-sheet-back { background: var(--v2-grad-glow), var(--v2-elev-2); transform: translate3d(-62px, 14px, 0) rotate(-12deg); }
.policy-sheet-mid { background: var(--v2-elev-2); transform: translate3d(58px, -8px, 0) rotate(9deg); }
.policy-sheet-front { display: grid; align-content: start; gap: 12px; padding: 28px 22px; transform: rotate(-2deg); }
.policy-sheet-front i { display: block; height: 7px; border-radius: 4px; background: var(--v2-line-2); transform-origin: 0 50%; }
.policy-sheet-front i:nth-child(1) { width: 58%; height: 11px; margin-bottom: 4px; background: var(--v2-grad); }
.policy-sheet-front i:nth-child(2) { width: 94%; }
.policy-sheet-front i:nth-child(3) { width: 84%; }
.policy-sheet-front i:nth-child(4) { width: 90%; }
.policy-sheet-front i:nth-child(5) { width: 72%; }
.policy-sheet-front i:nth-child(6) { width: 48%; }
.policy-seal {
  position: absolute;
  right: -22px;
  bottom: -18px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: var(--policy-on-grad);
  background: var(--v2-grad);
  box-shadow: 0 16px 30px -12px rgba(220, 58, 134, .75), inset 0 0 0 3px rgba(255, 255, 255, .32);
  transform: rotate(-10deg);
}
.policy-seal svg { width: 30px; height: 30px; }
.policy-seal-text { font-family: var(--v2-display); font-size: 32px; font-weight: 800; line-height: 1; }

/* Rail + reading column. */
.policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 4.4vw, 60px);
}
.policy-body { display: grid; gap: 16px; min-width: 0; max-width: 720px; }

/* "On this page": a sticky rail; motion-v2.js marks the section in view (aria-current) and
   legal.js slides the marker along the track to it. */
.policy-rail {
  position: sticky;
  top: calc(var(--header) + 22px);
  z-index: 2;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - var(--header) - 44px);
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: 18px 12px 14px;
  border: 1px solid var(--v2-line);
  border-radius: 22px;
  background: var(--v2-glass);
  box-shadow: var(--v2-shadow);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  scrollbar-width: thin;
}
.policy-rail-title { margin: 0 0 0 10px; color: var(--v2-muted); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.policy-rail-track { position: relative; padding-left: 18px; }
.policy-rail-track::before, .policy-rail-fill {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
}
.policy-rail-track::before { background: var(--v2-line-2); }
.policy-rail-fill {
  background: linear-gradient(180deg, var(--v2-pink), var(--v2-violet));
  transform: scaleY(var(--policy-fill, 0));
  transform-origin: 50% 0;
  transition: transform .6s var(--v2-ease-out);
}
.policy-rail-dot {
  position: absolute;
  left: 3px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--v2-pink);
  box-shadow: 0 0 0 4px rgba(192, 38, 111, .16), 0 0 14px rgba(192, 38, 111, .55);
  opacity: 0;
  transform: translate3d(0, var(--policy-dot, 0px), 0);
  transition: transform .55s var(--v2-spring), opacity .3s ease;
}
:root[data-theme="dark"] .policy-rail-dot { box-shadow: 0 0 0 4px rgba(255, 140, 200, .16), 0 0 14px rgba(255, 140, 200, .6); }
.policy-rail[data-policy-current] .policy-rail-dot { opacity: 1; }
.policy-rail-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.policy-rail-list a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--v2-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--v2-dur-fast) ease, background-color var(--v2-dur-fast) ease, transform .3s var(--v2-ease-out);
}
.policy-rail-list a:hover { color: var(--v2-text); background: var(--v2-elev-2); }
.policy-rail-list li:has(~ li > a[aria-current]) a { color: var(--v2-soft); }
.policy-rail-list a[aria-current] { color: var(--v2-text); background: var(--v2-elev-2); font-weight: 700; }
.policy-rail-num { flex: 0 0 22px; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }
.policy-rail-label { display: inline-block; transition: transform .35s var(--v2-ease-out); }
.policy-rail-list a[aria-current] .policy-rail-label { transform: translateX(3px); }
.policy-rail-icon { display: inline-grid; align-self: center; }

/* Section cards. */
.policy-section, .policy-summary, .policy-contact {
  position: relative;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  background: var(--v2-elev);
  box-shadow: var(--v2-shadow);
}
.policy-section { padding: clamp(24px, 3.6vw, 44px); scroll-margin-top: 8px; }
/* A gradient edge marks the section being read (and is always on for the summary). */
.policy-section::before, .policy-summary::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--v2-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--v2-ease-out);
}
.policy-section.is-current::before { opacity: .6; }
.policy-summary::before { opacity: .55; }

.policy-section h2 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.policy-heading { min-width: 0; padding-top: 2px; }
/* Number chips: lit (gradient) for the section in view; soft for the rest once legal.js runs. */
.policy-num {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 38px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--v2-elev-2);
  box-shadow: inset 0 0 0 1px var(--v2-line);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.policy-num::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--v2-grad);
  box-shadow: 0 10px 22px -12px rgba(220, 58, 134, .9);
  transition: opacity .5s var(--v2-ease-out);
}
.policy-num > span {
  color: var(--policy-on-grad);
  background: var(--v2-grad);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color .5s var(--v2-ease-out);
}
.policy[data-policy-live] .policy-section:not(.is-current) .policy-num::before { opacity: 0; }
.policy[data-policy-live] .policy-section:not(.is-current) .policy-num > span { color: transparent; }
.policy-section.is-current .policy-num { animation: policy-pop .6s var(--v2-spring); }
@keyframes policy-pop { 40% { transform: scale(1.12) rotate(-4deg); } }

.policy :is(.policy-section, .policy-contact) :is(p, li) { color: var(--v2-soft); font-size: 16px; line-height: 1.75; }
.policy-section p { max-width: 62ch; margin: 0; }
.policy-section :is(p, ul, .policy-data) + :is(p, ul) { margin-top: 14px; }
.policy-section ul { display: grid; gap: 9px; max-width: 62ch; margin: 0; padding-left: 1.3em; }
.policy-section li { padding-left: 4px; }
.policy-section li::marker { color: var(--v2-pink); }
.policy :is(.policy-section, .policy-contact) strong { color: var(--v2-text); font-weight: 700; }
.policy :is(.policy-section, .policy-summary, .policy-contact) a {
  color: var(--v2-text);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--v2-violet);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--v2-dur-fast) ease, color var(--v2-dur-fast) ease;
}
.policy :is(.policy-section, .policy-summary, .policy-contact) a:hover { color: var(--v2-pink); text-decoration-color: var(--v2-pink); }
:root .policy code {
  padding: .1em .45em;
  border: 1px solid var(--v2-line-2);
  border-radius: 7px;
  color: var(--v2-text);
  background: var(--v2-elev-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

/* Privacy: what Suicaptor receives, as balanced tiles. */
.policy-data { columns: 2 280px; column-gap: 14px; margin-top: 22px; }
.policy-data article {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 20px 22px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-md);
  background: var(--v2-elev-2);
}
.policy-data h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.policy-data h3::before { content: ""; flex: 0 0 9px; height: 9px; border-radius: 3px; background: var(--policy-tile, var(--v2-violet)); box-shadow: 0 0 10px var(--policy-tile, var(--v2-violet)); }
.policy-data article:nth-child(4n + 1) { --policy-tile: var(--v2-pink); }
.policy-data article:nth-child(4n + 2) { --policy-tile: var(--v2-violet); }
.policy-data article:nth-child(4n + 3) { --policy-tile: var(--v2-cyan); }
.policy-data article:nth-child(4n) { --policy-tile: var(--v2-gold); }
.policy .policy-data p { max-width: none; font-size: 14.5px; line-height: 1.65; }

/* Privacy summary and contact: the two cards people look for first. */
.policy-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--v2-grad-glow), var(--v2-elev);
}
.policy-summary h2 { margin: 4px 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.policy-summary p { max-width: 64ch; margin: 0; color: var(--v2-soft); font-size: 16.5px; line-height: 1.7; }
.policy-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--policy-on-grad);
  background: var(--v2-grad);
  box-shadow: 0 12px 26px -14px rgba(220, 58, 134, .9);
}

.policy-contact { padding: clamp(22px, 3.4vw, 36px); scroll-margin-top: 8px; background: var(--v2-grad-glow), var(--v2-elev); }
.policy-contact > * { position: relative; z-index: 1; }
.policy-contact-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.policy-contact h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.025em; }
.policy-contact-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.policy-contact .policy-contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background: var(--v2-elev);
  line-height: 1.4;
  transition: transform .25s var(--v2-spring), border-color var(--v2-dur-fast) ease;
}
.policy-contact .policy-contact-list li:hover { transform: translateX(3px); border-color: var(--v2-line-2); }
.policy-contact-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; color: var(--v2-violet); background: var(--v2-elev-2); }
.policy-contact .policy-contact-list strong { min-width: 66px; color: var(--v2-muted); font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.policy-contact-list :is(a, code) { min-width: 0; overflow-wrap: anywhere; font-size: 15.5px; }
.policy-contact > p { max-width: 68ch; margin: 18px 0 0; font-size: 15px; }

/* ==========================================================================
   404
   ========================================================================== */

.nf {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  width: min(1100px, 100%);
  min-height: min(100svh, 960px);
  margin: 0 auto;
  padding: calc(var(--header) + 24px) 16px 72px;
  overflow-x: clip;
  text-align: center;
}
/* The chart is sized in em, so it scales with the numerals and stays anchored to them. */
.nf-stage { position: absolute; z-index: -1; left: 50%; bottom: 0; width: 4.4em; transform: translateX(-50%); pointer-events: none; }
.nf-sky { display: block; width: 100%; height: auto; overflow: visible; }
.nf-route { fill: none; stroke: var(--v2-violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.nf-route-lost { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: .035 .05; }
.nf-lost-from { stop-color: var(--v2-violet); stop-opacity: .65; }
.nf-lost-to { stop-color: var(--v2-violet); stop-opacity: 0; }
.nf-stars circle { fill: var(--v2-violet); }
.nf-stars circle:nth-child(3n + 1) { fill: var(--v2-pink); }
.nf-stars circle:nth-child(3n) { fill: var(--v2-gold); }
.nf-dust circle { fill: var(--v2-muted); opacity: .5; }
.nf-star-lost { fill: none; stroke: var(--v2-muted); stroke-width: 1.3; stroke-dasharray: 2 2.4; opacity: .6; }

.nf-eyebrow { margin-top: clamp(18px, 2.4vw, 28px); }
.nf-code {
  position: relative;
  margin: .66em 0 0;
  font-family: var(--v2-display);
  font-size: clamp(116px, 19vw, 228px);
  font-weight: 900;
  line-height: .92;
  perspective: 900px;
}
.nf-digits {
  display: inline-flex;
  align-items: baseline;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--v2-ease-out);
}
.nf-digit {
  display: inline-block;
  padding: 0 .015em;
  color: transparent;
  background: var(--v2-grad);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -.04em;
}
.nf-digits > .nf-digit:first-child { background-position: 0% 50%; }
.nf-zero .nf-digit { background-position: 50% 50%; }
.nf-digits > .nf-digit:last-child { background-position: 100% 50%; }
.nf-zero { position: relative; display: inline-block; margin: 0 -.02em; }
/* A small moon on a tilted ring around the zero. */
.nf-orbit { position: absolute; left: 50%; top: 52%; width: 1.02em; height: .3em; transform: translate(-50%, -50%) rotate(-14deg); pointer-events: none; }
.nf-ring { position: absolute; inset: 0; border: 2px solid rgba(106, 89, 227, .38); border-radius: 50%; }
:root[data-theme="dark"] .nf-ring { border-color: rgba(183, 167, 255, .36); }
.nf-moon-x { position: absolute; left: 50%; top: 100%; width: 0; height: 0; }
.nf-moon {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff 0 18%, #ffd98a 42%, #e8a33a 100%);
  box-shadow: 0 0 18px rgba(245, 190, 90, .75);
}

.nf h1 { margin: 14px 0 0; font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.nf-lede { max-width: 36em; margin: 14px 0 0; color: var(--v2-soft); font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.5; text-wrap: balance; }
.nf-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(900px, 100%); margin-top: clamp(28px, 3.6vw, 42px); text-align: left; }
.nf-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  background: var(--v2-glass);
  box-shadow: var(--v2-shadow);
  transition: transform .3s var(--v2-spring), border-color var(--v2-dur-fast) ease, box-shadow .3s ease;
}
.nf-link:hover { transform: translateY(-3px); border-color: var(--v2-line-2); box-shadow: var(--v2-shadow-lg); }
.nf-link:active { transform: translateY(0) scale(.985); }
.nf-link > span { position: relative; z-index: 1; }
.nf-link-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; color: var(--v2-violet); background: var(--v2-elev-2); }
.nf-link-primary .nf-link-icon { color: var(--policy-on-grad); background: var(--v2-grad); box-shadow: 0 10px 22px -12px rgba(220, 58, 134, .9); }
.nf-link-text { display: grid; gap: 2px; min-width: 0; }
.nf-link-text strong { color: var(--v2-text); font-size: 16px; font-weight: 750; }
.nf-link-text span { color: var(--v2-muted); font-size: 13.5px; line-height: 1.35; }
.nf-link-arrow { margin-left: auto; color: var(--v2-muted); font-weight: 700; transition: transform var(--v2-dur-fast) var(--v2-ease), color var(--v2-dur-fast) ease; }
.nf-link:hover .nf-link-arrow { color: var(--v2-text); transform: translateX(4px); }

/* ==========================================================================
   Motion (only when it is welcome; the resting state above is the finished design)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .policy-sheet-front i { animation: policy-write .7s var(--v2-ease-out) both; }
  .policy-sheet-front i:nth-child(1) { animation-delay: .2s; }
  .policy-sheet-front i:nth-child(2) { animation-delay: .32s; }
  .policy-sheet-front i:nth-child(3) { animation-delay: .42s; }
  .policy-sheet-front i:nth-child(4) { animation-delay: .52s; }
  .policy-sheet-front i:nth-child(5) { animation-delay: .62s; }
  .policy-sheet-front i:nth-child(6) { animation-delay: .72s; }
  .policy-seal { animation: policy-seal .9s var(--v2-spring) .95s both, policy-seal-float 7s ease-in-out 2s infinite; }
  .policy-sheet-back { animation: policy-float-back 10s ease-in-out infinite; }
  .policy-sheet-mid { animation: policy-float-mid 12s ease-in-out infinite; }
  .policy-sheet-front { animation: policy-float-front 9s ease-in-out infinite; }

  .nf-route { stroke-dasharray: 1; animation: nf-draw 1.8s var(--v2-ease-out) .2s both; }
  .nf-stars circle { transform-box: fill-box; transform-origin: center; animation: nf-star-in .6s var(--v2-spring) both, nf-twinkle 3.6s ease-in-out infinite; }
  .nf-stars circle:nth-child(1) { animation-delay: .2s, 1.4s; }
  .nf-stars circle:nth-child(2) { animation-delay: .45s, 2.1s; }
  .nf-stars circle:nth-child(3) { animation-delay: .7s, 1.8s; }
  .nf-stars circle:nth-child(4) { animation-delay: .95s, 2.6s; }
  .nf-stars circle:nth-child(5) { animation-delay: 1.2s, 2.2s; }
  .nf-stars circle:nth-child(6) { animation-delay: 1.45s, 3s; }
  .nf-route-lost { animation: nf-fade-in .8s ease 1.9s both, nf-search 2.6s linear 1.9s infinite; }
  .nf-star-lost { transform-box: fill-box; transform-origin: center; animation: nf-fade-in .8s ease 2.2s both, nf-lost 3.2s ease-in-out 2.2s infinite; }
  .nf-dust circle { animation: nf-twinkle 4.4s ease-in-out infinite; }
  .nf-dust circle:nth-child(2n) { animation-delay: -1.6s; }
  .nf-dust circle:nth-child(3n) { animation-delay: -3s; }

  .nf-digit { animation: nf-bob 6.4s ease-in-out infinite; }
  .nf-zero .nf-digit { animation-delay: -2.1s; }
  .nf-digits > .nf-digit:last-child { animation-delay: -4.2s; }
  .nf-orbit { animation: nf-orbit-tilt 12s ease-in-out infinite; }
  .nf-moon-x { left: 0; top: 50%; animation: nf-orbit-x 3.4s ease-in-out infinite alternate; }
  .nf-moon { animation: nf-orbit-y 3.4s ease-in-out -1.7s infinite alternate; }
}

@keyframes policy-write { from { transform: scaleX(0); } }
@keyframes policy-seal { from { transform: scale(0) rotate(-70deg); } }
@keyframes policy-seal-float { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-6px); } }
@keyframes policy-float-back { 0%, 100% { transform: translate3d(-62px, 14px, 0) rotate(-12deg); } 50% { transform: translate3d(-68px, 6px, 0) rotate(-10deg); } }
@keyframes policy-float-mid { 0%, 100% { transform: translate3d(58px, -8px, 0) rotate(9deg); } 50% { transform: translate3d(62px, -16px, 0) rotate(11deg); } }
@keyframes policy-float-front { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }

@keyframes nf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nf-star-in { from { transform: scale(0); } }
@keyframes nf-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes nf-fade-in { from { opacity: 0; } }
@keyframes nf-search { to { stroke-dashoffset: -.17; } }
@keyframes nf-lost { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .15; transform: scale(.7); } }
@keyframes nf-bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -.04em, 0) rotate(-1.5deg); } }
@keyframes nf-orbit-tilt { 0%, 100% { transform: translate(-50%, -50%) rotate(-14deg); } 50% { transform: translate(-50%, -50%) rotate(-8deg); } }
@keyframes nf-orbit-x { from { transform: translateX(0); } to { transform: translateX(1.02em); } }
@keyframes nf-orbit-y { from { transform: translateY(-.15em) scale(.5); opacity: .45; } to { transform: translateY(.15em) scale(1); opacity: 1; } }

/* Loops rest on hidden tabs and stay off with Save-Data (site.js sets body[data-motion-state]). */
body[data-motion-state="hidden"] :is(.policy-art, .nf) * { animation-play-state: paused !important; }
body[data-motion-state="data-saving"] :is(.policy-art, .nf) * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  :is(.policy, .nf) *, :is(.policy, .nf) *::before, :is(.policy, .nf) *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Tablet and phone
   ========================================================================== */

@media (max-width: 1100px) {
  .policy-art { width: 240px; height: 240px; transform: scale(.86); transform-origin: 100% 50%; }
}
@media (max-width: 980px) {
  .policy-hero { grid-template-columns: minmax(0, 1fr); }
  .policy-art { display: none; }
  /* Block flow keeps the sticky chip bar stuck for the whole document. */
  .policy-layout { display: block; }
  .policy-body { max-width: none; }
  .policy-rail {
    top: 84px;
    z-index: 20;
    display: block;
    max-height: none;
    margin: 0 0 14px;
    padding: 6px;
    overflow: visible;
    border-radius: 17px;
  }
  .policy-rail-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .policy-rail-track { padding: 0; }
  .policy-rail-track::before, .policy-rail-fill, .policy-rail-dot { display: none; }
  .policy-rail-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 26px), transparent);
  }
  .policy-rail-list::-webkit-scrollbar { display: none; }
  .policy-rail-list li { flex: 0 0 auto; }
  .policy-rail-list li:last-child { padding-right: 20px; }
  .policy-rail-list a { padding: 9px 13px; border-radius: 12px; white-space: nowrap; }
  .policy-rail-list a[aria-current] { color: var(--v2-btn-text); background: var(--v2-btn-bg); }
  .policy-rail-list a[aria-current] .policy-rail-label { transform: none; }
  /* The strip scrolls sideways, so keep focus rings inside each chip where they cannot be clipped. */
  .policy-rail-list a:focus-visible { outline-offset: -3px; }
  .policy-rail-num { flex-basis: auto; }
  .policy-section, .policy-contact { scroll-margin-top: 22px; }
  /* Once the chip bar is stuck under the header, a band of page colour hides text sliding
     through the gap between the two bars (browsers without scroll-state queries skip this). */
  .policy-rail { container-type: scroll-state; }
  @container scroll-state(stuck: top) {
    .policy-rail-track::after {
      content: "";
      position: absolute;
      z-index: -1;
      left: -7px;
      right: -7px;
      bottom: calc(100% + 7px);
      height: 120px;
      background: var(--v2-bg);
      pointer-events: none;
    }
  }
}
@media (max-width: 720px) {
  .nf-links { grid-template-columns: minmax(0, 1fr); width: min(440px, 100%); }
  .nf-link { min-height: 70px; }
}
@media (max-width: 620px) {
  .policy { width: calc(100% - 32px); padding-top: calc(var(--header) + 26px); }
  .policy-hero { margin-bottom: 30px; }
  .policy-hero-copy { gap: 16px; }
  .policy-meta { gap: 12px; }
  .policy-docs { width: 100%; }
  .policy-docs a { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
  .policy-rail { top: 74px; }
  .policy-body { gap: 12px; }
  .policy-section { padding: 22px 20px; }
  .policy-section h2 { gap: 12px; margin-bottom: 14px; }
  .policy-num { min-width: 38px; height: 34px; border-radius: 11px; font-size: 15px; }
  .policy :is(.policy-section, .policy-contact) :is(p, li) { font-size: 15.5px; line-height: 1.7; }
  .policy-data article { padding: 18px; }
  .policy-summary { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .policy-summary p { font-size: 15.5px; }
  .policy-badge { width: 42px; height: 42px; border-radius: 13px; }
  .policy-contact { padding: 22px 20px; }
  .nf { padding-top: calc(var(--header) + 20px); }
  .nf h1 { max-width: 12ch; }
}
@media (max-width: 380px) {
  .policy-section, .policy-contact, .policy-summary { padding: 20px 16px; }
  .policy-data article { padding: 16px 14px; }
  .policy-section h2 { gap: 10px; }
}

/* ==========================================================================
   Print: the documents alone, every section visible.
   ========================================================================== */

@media print {
  /* Unrevealed sections must print at full strength at once, not mid-fade. */
  :is(.policy, .nf) [data-v2-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  body:is(.legal-body, .nf-page) { color: #000; background: #fff !important; }
  body:is(.legal-body, .nf-page) :is(.v2-backdrop, .site-header, .site-footer) { display: none !important; }
  .v2-progress, .policy-rail, .policy-art, .policy-docs, .nf-stage { display: none !important; }
  :is(.policy, .nf) :is(*, *::before, *::after) { background: none !important; box-shadow: none !important; text-shadow: none !important; }
  :is(.policy, .nf) :is(h1, h2, h3, p, li, strong, a, code, span, time) { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  .policy { width: auto; padding: 0; }
  .policy-hero { display: block; margin-bottom: 20px; }
  .policy-layout { display: block; }
  :is(.policy-section, .policy-summary, .policy-contact, .policy-data article, .policy-contact-list li, .nf-link, .v2-eyebrow) { border: 1px solid #bbb !important; }
  :is(.policy-section, .policy-summary, .policy-contact) { margin: 0 0 14px; }
  :is(.policy-section, .policy-summary)::before { display: none; }
  .policy h2 { break-after: avoid; }
  :is(.policy-data article, .policy-contact-list li) { break-inside: avoid; }
}
