/* Home, legal and error pages. Revvy dark tokens (core:designsystem RevvyDarkColors), same as links/link.css.
   No inline styles: the site's Content-Security-Policy (web/public/_headers) only allows style-src 'self'. */
:root {
  color-scheme: dark;
  --bg: #1c1c1e;
  --surface: #26262a;
  --line: #36363b;
  --ink: #f5f5f5;
  --ink-muted: #a9a9b0;
  --brand: #ffb000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

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

/* Home and 404: centered, like the link pages. */
.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  text-align: center;
}

.home h1 {
  margin: 0;
  color: var(--brand);
  font-size: 2.5rem;
}

.home p {
  margin: 8px 0 0;
}

/* Legal pages: one readable column. */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.brand {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--brand);
  font-size: 1.75rem;
  font-weight: 800;
  text-decoration: none;
}

.page h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.2;
}

.page h2 {
  margin: 32px 0 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.page p,
.page li {
  margin: 0 0 12px;
}

.page ul,
.page ol {
  margin: 0 0 12px;
  padding-left: 1.5rem;
}

.lead,
.meta {
  color: var(--ink-muted);
}

.lead {
  margin: 0 0 24px;
}

.meta {
  margin: 0 0 24px;
  font-size: 0.875rem;
}

.card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

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

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.page .site-links {
  justify-content: flex-start;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.site-links li {
  margin: 0;
}

.site-links a {
  display: inline-block;
  padding: 12px 0;
  color: var(--ink-muted);
}
