/* Nex-XL FAQ and legal pages: their Christmas colours. The page and its header are cream, links and accents Christmas
   green, the current language's pill Christmas red, and the footer pine under the snowdrift, with the white logo kept.
   No snow, tree or ornaments: pages people read stay calm.
   - It applies only while js/season.js has put the class xmas on <html>, and only on a screen: a printed page is
     today's page.
   - The palette's tokens and the pieces every page shares (greeting bar, hat, lights, snowdrift) are in css/xmas.css.
     style.css and legal.css already read --paper, --ink, --teal and --line; here are the colours they write out. Every
     token only css/xmas.css sets is read with a fallback, so this stylesheet stands on its own if that one does not
     arrive.
   - It shows no decoration of its own: css/xmas.css shows the shared pieces, and here the drift only takes the
     footer's colours. */
@media screen {
  /* The header is cream, as on the homepage. It does not stick: the lights that hang from it lie over the space above
     the page's first line, and scroll away with it. */
  html.xmas .legal-hdr { background: rgba(var(--xmas-header, 255, 255, 255), .96); }
  html.xmas .legal-nav a:is(:hover, [aria-current="page"]) { border-bottom-color: var(--teal); }

  /* The language pills: the others take a green edge under the pointer; the current one is a Christmas-red button with
     a gold hairline. */
  html.xmas .legal-lang a:hover { border-color: var(--teal); }
  html.xmas .legal-lang a[aria-current] { background: var(--xmas-red, #b3202c); border-color: var(--xmas-red, #b3202c); color: #fff; box-shadow: inset 0 0 0 1px rgba(246, 217, 141, .5); }

  /* Links and accents in Christmas green. The privacy policy's table of contents keeps its hover. */
  html.xmas :is(.legal a, .legal-kicker) { color: var(--teal); }
  html.xmas .legal-toc a:hover { color: var(--ink); }
  html.xmas .faq-page summary::after { color: var(--teal); }
  html.xmas .faq-page summary:focus-visible { outline-color: var(--teal); }
  html.xmas .legal-note { border-left-color: var(--teal); }

  /* The footer is pine, with the snowdrift on its top edge: as on the homepage, the drift's front and the footer are
     one colour, so there is no seam, and here the snow is the layer behind. Its small print and links are pale green,
     gold under the pointer; its focus rings are gold. */
  html.xmas .xmas-drift-back { fill: #fff; }
  html.xmas .xmas-drift-front { fill: var(--xmas-pine, #0f3d31); }
  html.xmas .foot { background: var(--xmas-pine, #0f3d31); border-top-color: transparent; }
  html.xmas :is(.foot-cr, .foot-links a) { color: var(--xmas-soft, #d3e2d9); }
  html.xmas .foot-links a:hover { color: var(--xmas-gold, #f6d98d); }
  html.xmas .foot :focus-visible { outline-color: var(--xmas-gold, #f6d98d); }
}
