/* ================= Faqet ligjore (lib/legal.js) =================
   Faqe më vete (pa skriptet e dyqanit), me të njëjtat ngjyra dhe shkronja si dyqani i ri:
   e zezë, fildish, krem dhe ari rozë vetëm për vija dhe theksa. Teksti në një kolonë të lexueshme (~70 shkronja). */
:root {
  --ink: #141110;
  --text: #2b2623;
  --muted: #6b625c;
  --line: #e6ddd3;
  --bg: #faf7f3;
  --cream: #f1e9e0;
  --rose: #b98468;
  --rose-light: #d8ae96;
  --rose-text: #855640;
  --f-head: 'Marcellus', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-body: 'Nunito Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gut: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lg-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.lg-skip { position: absolute; left: 8px; top: -80px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.lg-skip:focus { top: 8px; }

/* ---------- Koka ---------- */
.lg-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.lg-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.lg-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-height: 48px; }
.lg-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.lg-brand span { font: 400 23px/1.2 var(--f-head); }
.lg-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lg-back:hover { text-decoration-thickness: 2px; }

/* ---------- Faqja: lista anash + teksti ---------- */
.lg-main { padding-top: 48px; padding-bottom: 80px; outline: none; }
.lg-grid { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 72px; justify-content: center; }
.lg-side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; font-size: 14.5px; line-height: 1.45; }
.lg-toc summary, .lg-pages h2 { display: block; margin: 0 0 10px; font: 700 12.5px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-text); list-style: none; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol, .lg-pages ul { list-style: none; margin: 0; padding: 0; }
.lg-toc li a, .lg-pages li a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.lg-toc li a:hover, .lg-pages li a:hover { color: var(--ink); border-left-color: var(--rose); }
.lg-pages { margin-top: 32px; }
.lg-pages a[aria-current] { color: var(--ink); font-weight: 700; border-left: 2px solid var(--ink); padding-left: 11px; }

.lg-doc h1 { font: 400 42px/1.15 var(--f-head); color: var(--ink); margin: 0 0 10px; }
.lg-updated { margin: 0 0 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.lg-print-url { display: none; }
.lg-doc h2 { font: 400 26px/1.25 var(--f-head); color: var(--ink); margin: 44px 0 12px; scroll-margin-top: 20px; }
.lg-doc h3 { font: 700 17px/1.4 var(--f-body); color: var(--ink); margin: 26px 0 6px; }
.lg-doc p { margin: 0 0 14px; }
.lg-doc p, .lg-doc li { overflow-wrap: break-word; }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px; padding-left: 0; }
.lg-doc ul { list-style: none; }
.lg-doc ul li { position: relative; padding-left: 22px; margin-bottom: 7px; }
.lg-doc ul li::before { content: ''; position: absolute; left: 2px; top: .82em; width: 9px; border-top: 1px solid var(--rose); }
.lg-doc ol { padding-left: 24px; }
.lg-doc ol li { margin-bottom: 7px; padding-left: 4px; }
.lg-doc ol li::marker { color: var(--rose-text); font-weight: 700; }
.lg-doc strong { color: var(--ink); }
.lg-doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.lg-doc a:hover { text-decoration-thickness: 2px; }
.lg-doc blockquote { margin: 6px 0 20px; padding: 16px 20px; background: var(--cream); border-left: 2px solid var(--rose); font-size: 16px; }
.lg-doc blockquote p { margin: 0 0 4px; }
.lg-doc blockquote p:last-child { margin: 0; }

/* ---------- Fundi ---------- */
.lg-foot { background: var(--ink); color: #d6ccc2; font-size: 14.5px; line-height: 1.6; padding: 40px 0 28px; }
.lg-foot-nav ul { list-style: none; margin: 0 0 22px; padding: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid #36302c; }
.lg-foot-nav a { display: inline-block; padding: 6px 0; color: #efe7de; text-decoration: none; font-size: 15px; }
.lg-foot-nav a:hover, .lg-foot-nav a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--rose-light); text-underline-offset: 4px; }
.lg-foot :focus-visible { outline-color: var(--rose-light); }
.lg-foot p { margin: 0 0 8px; }
.lg-id { color: #efe7de; }
.lg-cards { margin: 14px 0 12px !important; }
.lg-cards img { max-height: 46px; width: auto; background: #fff; padding: 6px 10px; border-radius: 2px; }
.lg-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lg-cards img.card-b { width: 48px; height: 32px; max-height: none; padding: 0; background: none; border-radius: 4px; }
.lg-cards-lbl { margin-right: 8px; font-size: 13px; color: #d6ccc2; }
.lg-copy { color: #a99e95; font-size: 13.5px; margin-top: 16px !important; }

/* ---------- Telefon dhe tablet ---------- */
@media (max-width: 899px) {
  :root { --gut: 24px; }
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lg-side { position: static; max-height: none; overflow: visible; order: 0; }
  .lg-doc { order: 1; }
  .lg-pages { display: none; }
  .lg-toc { margin: 0 0 28px; border: 1px solid var(--line); background: #fff; }
  .lg-toc summary { margin: 0; padding: 12px 16px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
  .lg-toc summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; }
  .lg-toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .lg-toc ol { padding: 0 16px 10px; }
  .lg-toc li a { padding: 9px 0 9px 12px; }
  .lg-doc h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  body { font-size: 16px; line-height: 1.65; }
  .lg-head-in { min-height: 68px; }
  .lg-brand { gap: 10px; }
  .lg-brand img { width: 40px; height: 40px; }
  .lg-brand span { font-size: 19px; }
  .lg-back { font-size: 14px; }
  .lg-main { padding-top: 28px; padding-bottom: 56px; }
  .lg-doc h1 { font-size: 29px; }
  .lg-doc h2 { font-size: 22px; margin-top: 36px; }
  .lg-doc blockquote { padding: 14px 16px; font-size: 15px; }
  .lg-foot-nav ul { gap: 2px 20px; }
  .lg-foot-nav a { padding: 9px 0; }
}

/* ---------- Printimi ---------- */
@media print {
  @page { margin: 16mm 15mm; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .lg-wrap { max-width: none; padding: 0; }
  .lg-head { border: 0; background: none; }
  .lg-head-in { min-height: 0; padding-bottom: 6pt; border-bottom: 1px solid #999; }
  .lg-back, .lg-skip, .lg-side, .lg-foot-nav, .lg-cards { display: none !important; }
  .lg-main { padding: 12pt 0 0; }
  .lg-grid { display: block; }
  .lg-doc { max-width: none; }
  .lg-updated { margin-bottom: 4pt; padding-bottom: 0; border: 0; }
  .lg-print-url { display: block; margin: 0 0 14pt; padding-bottom: 8pt; border-bottom: 1px solid #ccc; font-size: 9pt; color: #555; }
  .lg-doc h2 { break-after: avoid; page-break-after: avoid; margin-top: 18pt; }
  .lg-doc a { text-decoration: none; color: #000; }
  .lg-doc blockquote { background: none; border: 1px solid #999; }
  .lg-foot { background: none; color: #000; padding: 12pt 0 0; border-top: 1px solid #999; }
  .lg-id, .lg-copy { color: #000; }
}
