/* Legalway blog: shared article and listing styles (same tokens as the main site). */
:root {
  --navy: #04345a; --navy-2: #032844; --flame: #ee3e17; --gold: #ffcd00;
  --white: #ffffff; --mist: #eef3f8; --soft: #4a6079; --line: #d5dfea; --go: #12854a;
  --fire: linear-gradient(90deg, #ee3e17, #ffcd00);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 1.0625rem/1.7 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.kicker { font: 700 0.74rem/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--flame); margin: 0; }

.topbar { background: var(--navy-2); color: var(--white); text-align: center; font-size: 0.95rem; }
.topbar p { margin: 0; padding-block: 11px; }
.topbar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.bar-nav { background: var(--navy); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.nav img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 24px; font: 600 0.88rem var(--sans); }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.85); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 700 0.86rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.btn-flame { background: var(--flame); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }

/* listing */
.blog-head { background: var(--navy); color: var(--white); padding-block: 56px 64px; }
.blog-head h1 { margin: 10px 0 12px; font: 800 clamp(2rem, 4.6vw, 3.2rem)/1.05 var(--sans); text-transform: uppercase; }
.blog-head h1 em { font: italic 500 1em var(--serif); text-transform: none; color: var(--gold); }
.blog-head p { margin: 0; color: rgba(255,255,255,.82); max-width: 60ch; font-size: 1.1rem; }
.blog-head .kicker { color: var(--gold); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 56px 80px; }
.post-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; background: var(--white); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(4,52,90,.4); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card div { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.post-card h2 { margin: 0; font: 800 1.15rem/1.25 var(--sans); }
.post-card p { margin: 0; color: var(--soft); font-size: 0.97rem; }
.post-card .more { font: 700 0.8rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--flame); }

/* article */
.art-hero { position: relative; color: var(--white); background: var(--navy) center / cover no-repeat; }
.art-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,52,90,.55), rgba(4,52,90,.92)); }
.art-hero > * { position: relative; }
.art-hero .wrap { padding-block: 72px 56px; max-width: 900px; }
.art-hero .kicker { color: var(--gold); }
.art-hero h1 { margin: 12px 0 14px; font: 800 clamp(1.9rem, 4.4vw, 3rem)/1.08 var(--sans); text-transform: uppercase; text-wrap: balance; }
.art-hero h1 em { font: italic 500 1.02em var(--serif); text-transform: none; color: var(--gold); }
.art-hero .meta { font-size: 0.9rem; color: rgba(255,255,255,.75); }
.crumbs { font-size: 0.85rem; margin-bottom: 8px; }
.crumbs a { color: rgba(255,255,255,.8); }

.article { max-width: 760px; margin: 0 auto; padding: 48px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
.article p { margin: 0 0 18px; }
.article .lead { font-size: 1.2rem; color: var(--soft); }
.article h2 { font: 800 1.55rem/1.2 var(--sans); text-transform: uppercase; margin: 44px 0 14px; }
.article h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--fire); margin-top: 10px; }
.article h3 { font: 700 1.1rem/1.3 var(--sans); margin: 26px 0 8px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin: 6px 0; }
.article li::marker { color: var(--flame); font-weight: 700; }
.article strong { color: var(--navy); }
.toc { background: var(--mist); border-radius: 14px; padding: 18px 22px; margin: 26px 0 8px; }
.toc p { margin: 0 0 8px; font: 700 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame); }
.toc ol { margin: 0; }
.toc a { text-decoration: none; color: var(--navy); }
.toc a:hover { color: var(--flame); }
.box { background: var(--mist); border-left: 5px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin: 22px 0; }
.box.warn { border-left-color: var(--flame); }
.box p:last-child { margin: 0; }
.crit { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: 0.97rem; }
.crit th { text-align: left; font: 700 0.78rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: 10px 12px; }
.crit td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.crit td:first-child { font-weight: 700; width: 36%; }
.table-wrap { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 700 1rem/1.35 var(--sans); display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.5rem/0.8 var(--serif); color: var(--flame); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--soft); }
.cta-box { margin: 40px 0 10px; background: var(--navy); color: var(--white); border-radius: 18px; padding: 28px; display: grid; gap: 14px; justify-items: start; }
.cta-box h3 { margin: 0; font: 800 1.3rem/1.2 var(--sans); text-transform: uppercase; }
.cta-box h3 em { font: italic 500 1.05em var(--serif); text-transform: none; color: var(--gold); }
.cta-box p { margin: 0; color: rgba(255,255,255,.85); }
.related { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; }
.related p { font: 700 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame); margin-bottom: 8px; }
.related a { display: block; font-weight: 700; padding: 6px 0; }
.disclaimer { font-size: 0.85rem; color: var(--soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }

footer { background: var(--navy-2); color: rgba(255,255,255,.75); font-size: 0.88rem; }
.foot { display: grid; grid-template-columns: auto 1fr; gap: 40px; padding-block: 44px 28px; }
.foot img { height: 60px; width: auto; }
.foot p { margin: 0 0 10px; max-width: 76ch; }
.foot b { color: var(--white); }
.wa-float { position: fixed; z-index: 30; right: max(20px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 960px) { .nav-links { display: none; } .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } .foot { grid-template-columns: 1fr; gap: 18px; } .nav img { height: 40px; } }
