:root {
  --bg-glow: rgba(255,255,255,0.06);
  --bg-start: #080808;
  --bg-mid: #040404;
  --bg-end: #090909;
  --panel: rgba(255,255,255,0.05);
  --panel-top: rgba(255,255,255,0.08);
  --panel-bottom: rgba(255,255,255,0.02);
  --line: rgba(255,255,255,0.12);
  --text: #f5f5f5;
  --muted: rgba(255,255,255,0.72);
  --soft: rgba(255,255,255,0.5);
  --pattern-dot: rgba(255,255,255,0.04);
  --shadow: 0 24px 60px rgba(0,0,0,0.42);
  --radius-xl: 28px;
  --container: min(1380px, 100%);
  --transition: 320ms cubic-bezier(.2,.8,.2,1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-glow: rgba(255,255,255,0.92);
  --bg-start: #ffffff;
  --bg-mid: #f7f7f7;
  --bg-end: #ffffff;
  --panel: rgba(255,255,255,0.82);
  --panel-top: rgba(255,255,255,0.92);
  --panel-bottom: rgba(255,255,255,0.66);
  --line: rgba(20,20,20,0.1);
  --text: #161616;
  --muted: rgba(22,22,22,0.72);
  --soft: rgba(22,22,22,0.5);
  --pattern-dot: rgba(20,20,20,0.05);
  --shadow: 0 24px 60px rgba(0,0,0,0.08);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, var(--bg-glow), transparent 32%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
  overflow-x: hidden;
  transition: background 0.55s ease, color 0.55s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(var(--pattern-dot) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: 0.24;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

p,
li {
  color: var(--muted);
  line-height: 1.82;
}

body,
.legal-eyebrow,
.legal-card,
.legal-section,
.legal-note {
  transition:
    background 0.45s ease,
    color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.site-shell {
  position: relative;
  z-index: 1;
  padding: 108px 0 0;
}

#premiumFooterSlot {
  padding-top: 28px;
}

.legal-hero,
.legal-layout {
  width: 100%;
}

.legal-hero {
  padding: 44px 0 34px;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  opacity: 0.85;
  flex: none;
}

.legal-hero h1 {
  margin-top: 20px;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  max-width: 10ch;
}

.legal-hero p {
  max-width: 76ch;
  margin: 22px 0 0;
  font-size: 1.03rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-card,
.legal-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-card {
  position: sticky;
  top: 28px;
  padding: 28px;
}

.legal-card h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-top: 14px;
}

.legal-summary-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.legal-summary-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.legal-summary-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-summary-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-summary-item span,
.legal-summary-item a {
  line-height: 1.6;
  color: var(--text);
}

.legal-toc {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color var(--transition), transform var(--transition);
}

.legal-toc a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 28px;
}

.legal-section-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.legal-section-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
  flex: none;
}

.legal-section h2 {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
}

.legal-section p {
  margin: 0;
}

.legal-section p + p,
.legal-section ul,
.legal-sublist,
.legal-note {
  margin-top: 16px;
}

.legal-section ul,
.legal-sublist {
  padding-left: 20px;
}

.legal-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding-top: 88px;
    padding-bottom: 0;
  }

  .legal-hero h1 {
    max-width: 100%;
  }

  .legal-card,
  .legal-section {
    padding: 22px;
  }
}
