:root {
  --legal-bg: #09111f;
  --legal-bg-soft: #0f172a;
  --legal-surface: rgba(15, 23, 42, 0.72);
  --legal-surface-strong: rgba(12, 19, 36, 0.92);
  --legal-border: rgba(148, 163, 184, 0.13);
  --legal-border-strong: rgba(148, 163, 184, 0.22);
  --legal-text: #e8f0fb;
  --legal-text-soft: #b8cce0;
  --legal-muted: #7a94b0;
  --legal-accent: #f59e0b;
  --legal-accent-dim: rgba(245, 158, 11, 0.14);
  --legal-accent-ring: rgba(245, 158, 11, 0.26);
  --legal-shadow: 0 16px 48px rgba(2, 6, 23, 0.38);
  --legal-radius: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 16px;
  color: var(--legal-text);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(245, 158, 11, 0.10), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.10), transparent),
    linear-gradient(180deg, #07101d 0%, #0b1323 50%, #111827 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 70%);
}

a {
  color: inherit;
  transition: color 0.18s;
}

/* ─── Shell ───────────────────────────────────────── */

.legal-page {
  position: relative;
  z-index: 1;
}

.legal-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* ─── Header ──────────────────────────────────────── */

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 12px;
  border-bottom: 1px solid var(--legal-border);
  margin-bottom: 6px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-link img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.32);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-copy span {
  color: var(--legal-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.legal-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--legal-muted);
  border: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--legal-text);
  background: rgba(255,255,255,0.05);
  border-color: var(--legal-border-strong);
}

.legal-nav .nav-cta {
  color: #111827;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  border-color: transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.legal-nav .nav-cta:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  border-color: transparent;
  color: #111827;
}

/* ─── Hero ────────────────────────────────────────── */

.legal-hero {
  position: relative;
  margin-top: 28px;
  padding: 40px 40px 36px;
  border-radius: 26px;
  border: 1px solid var(--legal-border-strong);
  background: linear-gradient(155deg, rgba(10, 17, 33, 0.98) 0%, rgba(14, 22, 40, 0.96) 100%);
  box-shadow: var(--legal-shadow);
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.09), transparent 65%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--legal-accent-dim);
  border: 1px solid var(--legal-accent-ring);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 20px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 680px;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--legal-text-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--legal-border);
  color: var(--legal-muted);
  font-size: 0.86rem;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--legal-border);
}

.summary-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--legal-border);
}

.summary-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--legal-text);
}

.summary-card p {
  margin: 0;
  color: var(--legal-muted);
  line-height: 1.65;
  font-size: 0.88rem;
}

/* ─── Main content ────────────────────────────────── */

.legal-main {
  display: grid;
  gap: 14px;
  margin: 20px 0 28px;
}

.legal-section {
  padding: 28px 32px;
  border-radius: var(--legal-radius);
  border: 1px solid var(--legal-border);
  background: var(--legal-surface);
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--legal-text);
}

.legal-section h2:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--legal-border);
}

.legal-section h3 {
  margin: 18px 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fde68a;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--legal-text-soft);
  line-height: 1.76;
  font-size: 0.97rem;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--legal-text-soft);
  line-height: 1.76;
  font-size: 0.97rem;
}

.legal-section li {
  padding-left: 4px;
}

.legal-section li + li {
  margin-top: 7px;
}

.legal-section a {
  color: #fde68a;
  text-decoration-color: rgba(253, 230, 138, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.5);
}

.legal-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--legal-accent-ring);
  background: var(--legal-accent-dim);
  color: #fff3c0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ─── Grid layout (last section) ─────────────────── */

.legal-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 20px;
}

.contact-item {
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--legal-surface-strong);
  border: 1px solid var(--legal-border);
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--legal-muted);
}

.contact-item a {
  color: var(--legal-text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--legal-text);
}

/* ─── Footer ──────────────────────────────────────── */

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 36px;
  border-top: 1px solid var(--legal-border);
  color: var(--legal-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--legal-muted);
  font-size: 0.88rem;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: var(--legal-text);
}

/* ─── Responsive ──────────────────────────────────── */

@media (max-width: 860px) {
  .hero-summary,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: static;
  }

  .legal-header,
  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .legal-shell {
    width: calc(100% - 20px);
  }

  .legal-header {
    padding-top: 20px;
  }

  .legal-hero {
    padding: 26px 22px 28px;
    border-radius: 22px;
  }

  .legal-section {
    padding: 22px 20px;
    border-radius: 18px;
  }

  .legal-nav a {
    width: 100%;
    text-align: center;
  }

  .hero-summary {
    gap: 10px;
  }
}