* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --legal-bg: #050711;
  --legal-card: rgba(10, 16, 31, .94);
  --legal-border: rgba(87, 184, 255, .25);
  --legal-text: #eef5ff;
  --legal-muted: #9dafc7;
  --legal-accent: #50c8ff;
  --legal-accent-2: #ff4c9a;
}

body.legal-page {
  min-height: 100vh;
  margin: 0;
  color: var(--legal-text);
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 132, 255, .18), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(255, 43, 141, .14), transparent 30%),
    var(--legal-bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(4, 7, 14, .92);
  backdrop-filter: blur(18px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: .03em;
}

.legal-brand > span:first-child {
  color: var(--legal-accent);
  font-size: 1.4rem;
}

.legal-header nav,
.legal-footer,
.legal-site-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.legal-header nav a,
.legal-footer a,
.legal-site-links a,
.legal-card a {
  color: var(--legal-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-header nav a:hover,
.legal-footer a:hover,
.legal-site-links a:hover,
.legal-card a:hover {
  color: #fff;
}

.legal-shell {
  width: min(1050px, calc(100% - 28px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.legal-card {
  overflow: hidden;
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid var(--legal-border);
  border-radius: 22px;
  background: var(--legal-card);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
}

.legal-eyebrow {
  margin: 0;
  color: var(--legal-accent-2);
  font-weight: 950;
  letter-spacing: .15em;
}

.legal-card h1 {
  margin: 4px 0 2px;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.05;
}

.legal-updated {
  margin: 0 0 32px;
  color: var(--legal-muted);
}

.legal-card section {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.legal-card section:first-of-type {
  border-top: 0;
}

.legal-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
}

.legal-card p {
  margin: 10px 0;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card strong {
  color: #fff;
}

.legal-footer {
  justify-content: center;
  padding: 20px;
  color: var(--legal-muted);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.legal-site-links {
  justify-content: center;
  width: 100%;
  margin: 30px auto 0;
  padding: 16px 20px;
  color: var(--legal-muted);
  font-size: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

@media (max-width: 760px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header nav {
    gap: 8px 14px;
  }
}
