/* ─── Legal pages (Privacy / Terms) ───────────────────────── */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted2);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.15s;
}
.legal-back:hover { color: var(--accent); }
.legal-back svg { width: 14px; height: 14px; }

.legal-header { margin-bottom: 2.25rem; }
.legal-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}
.legal-updated {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.legal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.legal-card section { margin-bottom: 1.75rem; }
.legal-card section:last-child { margin-bottom: 0; }

.legal-card h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.legal-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin: 1rem 0 0.4rem;
  color: var(--muted2);
}

.legal-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted2);
  margin-bottom: 0.75rem;
}

.legal-card p:last-child { margin-bottom: 0; }

.legal-card ul {
  margin: 0 0 0.75rem 1.1rem;
  color: var(--muted2);
  font-size: 14px;
  line-height: 1.7;
}
.legal-card ul li { margin-bottom: 0.35rem; }
.legal-card ul li::marker { color: var(--accent); }

.legal-card strong { color: var(--text); font-weight: 600; }

.legal-card a { color: var(--accent); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }

.legal-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(62,207,142,0.25);
  margin-bottom: 1.5rem;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}

.legal-footer-nav {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2.5rem;
  font-size: 13px;
}
.legal-footer-nav a { color: var(--muted2); text-decoration: none; }
.legal-footer-nav a:hover { color: var(--accent); }

/* ─── Header nav links (Privacy / Terms beside Beta badge) ─── */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-links a {
  font-size: 12.5px;
  color: var(--muted2);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.header-links a:hover { color: var(--text); }

@media (max-width: 480px) {
  .header-links a:nth-child(1)::after { content: ""; }
  .header-links { gap: 10px; }
  .header-links a { font-size: 11.5px; }
}
