/*
  legal.css — overlay on top of styles.css for /privacy/, /terms/, /support/.
  Inherits :root vars, fonts, .site-header, .brand-lockup, .nav-links,
  .eyebrow, h1, .rhythm from the marketing site so the legal pages share
  the exact same identity as the home page.
*/

body {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.82) 0 24%, transparent 24% 100%),
    linear-gradient(180deg, #fbf9fd 0%, var(--bg) 42%, var(--bg-2) 100%);
}

.legal-hero {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 56px 0 26px;
}

.legal-hero h1 {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  font-weight: 900;
}

.legal-hero h1 .rhythm {
  display: inline;
  font-size: 0.92em;
}

.legal-hero .lede {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 600;
  line-height: 1.5;
}

.legal-content {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 8px 0 80px;
  display: grid;
  gap: 22px;
}

.legal-card {
  position: relative;
  padding: 32px 36px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 38px rgba(65, 36, 101, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(106, 28, 246, 0.05), transparent 26%);
}

.legal-card > * {
  position: relative;
  z-index: 1;
}

.legal-card h2 {
  margin: 0 0 14px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.18;
}

.legal-card h3 {
  margin: 22px 0 6px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--purple-dark);
  line-height: 1.3;
}

.legal-card p {
  margin: 8px 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-card p.small {
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-card ul {
  margin: 10px 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-card ul li {
  margin: 6px 0;
}

.legal-card ul li::marker {
  color: var(--purple);
  font-weight: 900;
}

.legal-card strong {
  font-weight: 700;
  color: var(--purple-dark);
}

.legal-card a {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: var(--purple-dark);
}

/* ---- support page two-column aside ---- */

.legal-content.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  align-items: start;
  gap: 22px;
}

.support-aside {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 28px rgba(65, 36, 101, 0.06);
}

.support-aside .stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.support-aside .label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 900 0.66rem "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-aside .value {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
  word-break: break-word;
}

.support-aside .value a {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---- footer ---- */

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-footer span {
  text-align: center;
}

/* ---- header nav: orange 3D pill buttons for Privacy / Terms / Support ---- */

.site-header .legal-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.site-header .legal-nav a {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #ff7132;
  box-shadow:
    0 5px 0 #b8501e,
    0 14px 28px rgba(255, 113, 50, 0.24);
  font: 900 0.82rem "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translateY(0);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 160ms ease;
}

.site-header .legal-nav a:hover {
  background: #ff834a;
  text-decoration: none;
}

.site-header .legal-nav a:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #b8501e,
    0 6px 14px rgba(255, 113, 50, 0.22);
}

.site-header .legal-nav a.is-active {
  background: #e85a18;
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #8a3b13,
    0 4px 10px rgba(255, 113, 50, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-header .legal-nav a.is-active:hover {
  background: #e85a18;
}

/* ---- header CTA: 'Home' link in signature purple to balance orange nav ---- */

.site-header .legal-home-btn {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--purple);
  box-shadow:
    0 5px 0 var(--purple-dark),
    0 14px 26px rgba(106, 28, 246, 0.22);
  font: 900 0.82rem "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.16s ease;
}

.site-header .legal-home-btn:hover {
  background: #772aff;
  text-decoration: none;
}

.site-header .legal-home-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 var(--purple-dark),
    0 8px 18px rgba(106, 28, 246, 0.18);
}

@media (max-width: 820px) {
  .legal-content.with-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .legal-card {
    padding: 26px 22px 24px;
  }
  .legal-hero {
    padding: 36px 0 18px;
  }
  .legal-hero h1 {
    max-width: 100%;
  }
}
