/* ============================================================
   leapdeck — legal / document pages
   builds on leapdeck.css tokens + inner.css (.page-hero)
============================================================ */

/* meta line under the hero */
.doc-meta{display:inline-flex;align-items:center;gap:8px;color:var(--ink-faint);font-size:.95rem;margin-top:4px}
.doc-meta svg{width:16px;height:16px;stroke:var(--ink-faint);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* the 4 legal docs as a centered pill row */
.doc-tabs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;max-width:max-content;margin:30px auto 0;padding:7px;
  background:rgba(251,250,247,.7);border:1px solid rgba(255,255,255,.6);border-radius:999px;box-shadow:var(--shadow-sm);
  backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}
.doc-tabs a{font-size:.92rem;font-weight:600;color:var(--ink-soft);padding:.5em 1.15em;border-radius:999px;transition:all .3s var(--ease)}
.doc-tabs a:hover{color:var(--ink);background:rgba(79,157,232,.1)}
.doc-tabs a.active{color:#fff;background:var(--grad);background-size:160% 160%;box-shadow:var(--shadow-brand)}

/* layout: sticky TOC + article */
.doc-wrap{max-width:1080px;margin:0 auto;padding:0 28px}
.doc-layout{display:grid;grid-template-columns:236px 1fr;gap:56px;align-items:start;padding:14px 0 20px}
@media(max-width:880px){.doc-layout{grid-template-columns:1fr;gap:22px}}

/* TOC */
.doc-toc{position:sticky;top:104px}
@media(max-width:880px){.doc-toc{position:static;top:auto;background:var(--surface);border:1px solid var(--line-2);border-radius:var(--radius);padding:18px 18px 12px;box-shadow:var(--shadow-sm)}}
.doc-toc .toc-label{font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-faint);margin-bottom:12px;padding-left:12px}
.doc-toc ol{list-style:none;counter-reset:toc;display:flex;flex-direction:column;gap:2px}
.doc-toc li{counter-increment:toc}
.doc-toc a{display:flex;gap:9px;padding:8px 12px;border-radius:10px;font-size:.93rem;color:var(--ink-soft);line-height:1.4;transition:all .25s var(--ease)}
.doc-toc a::before{content:counter(toc);flex:none;color:var(--ink-faint);font-variant-numeric:tabular-nums;font-weight:700;font-size:.84rem}
.doc-toc a:hover{color:var(--ink);background:rgba(79,157,232,.07)}
.doc-toc a.active{color:var(--blue-deep);background:rgba(79,157,232,.1);font-weight:600}
.doc-toc a.active::before{color:var(--blue)}

/* article */
.doc{max-width:730px;counter-reset:sec}
.doc .lead{font-size:1.12rem;color:var(--ink-soft);line-height:1.75;margin-bottom:26px}
.doc .note{display:flex;gap:12px;background:var(--bg-2);border:1px solid var(--line-2);border-radius:var(--radius);
  padding:16px 20px;color:var(--ink-soft);font-size:.92rem;line-height:1.6;margin-bottom:38px}
.doc .note svg{flex:none;width:20px;height:20px;margin-top:1px;stroke:var(--blue-deep);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

.doc-sec{counter-increment:sec;scroll-margin-top:108px;margin-bottom:46px}
.doc-sec>h2{display:flex;align-items:center;gap:14px;font-size:clamp(1.35rem,2.4vw,1.6rem);line-height:1.25;margin-bottom:16px}
.doc-sec>h2::before{content:counter(sec);flex:none;width:36px;height:36px;border-radius:11px;background:var(--grad);background-size:160% 160%;
  color:#fff;font-family:"Bricolage Grotesque";font-weight:800;font-size:1.02rem;display:grid;place-items:center;box-shadow:var(--shadow-brand)}
.doc-sec h3{font-size:1.1rem;font-weight:700;margin:24px 0 10px;color:var(--ink)}
.doc p{color:var(--ink-soft);line-height:1.85;margin-bottom:14px}
.doc ul,.doc ol.list{color:var(--ink-soft);line-height:1.8;margin:0 0 16px;padding-left:22px}
.doc li{margin-bottom:9px}
.doc li::marker{color:var(--blue)}
.doc strong{color:var(--ink);font-weight:700}
.doc a.inl{color:var(--blue-deep);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(44,108,179,.4)}
.doc a.inl:hover{text-decoration-color:var(--blue-deep)}

/* table */
.doc .tbl{width:100%;border-collapse:collapse;margin:6px 0 18px;border:1px solid var(--line-2);border-radius:var(--radius);overflow:hidden}
.doc .tbl th,.doc .tbl td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line);font-size:.94rem;vertical-align:top}
.doc .tbl thead th{background:var(--bg-2);font-family:"Bricolage Grotesque";font-weight:700;color:var(--ink)}
.doc .tbl td{color:var(--ink-soft);line-height:1.6}
.doc .tbl tbody tr:last-child td{border-bottom:none}
.doc .tbl td:first-child{font-weight:600;color:var(--ink);white-space:nowrap}
@media(max-width:560px){.doc .tbl{font-size:.86rem}.doc .tbl th,.doc .tbl td{padding:10px 12px}.doc .tbl td:first-child{white-space:normal}}

/* contact card */
.contact-card{display:flex;gap:16px;align-items:flex-start;background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--radius-lg);padding:24px 26px;box-shadow:var(--shadow-sm);margin-top:8px}
.contact-card .ico{flex:none;width:46px;height:46px;border-radius:13px;background:var(--grad-soft);display:grid;place-items:center;box-shadow:var(--shadow-sm)}
.contact-card .ico svg{width:22px;height:22px;stroke:var(--blue-deep);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.contact-card .t{font-weight:700;color:var(--ink);margin-bottom:4px}
.contact-card p{margin:0;font-size:.95rem}
