/*
  NexusMarket — Legal / Privacy page
  Anonymity-first. Handcrafted, dark theme, terracotta accents. No JS.
*/

.legal-page {
  max-width: 860px;
  margin: calc(var(--nav-height) + 36px) auto 0;
  padding: 0 24px 96px;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.legal-hero {
  position: relative;
  padding: 46px 40px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% -10%, rgba(232, 122, 58, 0.14), transparent 55%),
    radial-gradient(circle at 110% 120%, rgba(245, 166, 35, 0.07), transparent 50%),
    var(--surface);
  overflow: hidden;
}

.legal-hero-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(232, 122, 58, 0.16), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: legal-drift 11s ease-in-out infinite;
}

@keyframes legal-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate(-18px, 22px) scale(1.08); opacity: 1; }
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(232, 122, 58, 0.34);
  border-radius: 999px;
  background: rgba(232, 122, 58, 0.08);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-eyebrow svg { display: block; }

.legal-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.legal-lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.legal-updated {
  display: inline-block;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.01em;
}

/* ── PRINCIPLE CARDS ────────────────────────────────────────────── */
.legal-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}

.promise {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.promise:hover {
  border-color: rgba(232, 122, 58, 0.4);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.promise-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(232, 122, 58, 0.12);
  border: 1px solid rgba(232, 122, 58, 0.28);
  color: var(--accent-hover);
}

.promise-ico svg { display: block; }

.promise h3 {
  margin: 16px 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.promise p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── LONG-FORM BODY ─────────────────────────────────────────────── */
.legal-body {
  margin-top: 40px;
}

.legal-section {
  padding: 26px 0;
  border-top: 1px solid var(--border-subtle);
}

.legal-section:first-child { border-top: none; }

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.legal-section p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.74;
  color: var(--text-secondary);
  max-width: 70ch;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
  max-width: 70ch;
}

.legal-section li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 15px;
  line-height: 1.66;
  color: var(--text-secondary);
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(232, 122, 58, 0.45);
}

.legal-section li strong { color: var(--text-primary); font-weight: 650; }

.legal-section code {
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--accent-hover);
}

.legal-section a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(232, 122, 58, 0.4);
}

.legal-section a:hover { text-decoration-color: var(--accent-hover); }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .legal-page { padding: 0 16px 64px; }
  .legal-hero { padding: 32px 22px 30px; }
  .legal-hero h1 { font-size: 26px; }
  .legal-lead { font-size: 15px; }
  .legal-principles { grid-template-columns: 1fr; }
}
