/* V22.36.2.4 — public legal pages use the same Arcendium public-shell language. */
html[data-theme="light"] body.legal-body{
  --accent:#00d4a9;
  --accent2:#2563eb;
  --arc-topbar-purple:#8b5cf6;
  --bg:#f6f9fc;
  --bg2:#ffffff;
  --bg3:#eef4f8;
  --border:rgba(15,23,42,.10);
  --border2:rgba(15,23,42,.15);
  --text:#0f172a;
  --text2:#475569;
  --text3:#64748b;
  --red:#e54862;
  background:var(--bg)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] body.legal-body{
  --accent:#00d4a9;
  --accent2:#60a5fa;
  --arc-topbar-purple:#a78bfa;
  --bg:#07101a;
  --bg2:#0b1520;
  --bg3:#111c2a;
  --border:rgba(255,255,255,.10);
  --border2:rgba(255,255,255,.15);
  --text:#f0f4ff;
  --text2:#a8b3c7;
  --text3:#7f8ca3;
  --red:#ff4d6d;
  background:var(--bg)!important;
  color:var(--text)!important;
}

body.legal-body .nav{
  position:sticky;
  top:0;
  z-index:99970;
}

body.legal-body .nav{
  left:0;right:0;height:68px;display:flex;align-items:center;justify-content:space-between;
  padding:0 40px;background:rgba(255,255,255,.88);backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);border-bottom:1px solid var(--border);
}
html[data-theme="dark"] body.legal-body .nav{background:rgba(7,16,26,.88)}
body.legal-body .nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
body.legal-body .nav-logo-img{height:34px;max-width:190px;object-fit:contain}
body.legal-body .nav-links{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
body.legal-body .nav-links a{font-size:14px;font-weight:500;color:var(--text2);text-decoration:none}
body.legal-body .nav-actions{display:flex;gap:14px;align-items:center}
body.legal-body .btn,
body.legal-body .theme-toggle{font-family:Inter,sans-serif;font-size:13px;cursor:pointer;text-decoration:none}
body.legal-body .theme-toggle{display:inline-flex;align-items:center;justify-content:center}
/* The horizontal Arcendium artwork is white.  Legal pages previously forced
   filter:none, which made the mark look white/tinted against the light header.
   Match the rest of the public shell: dark artwork in light mode, original white
   artwork in dark mode.  Apply the same rule to the receipt drawer brand. */
html[data-theme="light"] body.legal-body .nav-logo-img,
html[data-theme="light"] body.legal-body .arc-mobile-menu-brand img{
  filter:brightness(0) saturate(100%) opacity(.94)!important;
}
html[data-theme="dark"] body.legal-body .nav-logo-img,
html[data-theme="dark"] body.legal-body .arc-mobile-menu-brand img{
  filter:none!important;
}
body.legal-body .legal-shell{
  max-width:940px;
  margin:0 auto;
  padding:72px 24px 84px;
}
body.legal-body .legal-kicker{
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  letter-spacing:.16em;
}
body.legal-body .legal-date{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
}
body.legal-body .legal-notice{
  border-radius:0!important;
  background:rgba(0,212,169,.055)!important;
  border:0!important;
  border-top:1px solid rgba(0,212,169,.34)!important;
  border-bottom:1px solid rgba(0,212,169,.24)!important;
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  line-height:1.7;
}
body.legal-body .legal-section{border-bottom:1px dashed var(--border2)!important}
body.legal-body .legal-section h2{color:var(--text)}
body.legal-body .legal-section p{color:var(--text2)}

body.legal-body .legal-actions,
body.legal-body .legal-footer,
body.legal-body .arc-legal-doc-links{
  font-family:'IBM Plex Mono',monospace;
}
body.legal-body .legal-actions{
  gap:18px;
  align-items:center;
}
body.legal-body .legal-btn,
body.legal-body .legal-footer a,
body.legal-body .arc-legal-doc-links a{
  --arc-legal-action-color:var(--accent);
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 1px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--text2)!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:.015em;
  transition:color .18s ease,transform .18s ease!important;
}
body.legal-body .legal-btn:nth-child(2n),
body.legal-body .legal-footer a:nth-child(2n),
body.legal-body .arc-legal-doc-links a:nth-child(2n){--arc-legal-action-color:var(--accent2)}
body.legal-body .legal-footer a:nth-child(3n),
body.legal-body .arc-legal-doc-links a:nth-child(3n){--arc-legal-action-color:var(--arc-topbar-purple)}
body.legal-body .legal-btn::after,
body.legal-body .legal-footer a::after,
body.legal-body .arc-legal-doc-links a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:2px;
  height:1px;
  background:var(--arc-legal-action-color);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .2s ease;
}
body.legal-body .legal-btn:hover,
body.legal-body .legal-btn:focus-visible,
body.legal-body .legal-footer a:hover,
body.legal-body .legal-footer a:focus-visible,
body.legal-body .arc-legal-doc-links a:hover,
body.legal-body .arc-legal-doc-links a:focus-visible,
body.legal-body .legal-footer a[aria-current="page"]{
  color:var(--arc-legal-action-color)!important;
  transform:translateY(-1px);
  outline:none;
}
body.legal-body .legal-btn:hover::after,
body.legal-body .legal-btn:focus-visible::after,
body.legal-body .legal-footer a:hover::after,
body.legal-body .legal-footer a:focus-visible::after,
body.legal-body .arc-legal-doc-links a:hover::after,
body.legal-body .arc-legal-doc-links a:focus-visible::after,
body.legal-body .legal-footer a[aria-current="page"]::after{transform:scaleX(1)}
body.legal-body .legal-btn:active,
body.legal-body .legal-footer a:active,
body.legal-body .arc-legal-doc-links a:active{transform:translateY(1px) scale(.97)}
body.legal-body .legal-btn svg,
body.legal-body .legal-footer a svg,
body.legal-body .arc-legal-doc-links a svg{width:14px;height:14px;display:block;flex:0 0 auto}

body.legal-body .legal-footer{
  border-top:1px dashed var(--border2)!important;
  background:var(--bg2);
  padding:24px;
  gap:22px;
}
body.legal-body .arc-legal-doc-links{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  padding:16px 0 0;
}

@media(max-width:1180px){
  body.legal-body .nav{position:fixed!important}
  body.legal-body .legal-shell{padding-top:112px!important}
  body.legal-body .arc-mobile-menu-panel{font-family:'IBM Plex Mono',monospace!important}
}
@media(max-width:640px){
  body.legal-body .legal-shell{padding-left:18px;padding-right:18px;padding-bottom:60px}
  body.legal-body .legal-footer{justify-content:flex-start!important;padding:20px 18px!important}
  body.legal-body .legal-actions{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(prefers-reduced-motion:reduce){
  body.legal-body .legal-btn,
  body.legal-body .legal-btn::after,
  body.legal-body .legal-footer a,
  body.legal-body .legal-footer a::after,
  body.legal-body .arc-legal-doc-links a,
  body.legal-body .arc-legal-doc-links a::after{transition:none!important}
}

/* V22.36.2.6 — LEGAL ALL-BRAND-LOGO LIGHT MODE FIX */
/*
   The Arcendium horizontal artwork is primarily white.
   Apply the legal-page theme treatment to every occurrence of the brand,
   including lower/footer branding and dynamically-created drawer branding.
*/
html[data-theme="light"] body.legal-body img[src*="arcendium-horizontal-logo"],
html[data-theme="light"] body.legal-body img[src*="arcendium-logo"] {
    filter: brightness(0) saturate(100%) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.legal-body img[src*="arcendium-horizontal-logo"],
html[data-theme="dark"] body.legal-body img[src*="arcendium-logo"] {
    filter: none !important;
    opacity: 1 !important;
}
/* END V22.36.2.6 */
