/*
 * Styling for the three public legal pages.
 *
 * Deliberately standalone. These pages are plain static HTML served straight
 * off disk by nginx — they never enter the Vite build graph, so they cannot use
 * Tailwind or the app's token layer. The values below are the same ones
 * src/index.css defines, resolved to literal colours, so a Meta reviewer moving
 * between the app and these pages sees one product rather than two.
 *
 * No web fonts and no external requests: a legal page that depends on a third
 * party to render is a legal page that can fail to render.
 */

:root {
  --bg: #f8fafc;          /* --background  210 20% 98% */
  --fg: #0f172a;          /* --foreground  222 47% 11% */
  --card: #ffffff;
  --muted: #64748b;       /* --muted-foreground 215 16% 47% */
  --border: #e2e8f0;      /* --border      214 32% 91% */
  --primary: #4f46e5;     /* --primary     243 75% 59% */
  --primary-soft: #eef2ff;
  --radius: 0.625rem;
  --max: 46rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Long-form legal text, so the measure and leading are set for reading
     rather than for scanning the way the application is. */
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------- header */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  font-size: 0.9375rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
}

/* The page you are already on is marked rather than linked, so the nav says
   where you are as well as where you can go. */
.links [aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

/* ----------------------------------------------------------------- body */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.125rem;
  line-height: 1.4;
  margin: 2.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}

p,
li {
  margin: 0 0 0.75rem;
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.375rem;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.notice {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.875rem 1.125rem;
  margin: 1.25rem 0;
}

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

/* --------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  color: var(--muted);
}

.small {
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 40rem) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding: 1.75rem 1.25rem 3rem;
  }

  .hero {
    padding: 1.25rem;
  }
}
