/* Shared styling for Gravity Core legal pages — matches the marketing site's
   warm-light, Inter aesthetic. Lightweight + self-contained (no app JS). */
:root {
  --bg: #fafaf8;
  --bg-2: #f5f5f2;
  --fg: #181816;
  --fg-2: #55554f;
  --fg-3: #8a8a82;
  --line: rgba(20, 20, 18, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Top bar */
.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.legal-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
}
/* Brand lockup — the official GravityCore_Full.svg, icon + wordmark as one
   shape so the proportions can't drift. Mirrors the rule in src/style.css;
   these pages ship outside the Vite build and don't share that stylesheet. */
.lockup {
  display: block;
  flex: none;
  width: auto;
}
.lockup__i { fill: #5e37fb; }
.lockup__w { fill: currentColor; }
.lockup--legal { height: 13px; }
.legal-back {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  text-decoration: none;
}
.legal-back:hover { color: var(--fg); }

/* Content */
.legal-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 88px) clamp(20px, 5vw, 32px) 72px;
}
.legal-wrap h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.legal-updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 44px;
}
.legal-wrap h2 {
  margin: 40px 0 12px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.legal-wrap h3 {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.legal-wrap p,
.legal-wrap li {
  color: var(--fg-2);
  font-size: 16px;
}
.legal-wrap p { margin: 0 0 16px; }
.legal-wrap ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-wrap li { margin-bottom: 7px; }
.legal-wrap a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line);
}
.legal-wrap a:hover { text-decoration-color: var(--fg); }
.legal-lead {
  font-size: 17px;
  color: var(--fg-2);
  margin-bottom: 8px;
}

/* Footer */
.legal-footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 32px) 64px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.legal-footer a { color: var(--fg-3); text-decoration: none; }
.legal-footer a:hover { color: var(--fg); }
.legal-footer__spacer { flex: 1 1 auto; }

/* Careers page (richer layout than the text-only legal pages) */
.careers-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 96px) clamp(20px, 5vw, 32px) 80px;
}
.careers-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 18px;
}
.careers-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--fg);
}
.careers-lead {
  margin: 26px 0 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--fg-2);
}
.careers-perks {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.careers-perks-title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--fg);
}
.careers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 44px;
}
.careers-item { display: flex; flex-direction: column; gap: 5px; }
.careers-perk { font-size: 16px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; }
.careers-desc { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.careers-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.careers-cta-text {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.careers-cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.careers-cta-btn:hover { opacity: 0.85; }
@media (max-width: 720px) {
  .careers-perks { grid-template-columns: 1fr; gap: 24px; }
  .careers-list { grid-template-columns: 1fr; gap: 22px; }
}
