/* Styles for the static legal pages. Tokens mirror src/styles.css. */
:root {
  --ink: #0a1733; --white: #fff; --canvas: #eaf1fb; --pewter: #4a5a78;
  --granite: #c5d2e6; --sage: #b8c5dc; --slate: #2c3e63; --blue: #1d4ed8; --orange: #ff3b00;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --grotesk: "Archivo", "Inter", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); }
body { color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; }
.container { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .container { padding-inline: 48px; } }
.eyebrow { font-family: var(--grotesk); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--pewter); }
.btn-primary { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; background: var(--blue); color: var(--white); border-radius: 24px; padding: 12px 24px; font-size: 14px; font-weight: 500; transition: background .2s; }
.btn-primary:hover { background: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--granite); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { height: 40px; width: auto; }
.desktop-nav, .desktop-cta { display: none; }
.nav-link { display: inline-flex; white-space: nowrap; padding: 8px 16px; border-radius: 32px; font-size: 14px; font-weight: 500; transition: background .2s; }
.nav-link:hover { background: var(--canvas); }
.nav-dropdown { position: relative; }
.nav-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; padding: 8px; background: var(--white); border: 1px solid var(--granite); border-radius: 12px; box-shadow: 0 12px 32px rgba(10,23,51,.12); }
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu { display: block; }
.nav-menu a { display: block; padding: 8px 16px; border-radius: 8px; font-size: 14px; }
.nav-menu a:hover { background: var(--canvas); }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 8px 16px; border: 1px solid var(--granite); border-radius: 24px; font-size: 14px; font-weight: 500; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 24px; background: var(--white); border-bottom: 1px solid var(--granite); }
.mobile-nav nav a { padding: 8px 0; font-weight: 500; }
.mobile-nav nav .btn-primary { margin-top: 12px; padding: 12px 24px; }
@media (min-width: 1024px) {
  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-cta { display: inline-flex; }
  .mobile-nav { display: none; }
}

/* Page */
.page-hero { padding-top: 80px; padding-bottom: 48px; }
@media (min-width: 768px) { .page-hero { padding-top: 112px; } }
.page-hero h1 { margin-top: 24px; max-width: 56rem; font-size: clamp(32px, 4.2vw, 61px); line-height: 1.05; letter-spacing: -.01em; overflow-wrap: break-word; }
.lead { margin: 24px 0 0; max-width: 48rem; font-size: 20px; line-height: 1.55; color: var(--slate); }
.updated { margin: 24px 0 0; font-size: 14px; color: var(--pewter); }
.legal-layout { display: grid; gap: 48px; padding-bottom: 32px; }
.legal-article { min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.accent-rule { display: block; width: 56px; height: 2px; background: var(--orange); }
.legal-article h2 { margin-top: 16px; font-size: 24px; line-height: 1.3; }
.section-body { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.625; color: var(--slate); }
.section-body p { margin: 0; }
.legal-list { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.legal-list li::marker { color: var(--orange); }
.table-wrap { overflow-x: auto; border: 1px solid var(--granite); border-radius: 8px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; text-align: left; }
thead { background: var(--canvas); color: var(--ink); }
th { padding: 12px 16px; font-weight: 500; }
td { padding: 12px 16px; border-top: 1px solid var(--granite); }
td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.side-nav { padding: 24px; border-radius: 8px; background: var(--canvas); }
.side-nav ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--orange); }
.side-nav a[aria-current="page"] { font-weight: 500; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; }
  .side-nav { position: sticky; top: 112px; }
}

/* Footer */
.site-footer { margin-top: 128px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; gap: 40px; padding-block: 80px; }
.footer-brand { max-width: 28rem; }
.footer-logo { height: 40px; width: auto; filter: invert(1) brightness(2); }
.footer-brand p { margin: 24px 0 0; font-size: 16px; line-height: 1.625; color: var(--granite); }
.site-footer .eyebrow { color: var(--sage); }
.site-footer ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer ul a:hover { color: var(--orange); }
.site-footer .muted { color: var(--granite); }
.social { margin-top: 20px; display: flex; gap: 12px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 12px; color: var(--sage); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 2; }
  .footer-bottom-row { flex-direction: row; }
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
