/* Shared stylesheet for the idfire.ai legal pages.
   Served from /legal.css. The CloudFront viewer-request function passes any
   path containing a dot through untouched, so this resolves to the S3 key
   "legal.css" without the directory-index rewrite firing. */
:root{
  --ember:#f2683c;
  --ember-deep:#ec412d;
  --ember-lift:#ff8257;
  --bg:#0a0a0f;
  --panel:#12121a;
  --text:#f8fafc;
  --muted:#c3ccd8;
  /* 6.75:1 on --bg. Measured, not eyeballed: the #64748b used earlier in the
     teaser measured 4.15:1 and sat under the 4.5:1 WCAG AA floor. */
  --dim:#8b98ab;
  --line:rgba(255,255,255,.14);
  --line-soft:rgba(255,255,255,.08);
  --warn-bg:rgba(242,104,60,.09);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.7;
  overflow-x:hidden;
}
a{color:var(--ember-lift);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{color:var(--ember)}
a:focus-visible,summary:focus-visible{outline:2px solid var(--ember-lift);outline-offset:3px;border-radius:2px}

/* ── masthead ─────────────────────────────────────────────────── */
.masthead{
  border-bottom:1px solid var(--line-soft);
  padding:18px 20px;
  position:sticky;top:0;z-index:10;
  background:rgba(10,10,15,.92);
  backdrop-filter:saturate(140%) blur(8px);
}
.masthead-inner{
  max-width:960px;margin:0 auto;
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
}
.wordmark{
  font-weight:800;letter-spacing:.02em;font-size:1.05rem;
  color:var(--text);text-decoration:none;
  display:inline-flex;align-items:center;gap:9px;
}
.wordmark:hover{color:var(--text)}
.wordmark .fire{
  width:11px;height:11px;border-radius:50%;
  background:linear-gradient(160deg,var(--ember-lift),var(--ember-deep));
  box-shadow:0 0 12px rgba(242,104,60,.65);
  flex:none;
}
.masthead nav{margin-left:auto;display:flex;gap:18px;flex-wrap:wrap;font-size:.86rem}
.masthead nav a{color:var(--dim);text-decoration:none}
.masthead nav a:hover,.masthead nav a[aria-current=page]{color:var(--ember-lift)}

/* ── layout ───────────────────────────────────────────────────── */
.wrap{max-width:960px;margin:0 auto;padding:0 20px 88px}
main{max-width:72ch}
h1{
  font-size:clamp(1.85rem,1.2rem + 2.4vw,2.7rem);
  line-height:1.15;letter-spacing:-.01em;margin:44px 0 10px;
}
.subtitle{color:var(--muted);font-size:1.03rem;margin:0 0 6px;max-width:66ch}
.dateline{color:var(--dim);font-size:.85rem;margin:14px 0 0}
.dateline strong{color:var(--muted);font-weight:600}
h2{
  font-size:1.34rem;line-height:1.3;margin:52px 0 12px;
  padding-top:22px;border-top:1px solid var(--line-soft);letter-spacing:-.005em;
}
h3{font-size:1.06rem;margin:30px 0 8px;color:var(--text)}
h4{font-size:.96rem;margin:22px 0 6px;color:var(--muted);font-weight:650}
p,li{color:var(--muted);font-size:1rem}
strong{color:var(--text);font-weight:640}
ul,ol{padding-left:1.3em}
li{margin:7px 0}
li::marker{color:var(--dim)}
hr{border:0;border-top:1px solid var(--line-soft);margin:40px 0}
code,.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.88em;background:rgba(255,255,255,.06);
  padding:.14em .4em;border-radius:4px;color:var(--text);
  overflow-wrap:anywhere;
}

/* ── callouts ─────────────────────────────────────────────────── */
.note{
  background:var(--warn-bg);
  border:1px solid rgba(242,104,60,.34);
  border-left:3px solid var(--ember);
  border-radius:9px;padding:16px 18px;margin:26px 0;
}
.note p{margin:0}
.note p + p{margin-top:10px}
.note .label{
  display:block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ember-lift);font-weight:700;margin-bottom:7px;
}
.plain{
  background:var(--panel);border:1px solid var(--line);
  border-radius:9px;padding:16px 18px;margin:26px 0;
}
.plain p{margin:0}
.plain p + p{margin-top:10px}

/* ── table of contents ────────────────────────────────────────── */
.toc{
  background:var(--panel);border:1px solid var(--line);
  border-radius:11px;padding:8px 20px 18px;margin:34px 0 8px;
}
.toc summary{
  cursor:pointer;font-weight:650;color:var(--text);
  padding:12px 0;font-size:.95rem;list-style-position:outside;
}
.toc ol{margin:4px 0 0;padding-left:1.35em;columns:2;column-gap:32px}
.toc li{margin:5px 0;break-inside:avoid;font-size:.9rem}
.toc a{color:var(--muted);text-decoration:none}
.toc a:hover{color:var(--ember-lift);text-decoration:underline}
@media(max-width:620px){.toc ol{columns:1}}

/* ── tables ───────────────────────────────────────────────────── */
.tablewrap{overflow-x:auto;margin:22px 0;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:480px;font-size:.92rem}
th,td{
  text-align:left;vertical-align:top;
  padding:11px 14px;border-bottom:1px solid var(--line-soft);
}
th{color:var(--text);font-weight:650;border-bottom:1px solid var(--line);white-space:nowrap}
td{color:var(--muted)}
tbody tr:last-child td{border-bottom:0}

/* ── footer ───────────────────────────────────────────────────── */
footer{
  border-top:1px solid var(--line-soft);
  margin-top:64px;padding:26px 20px 40px;
  color:var(--dim);font-size:.83rem;
}
.footer-inner{max-width:960px;margin:0 auto;display:flex;gap:10px 22px;flex-wrap:wrap;align-items:center}
footer a{color:var(--dim);text-decoration:none}
footer a:hover{color:var(--ember-lift)}
.copyright{margin-left:auto}
@media(max-width:620px){.copyright{margin-left:0;width:100%}}

/* ── print: counsel will print this ───────────────────────────── */
@media print{
  :root{--bg:#fff;--text:#000;--muted:#1a1a1a;--dim:#444;--panel:#f4f4f4;
        --line:#bbb;--line-soft:#ddd;--warn-bg:#f7f0ec}
  body{line-height:1.5}
  .masthead{position:static;background:none;backdrop-filter:none}
  .masthead nav,.toc{display:none}
  a{color:#000;text-decoration:underline}
  h2{break-after:avoid}
  table{min-width:0;font-size:.8rem}
  .tablewrap{overflow:visible}
}
