/* Legal pages use the homepage shell, header, background and font assets. */
.legal-page {
  background: var(--paper);
  color: var(--ink);
  --legal-muted: #605961;
  --legal-border: rgb(16 16 18 / 0.12);
  --legal-surface: var(--card-surface, #fbfbfb);
  --legal-hover: rgb(200 40 55 / 0.06);
  --floating-pad-x: clamp(1.15rem, 3.3vw, 3.5rem);
  --floating-shell-pad: 0.5rem;
}
:root[data-theme="dark"] .legal-page {
  --legal-muted: #b1b2bc;
  --legal-border: rgb(255 255 255 / 0.14);
  --legal-surface: #101012;
  --legal-hover: rgb(200 40 55 / 0.12);
}
.legal-shell { position: relative; z-index: 1; }
.legal-page .site-header.is-floating { position: sticky; top: 0; animation: none; }
.legal-page .mobile-menu { color: #fff; }
.legal-main {
  width: min(var(--section-max, 100rem), calc(100% - 2 * var(--section-pad-x)));
  margin-inline: auto;
}
.legal-hero { position: relative; padding-top: 1.5rem; }
.legal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2rem 0 -3rem;
  background: radial-gradient(ellipse at 50% 0%, rgb(200 40 55 / 0.08), transparent 65%);
  pointer-events: none;
}
.legal-hero__grid { text-align: center; padding: 1.5rem 0; }
.legal-hero h1 {
  margin: 0;
  max-width: none;
  color: var(--ink);
  font: 800 clamp(3rem, 7.5vw, 5.45rem)/1.05 "Codec Cold", system-ui, sans-serif;
  letter-spacing: -0.04em;
}
.legal-hero__details { margin-top: 1.5rem; }
.legal-hero__intro { max-width: 44ch; margin-inline: auto; font-size: 1.1rem; line-height: 1.6; color: var(--legal-muted); }
.legal-updated { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.45em; margin-top: 1.25rem; font-size: 0.75rem; color: var(--legal-muted); }
.legal-updated time { color: var(--ink); }

.legal-layout { padding-top: 0; padding-bottom: 3rem; }
.legal-content { min-width: 0; background: transparent; }
.legal-content section { padding-block: 1.5rem 0.5rem; scroll-margin-top: 7rem; }
.legal-content h2 { margin: 0 0 1rem; font: 700 clamp(1.4rem, 1.8vw, 1.85rem)/1.3 "Codec Cold", system-ui, sans-serif; letter-spacing: -0.025em; }
.legal-content h3 { margin: 1.25rem 0 0.65rem; font: 600 1.15rem/1.4 "Codec Cold", system-ui, sans-serif; }
.legal-section-body { min-width: 0; }
.legal-section-body p, .legal-section-body ul { font-size: 1rem; line-height: 1.75; color: var(--legal-muted); }
.legal-section-body > * + * { margin-top: 1rem; }
.legal-section-body ul { padding-left: 1.1rem; margin-bottom: 0; }
.legal-section-body li + li { margin-top: 0.5rem; }
.legal-section-body li::marker { color: var(--accent); }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.legal-content a:hover { color: var(--accent); }
:root[data-theme="dark"] .legal-content a { color: #f47782; }
:root[data-theme="dark"] .legal-content a:hover { color: #ffabb3; }
.legal-page .site-footer { border-top: 1px solid var(--legal-border); }
.legal-skip { position: absolute; top: -5rem; left: 1rem; z-index: 100; padding: 1rem; background: var(--paper); color: var(--ink); }
.legal-skip:focus { top: 1rem; }
@media (min-width: 1024px) { .legal-page { --floating-shell-pad: 0.6rem; } }

@media (max-width: 760px) {
  .legal-hero { padding-top: 1rem; }
  .legal-hero__grid { padding: 1.5rem 0 1rem; }
  .legal-hero__intro { font-size: 1rem; }
  .legal-content section { padding-block: 1.25rem 0.5rem; }
  .legal-section-body p, .legal-section-body ul { font-size: 0.95rem; }
}

