/* Ask Ova legal pages. Colors from docs/current/brand/ask-ova-brand-tokens.json
   (Modern Bloom). System fonts only: the CSP allows no third-party styles. */

:root {
  --background: #f8f6ff;
  --foreground: #211a32;
  --surface: #ffffff;
  --surface-muted: #f1eefa;
  --border: #e5def5;
  --border-strong: #d0c2f8;
  --muted: #746b8f;
  --primary: #8c52ff;
  --primary-strong: #4a1fa8;
  --primary-soft: #efe7ff;
  --aqua: #5ce1e6;
  --warning: #a66710;
  --warning-soft: #fff5df;
  --font-body: Inter, "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: Satoshi, Inter, "Avenir Next", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--primary-strong);
  color: #fff;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 0.75rem;
}

a {
  color: var(--primary-strong);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary);
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-decoration: none;
}

.nav-list,
.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.nav-list a,
.footer-list a {
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--aqua);
  text-decoration-thickness: 3px;
}

.draft-banner {
  background: var(--warning-soft);
  border-bottom: 1px solid var(--warning);
  color: #5c3a08;
  padding: 0.75rem 16px;
  text-align: center;
  font-size: 0.9375rem;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  letter-spacing: -0.035em;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1875rem;
}

.last-updated,
.muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.last-updated {
  margin-top: -0.25rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--surface-muted);
  border-left: 4px solid var(--border-strong);
  border-radius: 0 8px 8px 0;
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-muted);
  padding: 0.1em 0.3em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

main {
  overflow-wrap: break-word;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.page-index {
  list-style: none;
  padding: 0;
}

.page-index li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.page-index a {
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0.75rem 0 0;
}

@media print {
  .site-header nav,
  .site-footer nav,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }
}
