/* MathRush legal pages — production static stylesheet */
:root {
  color-scheme: light dark;
  --brand: #187FED;
  --brand-strong: #0B63CE;
  --brand-soft: #EAF3FF;
  --text: #152033;
  --muted: #5D6A7C;
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --border: #DCE3EE;
  --success: #0A7A47;
  --warning: #9A5A00;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(17, 45, 86, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #AF91FF;
    --brand-strong: #C9B8FF;
    --brand-soft: #251E3D;
    --text: #F3F5FA;
    --muted: #B4BDCB;
    --surface: #11151C;
    --surface-2: #171C25;
    --border: #2A3341;
    --success: #64D8A1;
    --warning: #F0BD68;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(100% - 32px, 980px); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,#187FED,#6B56F5); font-size: 18px; }
nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 650; }
nav a:hover, nav a[aria-current="page"] { color: var(--brand-strong); }
.hero { padding: 64px 0 28px; }
.eyebrow { color: var(--brand-strong); text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; font-weight: 850; }
h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); line-height: 1.05; letter-spacing: -.045em; margin: 10px 0 14px; }
.lead { font-size: 1.09rem; color: var(--muted); max-width: 760px; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
main { padding-bottom: 72px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px,4vw,36px); margin: 18px 0; }
.card h2:first-child { margin-top: 0; }
h2 { font-size: 1.48rem; line-height: 1.25; letter-spacing: -.025em; margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.08rem; margin: 1.45rem 0 .35rem; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .42rem; }
.callout { background: var(--brand-soft); border: 1px solid color-mix(in srgb,var(--brand) 28%,var(--border)); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.callout strong { color: var(--brand-strong); }
.notice { border-left: 4px solid var(--brand); padding: 2px 0 2px 16px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.link-card { display:block; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:22px; text-decoration:none; box-shadow:var(--shadow); }
.link-card strong { display:block; color:var(--text); font-size:1.05rem; margin-bottom:4px; }
.link-card span { color:var(--muted); }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 18px; border-radius:12px; background:var(--brand); color:#fff; font-weight:750; text-decoration:none; }
.button:hover { filter: brightness(.96); }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; min-width:680px; }
th,td { text-align:left; vertical-align:top; border-bottom:1px solid var(--border); padding:13px 12px; }
th { font-size:.84rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
code { background:var(--surface-2); border:1px solid var(--border); border-radius:7px; padding:2px 6px; }
.site-footer { border-top:1px solid var(--border); background:var(--surface); padding:28px 0 42px; color:var(--muted); font-size:.9rem; }
.footer-row { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.small { font-size:.88rem; }
@media (max-width: 760px) {
  .site-header { position: static; }
  .header-inner { align-items:flex-start; padding:15px 0; flex-direction:column; }
  nav { justify-content:flex-start; gap:10px 16px; }
  .hero { padding-top:42px; }
  .grid { grid-template-columns:1fr; }
  .card { padding:22px 20px; }
}
@media print {
  .site-header, .site-footer { display:none; }
  body { background:#fff; color:#000; }
  .card { box-shadow:none; border:0; padding:0; }
  a { color:#000; text-decoration:none; }
}
