:root {
  --wl-legal-bg: hsl(0 0% 5%);
  --wl-legal-surface: hsl(0 0% 7%);
  --wl-legal-surface-2: hsl(0 0% 9%);
  --wl-legal-cream: hsl(30 15% 95%);
  --wl-legal-muted: hsl(30 8% 62%);
  --wl-legal-soft: hsl(30 10% 74% / 0.72);
  --wl-legal-gold: hsl(36 40% 75%);
  --wl-legal-border: hsl(0 0% 22% / 0.72);
  --wl-legal-border-soft: hsl(0 0% 100% / 0.08);
  --wl-legal-shadow: 0 1px 0 0 hsl(0 0% 100% / 0.04) inset, 0 30px 60px -30px hsl(0 0% 0% / 0.64);
  --wl-legal-glow: 0 0 80px -22px hsl(36 40% 60% / 0.26);
  --wl-legal-radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.wl-legal-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--wl-legal-bg);
  color: var(--wl-legal-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

body.wl-legal-page::before,
body.wl-legal-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body.wl-legal-page::before {
  background:
    radial-gradient(ellipse 82% 54% at 50% 0%, hsl(30 65% 22% / 0.58), hsl(32 58% 14% / 0.24) 38%, transparent 74%),
    radial-gradient(circle at 86% 24%, hsl(36 42% 65% / 0.12), transparent 24rem),
    radial-gradient(circle at 8% 18%, hsl(36 42% 60% / 0.10), transparent 30rem),
    linear-gradient(180deg, #090908 0%, #050505 52%, #050505 100%);
}

body.wl-legal-page::after {
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(hsl(0 0% 100% / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 48% at 50% 24%, black, transparent 74%);
}

body.wl-legal-page ::selection {
  background: rgb(209 185 148 / 0.32);
  color: var(--wl-legal-cream);
}

.wl-legal-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.wl-legal-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(52px, 8vw, 104px);
}

.wl-legal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--wl-legal-cream);
}

.wl-legal-brand img {
  width: auto;
  height: clamp(26px, 3vw, 34px);
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgb(0 0 0 / 0.45));
}

.wl-legal-brand span { display: none; }

.wl-legal-nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 10px 18px;
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: 999px;
  background: rgb(10 10 10 / 0.42);
  backdrop-filter: blur(16px);
}

.wl-legal-nav-links a,
.wl-legal-back {
  color: var(--wl-legal-muted);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.wl-legal-nav-links a:hover,
.wl-legal-nav-links a[aria-current="page"] {
  color: var(--wl-legal-cream);
}

.wl-legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid hsl(0 0% 100% / 0.10);
  border-radius: 999px;
  background: rgb(10 10 10 / 0.42);
  backdrop-filter: blur(16px);
}

.wl-legal-back:hover {
  color: var(--wl-legal-cream);
  border-color: hsl(36 40% 75% / 0.35);
  background: hsl(36 40% 75% / 0.08);
  transform: translateY(-1px);
}

.wl-legal-hero {
  position: relative;
  max-width: 1000px;
  margin: 0 auto clamp(44px, 7vw, 78px);
  padding: 0;
  text-align: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wl-legal-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8rem;
  width: min(86vw, 72rem);
  height: 24rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, hsl(32 88% 74% / 0.16) 0%, hsl(32 88% 64% / 0.10) 28%, transparent 72%);
  filter: blur(48px);
  z-index: -1;
}

.wl-legal-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--wl-legal-muted);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 18px;
}

.wl-legal-kicker::before,
.wl-legal-kicker::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: hsl(0 0% 100% / 0.18);
}

.wl-legal-hero h1 {
  max-width: 940px;
  margin: 0 auto;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-weight: 400;
  color: var(--wl-legal-cream);
  text-wrap: balance;
}

.wl-legal-hero h1 em {
  color: var(--wl-legal-gold);
  font-style: italic;
  white-space: nowrap;
}

.wl-legal-lede {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--wl-legal-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.72;
  text-wrap: balance;
}

.wl-legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.wl-legal-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.035);
  color: hsl(30 10% 80% / 0.74);
  font-size: 13px;
}

.wl-legal-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.wl-legal-aside {
  position: sticky;
  top: 24px;
}

.wl-legal-aside-card {
  border: 1px solid var(--wl-legal-border-soft);
  border-radius: 24px;
  background: linear-gradient(180deg, hsl(0 0% 100% / 0.058), hsl(0 0% 100% / 0.026));
  box-shadow: var(--wl-legal-shadow);
  padding: 20px;
}

.wl-legal-aside-title {
  margin: 0 0 14px;
  color: var(--wl-legal-cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wl-legal-page-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.wl-legal-page-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--wl-legal-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.wl-legal-page-list a::after {
  content: "→";
  opacity: 0.34;
}

.wl-legal-page-list a:hover,
.wl-legal-page-list a[aria-current="page"] {
  color: var(--wl-legal-cream);
  border-color: hsl(36 40% 75% / 0.18);
  background: hsl(36 40% 75% / 0.07);
}

.wl-legal-aside-copy {
  margin: 0;
  color: var(--wl-legal-muted);
  font-size: 13px;
  line-height: 1.65;
}

.wl-legal-aside-copy + .wl-legal-aside-copy { margin-top: 10px; }

.wl-legal-aside-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--wl-legal-cream);
  color: #0b0b0b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--wl-legal-glow);
}

.wl-legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.wl-legal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wl-legal-border-soft);
  border-radius: var(--wl-legal-radius);
  background:
    linear-gradient(180deg, hsl(0 0% 100% / 0.058), hsl(0 0% 100% / 0.026)),
    hsl(0 0% 7% / 0.84);
  box-shadow: var(--wl-legal-shadow);
  padding: clamp(22px, 4vw, 38px);
  scroll-margin-top: 28px;
}

.wl-legal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, hsl(36 40% 75% / 0.55), transparent);
  opacity: 0.45;
}

.wl-legal-card h2 {
  margin: 0 0 16px;
  color: var(--wl-legal-cream);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.wl-legal-card h3 {
  margin: 24px 0 10px;
  color: var(--wl-legal-cream);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.wl-legal-card p,
.wl-legal-card li {
  color: var(--wl-legal-muted);
  line-height: 1.76;
  font-size: 15.5px;
}

.wl-legal-card p { margin: 0; }
.wl-legal-card p + p { margin-top: 14px; }

.wl-legal-card ul,
.wl-legal-card ol {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.wl-legal-card li {
  position: relative;
  padding-left: 20px;
}

.wl-legal-card li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--wl-legal-gold);
  box-shadow: 0 0 16px hsl(36 40% 75% / 0.35);
}

.wl-legal-card strong {
  color: hsl(30 16% 90%);
  font-weight: 650;
}

.wl-legal-card a {
  color: var(--wl-legal-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.wl-legal-note {
  position: relative;
  margin-top: 18px !important;
  border: 1px solid hsl(36 40% 75% / 0.24);
  border-left: 2px solid var(--wl-legal-gold);
  background: hsl(36 40% 75% / 0.075);
  border-radius: 18px;
  padding: 14px 16px;
  color: hsl(30 11% 78% / 0.88) !important;
}

.wl-legal-footer {
  margin-top: clamp(34px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
  color: hsl(30 10% 74% / 0.58);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
}

.wl-legal-footer-links {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.wl-legal-footer a {
  color: hsl(30 10% 74% / 0.72);
  text-decoration: none;
  transition: color 180ms ease;
}

.wl-legal-footer a:hover { color: var(--wl-legal-gold); }

.wl-legal-form-note {
  margin: 14px 0 0;
  color: rgba(244, 234, 212, 0.68);
  font-size: 12.5px;
  line-height: 1.55;
}

.wl-legal-form-note a {
  color: #e7c76f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wl-legal-marketing-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(231, 199, 111, 0.22);
  background: rgba(231, 199, 111, 0.06);
  border-radius: 16px;
  color: rgba(244, 234, 212, 0.75);
  font-size: 12.5px;
  line-height: 1.55;
}

.wl-legal-marketing-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #e7c76f;
  flex: 0 0 auto;
}

.wl-legal-footer-links-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 1 / -1;
  order: 99;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
}

.wl-legal-footer-links-injected {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.wl-legal-footer-links-injected a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.08);
  background: hsl(0 0% 100% / 0.028);
  color: hsl(30 10% 80% / 0.76);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.wl-legal-footer-links-injected a:hover {
  color: #f2ebdd;
  border-color: hsl(36 40% 75% / 0.34);
  background: hsl(36 40% 75% / 0.10);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .wl-legal-shell { width: min(100% - 28px, 760px); padding-top: 16px; }
  .wl-legal-nav { margin-bottom: 58px; }
  .wl-legal-nav-links { display: none; }
  .wl-legal-layout { grid-template-columns: 1fr; }
  .wl-legal-aside { position: relative; top: auto; order: 2; }
  .wl-legal-grid { order: 1; }
  .wl-legal-aside-card { display: none; }
}

@media (max-width: 640px) {
  .wl-legal-shell { width: min(100% - 22px, 560px); padding-bottom: 46px; }
  .wl-legal-nav { min-height: 54px; margin-bottom: 42px; }
  .wl-legal-back { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .wl-legal-hero { margin-bottom: 36px; }
  .wl-legal-kicker { font-size: 11px; letter-spacing: 0.16em; }
  .wl-legal-kicker::before,
  .wl-legal-kicker::after { width: 22px; }
  .wl-legal-lede { margin-top: 20px; font-size: 15.5px; }
  .wl-legal-meta-row { justify-content: flex-start; }
  .wl-legal-meta { font-size: 12px; }
  .wl-legal-card { border-radius: 22px; padding: 21px 19px; }
  .wl-legal-footer { align-items: flex-start; flex-direction: column; }
  .wl-legal-footer-links-bar {
    margin-top: 12px;
    padding-top: 14px;
    justify-content: flex-start;
  }
  .wl-legal-footer-links-injected {
    gap: 8px;
    justify-content: flex-start;
  }
  .wl-legal-footer-links-injected a {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11.5px;
  }
}
