/* Matchermind — legal & support pages (static). Brand tokens match /assets/site.css. */
:root {
  --bg: #F7F2EA;
  --card: #FFFFFF;
  --ink: #1F3A44;
  --muted: #4F6B75;
  --line: #E8E0D3;
  --teal: #4A8196;
  --deep: #2F5F70;
  --mint: #E3F1EF;
  --coral: #F58B84;
  --coral-soft: #FDE3E0;
  --berry: #BF576E;
  --berry-ink: #9C3F55;
  --radius-card: 28px;
  --wrap: 1200px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--berry-ink); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--deep); color: #fff; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.narrow { max-width: 860px; }

/* Header */
.site-header { padding: 18px 0; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.legal-nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--card); box-shadow: 0 1px 0 var(--line), 0 0 0 1.5px var(--line) inset; font-weight: 800; }

/* Page title */
.page-head { padding: 28px 0 28px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--deep); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.page-head h1 { margin: 14px 0 8px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; }
.page-head .lead { margin: 0; color: var(--muted); font-size: 19px; }
.updated { margin: 0; color: var(--muted); font-size: 15px; font-weight: 700; }

/* Document card */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 44px 20px; margin-bottom: 56px; }
.doc section { padding: 28px 0; border-top: 1px solid var(--line); }
.doc section:first-child { border-top: 0; }
.doc h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.25; font-weight: 900; letter-spacing: -0.01em; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--coral-soft); color: var(--berry-ink); font-size: 16px; font-weight: 900; transform: translateY(-2px); }
.doc h3 { margin: 20px 0 8px; font-size: 18px; font-weight: 800; }
.doc p { margin: 0 0 12px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc ul:last-child { margin-bottom: 0; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--teal); }
.doc strong { font-weight: 800; }
.path { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--bg); font-weight: 700; }

/* Support page */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.card .icon svg { width: 26px; height: 26px; }
.card.contact { grid-column: 1 / -1; background: var(--deep); border-color: var(--deep); color: #fff; }
.card.contact p { color: #D6E6E9; }
.card.contact .icon { background: rgba(255, 255, 255, .14); color: #fff; }
.email { font-size: clamp(20px, 3vw, 26px); font-weight: 900; color: #fff; word-break: break-word; }
.email:hover { color: #FFE1DD; }
.button { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 800; text-decoration: none; }
.button.light { background: #fff; color: var(--deep); }
.button.light:hover { background: var(--mint); color: var(--deep); }
.button.outline { border: 2px solid var(--deep); color: var(--deep); margin-top: auto; }
.button.outline:hover { background: var(--deep); color: #fff; }
.button svg { width: 18px; height: 18px; }

/* Footer */
.site-footer { border-top: 2px solid var(--line); padding: 32px 0 44px; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 700; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header { padding: 12px 0; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .legal-nav { width: 100%; margin-left: -12px; gap: 2px; }
  .legal-nav a { padding: 0 12px; font-size: 15px; }
  .legal-nav .long { display: none; }
  .page-head { padding: 16px 0 20px; }
  .page-head .lead { font-size: 17px; }
  .doc { padding: 4px 20px 12px; border-radius: 22px; margin-bottom: 40px; }
  .doc section { padding: 22px 0; }
  .doc h2 { font-size: 20px; gap: 10px; }
  .doc h2 .num { min-width: 30px; height: 30px; font-size: 14px; }
  .card { padding: 24px; border-radius: 22px; }
  .support-grid { gap: 14px; margin-bottom: 40px; }
}

@media print {
  .site-header nav, .skip-link, .site-footer .footer-links { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
