/* Owlflow — long-form legal pages. Readability over decoration: these are
   documents people have to be able to actually read. */

.lbar{background:rgba(255,255,255,.92);backdrop-filter:blur(12px);position:sticky;top:0;z-index:30;box-shadow:0 1px 0 var(--ink-06);}
.lbar .inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;}
.lbar .back{font-size:0.875rem;font-weight:600;color:var(--ink);opacity:.72;}
.lbar .back:hover{opacity:1;}

.legal{max-width:780px;padding:48px 20px 90px;}
.legal .eyebrow{display:inline-block;font-size:0.75rem;font-weight:600;color:var(--ink);background:var(--gold-soft);padding:4px 12px;border-radius:var(--r-pill);margin-bottom:14px;}
.legal h1{font-size:2.25rem;font-weight:700;letter-spacing:-0.04em;line-height:1.1;margin-bottom:10px;}
.legal .meta{font-size:0.8125rem;font-weight:500;color:var(--ink-70);margin-bottom:30px;}
.legal h2{font-size:1.25rem;font-weight:700;letter-spacing:-0.025em;margin:40px 0 12px;scroll-margin-top:84px;}
.legal h3{font-size:1rem;font-weight:700;letter-spacing:-0.015em;margin:26px 0 10px;}
.legal p{font-size:0.9375rem;line-height:1.72;color:var(--ink-70);margin-bottom:14px;}
.legal p b, .legal li b{color:var(--ink);}
.legal a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:3px;}
.legal code{font-size:0.875em;background:var(--ink-06);padding:1px 6px;border-radius:5px;}

.legal .ticks{list-style:none;margin:0 0 18px;padding:0;}
.legal .ticks li{display:flex;gap:11px;margin-bottom:11px;font-size:0.9375rem;line-height:1.65;color:var(--ink-70);}
.legal .ticks li::before{content:"";flex:0 0 auto;width:17px;height:17px;margin-top:4px;border-radius:50%;
  background:var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.5-7.2' fill='none' stroke='%23191A2F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;}

.legal .callout{background:var(--gold-soft);border-radius:var(--r-md);padding:20px 22px;margin:0 0 30px;}
.legal .callout.warn{background:rgba(178,58,46,.08);margin:22px 0 26px;}
.legal .callout p{margin:0;color:var(--ink);}
.legal .callout p + p{margin-top:10px;}

.legal .kv{width:100%;border-collapse:collapse;margin:0 0 20px;}
.legal .kv th,.legal .kv td{text-align:left;vertical-align:top;padding:12px 0;border-bottom:1px solid var(--ink-10);
  font-size:0.875rem;line-height:1.6;}
.legal .kv th{width:38%;padding-right:20px;font-weight:700;color:var(--ink);}
.legal .kv td{color:var(--ink-70);}
.legal .kv tr:last-child th,.legal .kv tr:last-child td{border-bottom:0;}
.legal .kv.basis th{width:56%;}

/* anything the lawyer still has to fill in should be impossible to miss */
.todo{background:rgba(178,58,46,.14);color:var(--expense);font-weight:700;padding:1px 7px;border-radius:5px;}

.legal .updated{margin-top:38px;padding-top:22px;border-top:2px solid var(--ink-10);font-size:0.875rem;}

.lfoot{background:var(--ink);color:rgba(255,255,255,.7);padding:22px 0 26px;font-size:0.8125rem;font-weight:500;}
.lfoot .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.lfoot a{color:#fff;font-weight:600;}
.lfoot a:hover{color:var(--gold);}

@media (max-width:620px){
  .legal{padding:34px 20px 70px;}
  .legal h1{font-size:1.75rem;}
  .legal .kv th,.legal .kv.basis th{width:auto;display:block;padding-bottom:4px;border-bottom:0;}
  .legal .kv td{display:block;padding-top:0;}
}

/* the page ends on the town's hills */
.legal-foot{height:150px;background:url(scene-ground.svg?v=4) center bottom/cover no-repeat;}

/* dusk and night */
[data-tone="dark"] .lbar{background:var(--glass-bar);box-shadow:0 1px 0 var(--line);}
[data-tone="dark"] .lfoot{background:var(--foot);box-shadow:0 -1px 0 var(--line);}
[data-tone="dark"] .lfoot a{color:var(--ink);}
