/* law2bit brand system v.01 / Light (ux:ui/sites/law2bit): Manrope + DM Serif Display, Digital cobalt */
:root {
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --ink: #17202C;
  --muted: #5B6575;
  --blue: #2554EB;
  --blue-dark: #183BB6;
  --blue-ink: #2143A5;
  --pale: #EDF1FF;
  --line: #DCE1E9;
  --green: #167458;
  --radius: 16px;
  --radius-sm: 7px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --measure: 68ch;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .2s, background .2s; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 10px 14px; z-index: 40; border-radius: var(--radius-sm); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 850px) { .wrap { padding: 0 40px; } }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .site-head { position: sticky; top: 0; z-index: 10; background: rgb(247 248 250 / .94); backdrop-filter: saturate(1.2) blur(8px); } }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 32px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 10px 0; }
.brand img { width: 32px; height: 32px; }
.brand b { font: 800 1.6rem/1 var(--sans); letter-spacing: -1.4px; }
.brand span { font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-left: 6px; }
@media (max-width: 640px) { .brand span { display: none; } }
.site-head nav ul { list-style: none; margin: 0; padding: 5px; display: flex; flex-wrap: wrap; gap: 4px; background: #E9EDF3; border-radius: 9px; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 600; border-radius: 6px; }
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 2px 7px #17202c0d; }
@media (max-width: 640px) { .site-head nav { width: 100%; padding-bottom: 12px; } .site-head nav ul { width: 100%; } .site-head nav a { padding: 0 10px; } }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.5px; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -1.5px; margin: 10px 0 16px; }
h1 em, h2 em { font-style: italic; color: var(--blue); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 48px 0 12px; }
h3 { font-size: 1.3rem; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.label { font-size: .7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.label a { color: inherit; text-decoration: none; }
.meta { color: var(--muted); font-size: .88rem; }
.crumbs { font-size: .82rem; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }

/* Reading column */
.prose { max-width: var(--measure); }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 700; }
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th { text-align: left; font-size: .7rem; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: var(--muted); background: #FBFCFD; border-bottom: 1px solid var(--line); padding: 12px 16px; }
td { border-bottom: 1px solid var(--line); padding: 12px 16px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

.note { background: var(--pale); border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: .92rem; color: var(--blue-ink); }
.note strong { font-weight: 700; color: var(--ink); }
.note a { color: var(--blue); }

/* Article / hub grid */
.doc { display: grid; gap: 0 64px; padding-bottom: 24px; }
.doc-head { padding: 28px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
@media (min-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr) 320px; }
  .doc-head { grid-column: 1 / -1; padding-top: 44px; }
  .doc-aside { grid-column: 2; grid-row: 2; }
  .doc-aside > div { position: sticky; top: 104px; }
}
.doc-aside { font-size: .88rem; }
.doc-aside > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 18px; margin-top: 32px; }
.doc-aside h2 { font: 700 .68rem/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.doc-aside ul { list-style: none; padding: 0; margin: 0; }
.doc-aside li { border-top: 1px solid var(--line); }
.doc-aside li:first-child { border-top: 0; }
.doc-aside li a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; line-height: 1.35; }
.doc-aside li a:hover { color: var(--blue); }
.sources ol, .sources ul { padding-left: 1.1em; }
.sources li { margin: .4em 0; border: 0 !important; }
.sources li a { display: inline; padding: 0; color: var(--blue); }
.checked { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; font-size: .78rem; background: var(--white); color: var(--ink); margin-top: 6px; }
.checked svg { display: none; }
.checked::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Home */
.hero { display: grid; gap: 28px; padding: 48px 0 36px; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0 48px; } }
.hero h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 4.6rem); line-height: 1.04; letter-spacing: -2.5px; margin: 18px 0 20px; }
.hero-art { position: relative; min-height: 340px; border-radius: 24px; background: var(--pale); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-art::before, .hero-art::after { content: ''; position: absolute; width: 300px; height: 300px; border: 1px solid #CAD5FF; border-radius: 50%; transform: rotate(-25deg) scaleX(1.4); }
.hero-art::after { width: 420px; height: 420px; }
.hero-art img { width: 180px; transform: rotate(-12deg); filter: drop-shadow(17px 22px 0 #B4C4FF); z-index: 1; }
.hero-art p { position: absolute; left: 24px; right: 24px; bottom: 18px; margin: 0; z-index: 2; font-size: .78rem; color: var(--blue-ink); }
@media (min-width: 960px) { .hero-art { min-height: 440px; } .hero-art img { width: 220px; } }
.badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px; font-size: .75rem; background: var(--white); }
.badge::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.section { padding: 48px 0 8px; border-top: 1px solid var(--line); margin-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 6px 0 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .8rem; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.fact-value { font: 400 1.35rem/1.3 var(--serif); margin: 0; }
.fact-value small { display: block; font: 400 .88rem/1.5 var(--sans); color: var(--muted); margin-top: 8px; }
.fact-src { font-size: .8rem; color: var(--muted); margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--line); }

.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topic a { display: flex; flex-direction: column; min-height: 210px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.topic a:hover { border-color: var(--blue); transform: translateY(-3px); }
.topic-num { font-size: .75rem; font-weight: 700; letter-spacing: 1.4px; color: var(--blue); }
.topic h3 { margin: 22px 0 10px; font-size: 1.45rem; }
.topic p { margin: 0; color: var(--muted); font-size: .9rem; }
.topic svg { margin-top: auto; padding-top: 14px; color: var(--blue); box-sizing: content-box; }

.method { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .method { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.method li { padding: 22px 24px; background: var(--pale); border-radius: var(--radius); color: var(--blue-ink); font-size: .9rem; }
.method strong { display: block; font: 400 1.25rem/1.25 var(--serif); color: var(--ink); margin-bottom: 8px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.list a { font: 400 1.15rem/1.35 var(--serif); text-decoration: none; color: var(--ink); }
.list a:hover { color: var(--blue); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 44px; font-size: .84rem; color: var(--muted); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); text-decoration: none; }
.foot-grid li a:hover { color: var(--ink); }
.brand-foot { display: flex; align-items: center; gap: 8px; font: 800 1.2rem var(--sans); letter-spacing: -1px; color: var(--ink); margin: 0 0 8px; }
.brand-foot img { width: 22px; height: 22px; }

/* Cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 560px; margin: 0 auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 10px 34px rgb(23 32 44 / .14); font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent button { min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 .84rem var(--sans); cursor: pointer; transition: background .2s; }
.consent button:hover { background: var(--pale); }
.consent button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.consent button.primary:hover { background: var(--blue-dark); }
.linklike { background: none; border: 0; padding: 0; min-height: 34px; color: var(--muted); font: inherit; cursor: pointer; }
.linklike:hover { color: var(--ink); }
