/* The legal pages.

   Long-form reading, so the measure is held to about 40rem and the type is
   generous; same typeface decisions as the front door. Two things here are
   deliberately LOUD, because they must never survive into a final version
   unnoticed: .todo (a blank that needs a real fact) and .lawyer (a question
   for the reviewer). Both are styled to be impossible to miss, and an
   automated test refuses to let either coexist with status "final". */
:root{--ink:#1d1d1f;--dim:#6e6e73;--hair:rgba(0,0,0,.1);--paper:#fff;--band:#f7f5f2;--accent:#ff8c42;
  --todo:#fff2a8;--todo-line:#d4a600;--lawyer:#eaf1ff;--lawyer-line:#4c7bd4}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);
  font:17px/1.62 -apple-system,"SF Pro Text","Inter",system-ui,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:#0a66c2;text-underline-offset:2px}
.top{border-bottom:1px solid var(--hair);background:rgba(255,255,255,.9);position:sticky;top:0;z-index:5;
  -webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px)}
.top div{max-width:46rem;margin:0 auto;padding:13px 22px;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.top a{color:var(--ink);text-decoration:none;font-weight:600;letter-spacing:-.01em}
.top a.here{color:var(--accent)}
.top .brand{margin-right:auto}
main{max-width:46rem;margin:0 auto;padding:34px 22px 80px}
h1{font-size:clamp(32px,6vw,46px);line-height:1.08;letter-spacing:-.028em;font-weight:600;margin:6px 0 10px}
h2{font-size:23px;letter-spacing:-.02em;font-weight:600;margin:42px 0 8px;line-height:1.2}
h3{font-size:18px;letter-spacing:-.012em;font-weight:600;margin:24px 0 4px}
p{margin:10px 0}
ul,ol{padding-left:1.3rem;margin:10px 0}li{margin:5px 0}
.lede{font-size:19px;color:var(--dim);margin:0 0 6px;line-height:1.5}
.meta{font-size:14px;color:var(--dim);margin:6px 0 22px}

/* the draft banner: shown unless status is final */
.draftbar{background:var(--todo);border:2px dashed var(--todo-line);border-radius:14px;padding:12px 16px;
  margin:0 0 22px;font-size:15px;line-height:1.5}
.draftbar b{letter-spacing:-.005em}

.plain{background:var(--band);border-radius:20px;padding:6px 22px 10px;margin:22px 0}
.plain h2{margin-top:16px;font-size:19px}

table{border-collapse:collapse;width:100%;margin:14px 0;font-size:15px;line-height:1.5}
th,td{border-top:1px solid var(--hair);padding:10px 12px 10px 0;text-align:left;vertical-align:top}
th{font-weight:600;color:var(--dim);font-size:13px;letter-spacing:.04em;text-transform:uppercase;border-top:0}
td:first-child{font-weight:600;white-space:nowrap}
@media(max-width:560px){td:first-child{white-space:normal}}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

.todo,.eg{background:var(--todo);border-bottom:2px dashed var(--todo-line);padding:0 4px;border-radius:4px;font-weight:600}
.todo::before{content:"⚠ ";font-weight:400}
.eg{font-weight:600}
.lawyer{display:none;background:var(--lawyer);border-left:4px solid var(--lawyer-line);border-radius:0 12px 12px 0;
  padding:10px 14px;margin:14px 0;font-size:14.5px;line-height:1.5}
.lawyer::before{content:"For the reviewer — ";font-weight:700;color:var(--lawyer-line)}
body.draft .lawyer{display:block}
body:not(.draft) .draftbar{display:none}

footer{border-top:1px solid var(--hair);margin-top:56px;padding-top:20px;font-size:14px;color:var(--dim)}
footer a{color:var(--dim)}

@media print{
  .top,.draftbar{display:none}
  .todo{background:none;border:0}.todo::before{content:"[ "}.todo::after{content:" ]"}
  .lawyer{display:block;border:1px solid #999;background:none}
  a{color:inherit}
}
