/* Legal & utility pages — aligned with launch theme */

:root {
  --navy: #010e2a;
  --saffron: #f57c00;
  --saffron-light: #fff7ed;
  --saffron-hover: #e06a12;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #010e2a;
  --muted: #6b7280;
  --muted-soft: #8fa4c0;
  --border: #e5e7eb;
  --container: 720px;
  --header-h: 56px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 124, 0, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 28%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to right, #0a1120, #0b1629, #0a1120);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.site-nav a.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav a.brand:hover {
  opacity: 0.92;
}

.brand-wordmark {
  display: inline-block;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.brand-itin {
  color: #ffffff;
}

.brand-ero {
  color: var(--saffron);
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2vw, 1.75rem);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav .nav-links::-webkit-scrollbar {
  display: none;
}

.site-nav .nav-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav .nav-links a:hover {
  color: #fff;
}

.site-nav .nav-links a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--saffron);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 5rem;
}

a {
  color: var(--saffron);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--saffron-hover);
  text-decoration: underline;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.entity {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.75rem;
}

.updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.625rem;
  color: var(--navy);
}

p,
li {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.legal-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--saffron);
  text-decoration: none;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  background: var(--saffron);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 8px 24px rgba(245, 124, 0, 0.28);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.back:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}

.back:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

/* 404 */
.page-404 {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-404 .inner {
  max-width: 28rem;
}

.page-404 .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 1rem;
}

.page-404 h1 {
  font-size: clamp(4rem, 18vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--saffron) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-404 .lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-404 .legal {
  font-size: 0.8125rem;
  color: var(--muted-soft);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  :root {
    --header-h: 52px;
  }

  .site-nav {
    gap: 0.5rem 0.625rem;
  }

  .site-nav .nav-links {
    display: none;
  }
}

/* ─── Site footer (legal & utility pages) ─── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
}

.site-footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer-inner p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer-nav a {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer-nav {
    justify-content: center;
  }
}
