/* Privacy policy and terms (core/legal.php): a brand band with the title, then the contents list beside the text.
   Uses the app's own tokens (ws.css), so light and dark follow the person's choice. */
.lx-page { min-height: 100dvh; margin: 0; background: var(--ws-panel-2); color: var(--ws-ink); font-family: 'Cairo', system-ui, Tahoma, sans-serif; font-size: 17px; line-height: 1.8; overflow: auto; }
.lx-wrap { max-width: 1440px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 40px); }
.lx-top { background: #022847; color: #fff; }
.lx-top .lx-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; min-height: 72px; }
.lx-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; }
.lx-logo img { border-radius: 12px; }
.lx-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.lx-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.lx-nav a:hover { background: rgba(255,255,255,.12); }
.lx-nav .lx-open { background: #fff; color: #022847; }
.lx-nav .lx-open:hover { background: #e6f4f3; }
.lx-hero { background: linear-gradient(135deg, #01807b 0%, #015e66 45%, #022847 100%); color: #fff; padding-block: clamp(28px, 5vw, 56px); }
.lx-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 700; font-size: 15px; }
.lx-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.3; }
.lx-lead { max-width: 900px; margin: 0 0 10px; color: rgba(255,255,255,.9); font-size: 18px; }
.lx-lead a { color: #fff; font-weight: 700; }
.lx-date { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; }
.lx-body { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-block: 28px 40px; }
.lx-toc { position: sticky; top: 16px; padding: 18px; border-radius: 16px; background: var(--ws-panel); border: 1px solid var(--ws-line); }
.lx-toc h2 { margin: 0 0 8px; font-size: 18px; }
.lx-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lx-toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 44px; padding: 4px 8px; border-radius: 10px; color: var(--ws-ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.lx-toc a:hover { background: var(--ws-hover); }
.lx-toc .n, .lx-doc h2 .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(var(--ws-brand-rgb), .12); color: var(--ws-brand-ink); font-size: 15px; font-weight: 800; }
.lx-doc { display: grid; gap: 16px; min-width: 0; }
.lx-doc section { padding: clamp(18px, 2.4vw, 28px); border-radius: 16px; background: var(--ws-panel); border: 1px solid var(--ws-line); scroll-margin-top: 16px; }
.lx-doc h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 21px; font-weight: 800; }
.lx-doc p { margin: 0 0 10px; }
.lx-doc p:last-child, .lx-doc ul:last-child { margin-bottom: 0; }
.lx-doc ul { margin: 0 0 10px; padding-inline-start: 1.3rem; display: grid; gap: 6px; }
.lx-doc a { color: var(--ws-brand-ink); font-weight: 700; }
.lx-foot { padding-block: 22px; border-top: 1px solid var(--ws-line); color: var(--ws-muted); font-size: 15px; text-align: center; }
.lx-foot a { color: var(--ws-muted); }
[data-theme="dark"] .lx-top { background: #061520; }
@media (max-width: 900px) {
  .lx-body { grid-template-columns: minmax(0, 1fr); }
  .lx-toc { position: static; }
  .lx-toc ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}
@media print { .lx-top, .lx-toc, .lx-foot { display: none; } .lx-hero { background: none; color: #000; } .lx-lead, .lx-date { color: #000; } }
