/* Privacy Policy and Terms of Service. Tokens and component rules below are
   the public homepage's (smart-assess.html); keep them in step with it. */
:root{
  --paper:#f6f7f3; --surface:#ffffff; --surface-2:#eef2ec;
  --ink:#152018; --ink-soft:#333c35; --ink-faint:#5b665e;
  --line:#dde3da; --line-strong:#c4cec0;
  --brand-900:#064e3b; --brand-800:#065f46; --brand-700:#047857; --brand-600:#059669; --brand-500:#10b981; --brand-50:#ecfdf5;
  --shadow-md:0 12px 28px -16px rgba(12,33,23,.28);
  --radius-lg:22px; --radius-md:14px; --radius-sm:9px;
  --font-display:'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body:'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --link:var(--brand-700);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#0a130e; --surface:#101c15; --surface-2:#152219;
    --ink:#edf3ee; --ink-soft:#a9b8ae; --ink-faint:#7c8c81;
    --line:#213228; --line-strong:#2c4032; --brand-50:#101c15;
    --shadow-md:0 12px 28px -16px rgba(0,0,0,.5);
    --link:#8fdcb1;
  }
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:104px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{ margin:0; background:var(--paper); color:var(--ink); font-family:var(--font-body); font-size:18px; line-height:1.65; -webkit-font-smoothing:antialiased; overflow-wrap:break-word; }
h1,h2,h3{ font-family:var(--font-display); font-weight:600; margin:0; text-wrap:balance; color:var(--ink); }
a:focus-visible{ outline:3px solid #a7f3d0; outline-offset:2px; border-radius:4px; }
.skip-link{ position:absolute; left:-9999px; top:8px; padding:10px 16px; background:var(--surface); color:var(--ink); z-index:50; }
.skip-link:focus{ left:8px; }
.wrap{ width:100%; max-width:1180px; margin:0 auto; padding:0 32px; }

/* Header: same as the homepage */
.site-header{ position:sticky; top:0; z-index:40; background:var(--brand-900); border-bottom:1px solid rgba(255,255,255,.16); }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; min-height:88px; padding-top:12px; padding-bottom:12px; gap:16px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:14px; text-decoration:none; }
.brand-mark{ width:42px; height:42px; object-fit:contain; display:block; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:22px; color:#fff; letter-spacing:-.01em; }
.header-actions{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 18px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; font-family:var(--font-body); font-weight:700; font-size:17px; border-radius:999px; border:2px solid transparent; text-decoration:none; }
.btn-ghost{ background:transparent; min-height:48px; padding:12px 22px; }
.site-header .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.65); }
.site-header .btn-ghost:hover{ background:rgba(255,255,255,.12); }
.header-link{ color:#dcefe3; font-size:16px; font-weight:600; padding:8px 2px; text-underline-offset:4px; text-decoration:none; }
.header-link:hover, .header-link.is-current{ color:#fff; text-decoration:underline; }

/* Page heading: the homepage's section head */
.section{ padding:72px 0 88px; }
.section-head{ text-align:center; max-width:760px; margin:0 auto 44px; }
.eyebrow{ display:block; font-size:14px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--link); margin-bottom:10px; }
.section-head h1{ font-size:clamp(32px,4vw,46px); line-height:1.15; }
.legal-updated{ margin:12px 0 0; color:var(--ink-soft); font-size:16px; }

/* Contents beside the document; cards as on the homepage */
.legal-layout{ display:grid; grid-template-columns:270px minmax(0,1fr); gap:28px; align-items:start; }
.legal-toc, .legal-article{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:var(--shadow-md); }
.legal-toc{ position:sticky; top:112px; padding:20px 22px; max-height:calc(100vh - 136px); overflow-y:auto; border-top:4px solid var(--brand-600); }
.legal-toc h2{ margin:0 0 10px; font-family:var(--font-body); font-size:14px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--link); }
.legal-toc ol{ margin:0; padding-left:22px; font-size:15px; line-height:1.45; }
.legal-toc li{ margin-bottom:8px; }
.legal-toc a{ color:var(--ink-soft); text-underline-offset:3px; }
.legal-toc a:hover{ color:var(--link); }
.legal-article{ padding:36px 44px 40px; min-width:0; }
.legal-article > :first-child{ margin-top:0; }
.legal-article h2{ font-size:clamp(23px,2.8vw,28px); line-height:1.25; margin:40px 0 10px; padding-top:28px; border-top:1px solid var(--line); }
.legal-article h3{ font-family:var(--font-body); font-weight:700; font-size:18px; margin:22px 0 4px; }
.legal-article p, .legal-article ul, .legal-article .legal-table-wrap{ margin:0 0 14px; }
.legal-article p, .legal-article li{ color:var(--ink-soft); font-size:17px; }
.legal-article strong{ color:var(--ink); }
.legal-article ul{ padding-left:24px; }
.legal-article li{ margin-bottom:7px; }
.legal-article a{ color:var(--link); text-underline-offset:3px; }
.legal-article code{ font-family:var(--font-mono); font-size:.86em; overflow-wrap:anywhere; background:var(--surface-2); padding:2px 5px; border-radius:5px; }
.legal-note{ background:var(--surface-2); border:1px solid var(--line); border-left:4px solid var(--brand-600); border-radius:var(--radius-sm); padding:16px 18px; }
.legal-table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-sm); }
.legal-article table{ width:100%; min-width:520px; border-collapse:collapse; font-size:15.5px; }
.legal-article th, .legal-article td{ border-bottom:1px solid var(--line); padding:11px 14px; text-align:left; vertical-align:top; color:var(--ink-soft); }
.legal-article tr:last-child td{ border-bottom:0; }
.legal-article th{ background:var(--surface-2); color:var(--ink); font-weight:700; }

/* Footer: same as the homepage */
.site-footer{ background:var(--brand-900); color:#dcefe3; padding:32px 0 18px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:16px 32px; }
.footer-grid h5{ color:#fff; font-family:var(--font-body); font-weight:700; font-size:16px; margin:0 0 4px; }
.footer-grid p{ margin:0; font-size:15px; line-height:1.55; color:#c2ddcd; }
.footer-links{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.footer-links a{ display:block; color:#c2ddcd; font-size:15px; line-height:1.55; padding:2px 0; text-decoration:underline; text-underline-offset:3px; }
.footer-links a:hover{ color:#fff; }
.footer-bottom{ margin-top:22px; padding-top:14px; border-top:1px solid rgba(255,255,255,.15); font-size:13.5px; line-height:1.5; color:#a8cbb8; display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 10px; }

@media (max-width:980px){
  .legal-layout{ grid-template-columns:minmax(0,1fr); }
  .legal-toc{ position:static; max-height:none; }
  .legal-toc ol{ columns:2; column-gap:28px; }
  .legal-toc li{ break-inside:avoid; }
}
@media (max-width:768px){
  .wrap{ padding:0 20px; }
  .footer-grid{ grid-template-columns:1.4fr 1fr; gap:16px 24px; }
  .footer-grid > div:first-child{ grid-column:1 / -1; }
  .section{ padding:44px 0 56px; }
  .section-head{ margin-bottom:28px; }
  .legal-article{ padding:24px 20px 26px; }
  .site-header .wrap{ min-height:0; padding-top:8px; padding-bottom:8px; gap:6px 10px; }
  html{ scroll-padding-top:16px; }
  .site-header{ position:static; }
  .brand-mark{ width:32px; height:32px; }
  .brand-name{ font-size:17px; white-space:nowrap; }
  .btn-ghost{ min-height:44px; padding:8px 16px; font-size:15px; }
  .header-link{ font-size:14.5px; min-height:44px; display:inline-flex; align-items:center; }
  .header-actions{ gap:2px 14px; }
  body{ font-size:16px; }
  .legal-article p, .legal-article li{ font-size:16px; }
}
@media (max-width:499px){
  .footer-grid{ grid-template-columns:1fr; gap:14px; }
  .legal-toc ol{ columns:1; }
}
@media print{
  .site-header .header-actions, .site-footer .footer-links, .skip-link, .legal-toc{ display:none; }
  .legal-layout{ display:block; }
  .legal-article{ box-shadow:none; border:0; padding:0; }
  body, .legal-article p, .legal-article li{ background:#fff; color:#000; }
}
