/* Legal pages (/privacy, /terms): a quiet reading page in the VooSquare look. Server-rendered by src/legal.js. */
.lg-body { background: #fff; color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.lg-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px max(16px, calc((100vw - 1120px) / 2)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.04em; color: var(--ink); text-decoration: none; min-height: 44px; }
.lg-brand b span { color: var(--brand); }
.lg-nav { display: flex; gap: 4px; }
.lg-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.lg-nav a:hover { background: var(--bg2); color: var(--ink); }
.lg-nav a[aria-current="page"] { color: var(--deep); background: var(--tint); }

.lg { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px 16px 72px; display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "head head" "toc doc"; column-gap: 56px; row-gap: 32px; }
.lg-head { grid-area: head; display: grid; gap: 10px; max-width: 760px; }
.lg-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.05em; }
.lg-meta { color: var(--muted); font-size: 14px; font-weight: 600; }
.lg-draft { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 12px 14px; border-radius: var(--r1); background: var(--warn-tint); color: var(--warn); font-size: 14px; font-weight: 700; line-height: 1.45; border: 1px solid #F3D6AE; }
.lg-draft span { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(180,83,9,.15); }

.lg-toc { grid-area: toc; position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; }
.lg-toc b { font-size: 12px; color: var(--muted2); margin-bottom: 6px; }
.lg-toc a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); border-radius: 0 10px 10px 0; transition: color .2s, border-color .2s, background .2s; }
.lg-toc a:hover { color: var(--ink); border-left-color: var(--brand); background: var(--bg2); }

.lg-doc { grid-area: doc; max-width: 68ch; font-size: 17px; line-height: 1.65; color: var(--ink2); }
.lg-doc h2 { font-size: 24px; letter-spacing: -.035em; color: var(--ink); margin: 40px 0 12px; scroll-margin-top: 88px; }
.lg-doc h2:first-child { margin-top: 0; }
.lg-doc h3 { font-size: 18px; letter-spacing: -.02em; margin: 24px 0 8px; color: var(--ink); }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.lg-doc li { position: relative; padding-left: 22px; }
.lg-doc li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.lg-doc b { color: var(--ink); }
.lg-doc a { color: var(--deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lg-doc code { font-family: var(--f-m); font-size: 14px; background: var(--bg2); padding: 1px 6px; border-radius: 6px; }
.lg-note { padding: 12px 14px; border-radius: var(--r1); background: var(--bg2); font-size: 15px; }

.lg-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding: 20px max(16px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.lg-foot a { color: var(--muted); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.lg-foot a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 860px) {
  .lg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "doc"; padding-top: 32px; row-gap: 24px; }
  .lg-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .lg-toc b { flex-basis: 100%; margin-bottom: 0; }
  .lg-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; font-size: 13.5px; }
  .lg-doc { font-size: 16px; }
}
@media (max-width: 420px) {
  .lg-nav a { padding: 0 8px; font-size: 13px; }
  .lg-brand b { display: none; }
}
@media print { .lg-top, .lg-toc, .lg-foot { display: none; } .lg { display: block; padding: 0; } }
