/* Trang tĩnh /luat — không dùng Tailwind/React. Màu, font lấy theo token của app (src/styles.css) và trang pháp lý. */
:root {
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Merriweather", "Times New Roman", Georgia, serif;
  --font-mono: "DM Mono", monospace;
  --ink: #36131d;
  --muted: #7d5962;
  --line: #dec9cd;
  --paper: #fffdfa;
  --wash: #f7f3ed;
  --accent: #c20e35;
  --accent-dark: #92102e;
  --accent-soft: #f8dfe4;
  --warning: #8c5a16;
  --success: #2f7a4f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--wash);
  color: var(--ink);
  font: 16px/1.75 var(--font-sans);
  font-synthesis: none;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

/* Header: logo giống màn trợ lý (AppMark: LegalIcon + BrandWordmark). */
header.site { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 52rem; margin: 0 auto; padding: 12px 16px; font-size: 15px; }
header.site .brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; color: #991b1b; border: 1px solid #e5e0d6; border-radius: 12px; }
.brand-mask { width: 25px; height: 25px; background-color: currentColor; -webkit-mask: url("/legal-icon-mask.png") no-repeat center / contain; mask: url("/legal-icon-mask.png") no-repeat center / contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: #8b1d1d; }
.brand-name small { font-size: 14px; font-weight: 600; color: #a8a29e; }
.brand-tagline { margin-top: 2px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: #78716c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.site .nav { flex: 0 0 auto; font-weight: 600; text-decoration: none; }

/* Thẻ nội dung như .legal-doc-card */
main { max-width: 52rem; margin: 8px auto 0; padding: 2.25rem 2.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 28px rgba(54, 19, 29, 0.04); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 1.25rem; font-size: 0.84rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.kicker { margin: 0; font: 500 0.72rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
h1 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin: 0.5rem 0 0.6rem; }
h2 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin: 2rem 0 0.6rem; }
h3 { font-size: 0.95rem; font-weight: 600; margin: 1.25rem 0 0.4rem; color: var(--muted); }
.doc, .sub { margin: 0; font-size: 0.88rem; color: var(--muted); }
.doc a { color: var(--muted); }

/* Hộp hiệu lực */
.status { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0.9rem 1.1rem; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; font-size: 0.88rem; line-height: 1.6; }
.status li + li { margin-top: 0.35rem; }
.status .ok { color: var(--success); font-weight: 600; }
.status .off { color: var(--warning); font-weight: 600; }

/* Nguyên văn */
.text p { margin: 0 0 0.75rem; }
.text p.diem { padding-left: 1.25rem; }
.table { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; font-size: 0.9rem; width: 100%; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--wash); font-weight: 600; }
.notes, .amends { font-size: 0.88rem; }
.notes ul, .amends ul { padding-left: 1.1rem; }
.notes li, .amends li { margin: 0.3rem 0; color: var(--muted); }

.ask { margin: 2rem 0 0; }
.button { display: inline-block; padding: 0.7rem 1.25rem; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--accent-dark); color: #fff; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; }
.pager a { text-decoration: none; }

/* Trang văn bản, thư viện */
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 1.25rem 0; font-size: 0.9rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.toc ul, .library { padding-left: 1.1rem; }
.toc li, .library li { margin: 0.35rem 0; }
.toc a, .library a { text-decoration: none; }
.toc a:hover, .library a:hover { text-decoration: underline; }
.library .sub { display: block; }

footer.site { max-width: 52rem; margin: 0 auto; padding: 1.5rem 16px 3rem; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 640px) {
  main { margin: 0 10px; padding: 1.5rem 1.1rem; }
  header.site { padding: 10px 12px; }
}
