/* DAWNWRIT — privacy, terms and 404 pages. Owner: Web / Release Engineer.
   Loaded AFTER css/ui.css and built only from its variables and blocks (.topbar, .folio, .prose, .slab, .foot). */

body.legal { padding-bottom: 0; }
.legal .topbar { justify-content: space-between; }
.legal main { max-width: 900px; }
.legal .view { padding-top: 40px; }
.legal .page-head { margin: 0 6px 26px; }
.legal__kicker { font-family: var(--f-px); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gilt); margin-bottom: 10px; }
.legal__date { margin-top: 8px; color: var(--slate); font-size: 14px; }

/* the short version: a dark slab above the parchment */
.legal__short { margin: 0 6px 26px; padding: 20px 24px 22px; }
.legal__short ul { display: grid; gap: 8px; }
.legal__short li { position: relative; padding-left: 22px; color: var(--bone); max-width: 70ch; }
.legal__short li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; background: var(--glass); transform: rotate(45deg); }

/* the long version */
.legal .prose { max-width: none; }
.legal .prose h2 { scroll-margin-top: calc(var(--bar-h) + 16px); }
.legal .prose h3 { font-family: var(--f-px); font-size: 16px; font-weight: 700; letter-spacing: .03em; margin: 20px 0 6px; color: var(--ember-deep); }
.legal .prose p, .legal .prose ul { max-width: 70ch; }
.legal .prose p + ul, .legal .prose ul + p, .legal .prose h3 + ul { margin-top: 10px; }
.legal .prose p:last-child { margin-top: 12px; }
.legal .prose a { color: var(--ember-deep); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .prose a:hover { color: var(--blood-dark); }
.legal .prose b, .legal .prose strong { font-weight: 700; }

/* who holds what: a ruled ledger */
.ledger { width: 100%; max-width: 760px; margin: 14px 0 6px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 2px solid rgba(13, 10, 20, .16); }
.ledger thead th { font-weight: 700; color: var(--ink-soft); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom-color: var(--gilt-deep); }
.ledger tbody th { font-weight: 700; white-space: nowrap; padding-right: 18px; }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 0; }

.legal__back { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 6px 0; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - var(--bar-h) - 150px); min-height: calc(100dvh - var(--bar-h) - 150px); display: grid; place-items: center; padding: 40px 0; }
.lost__panel { width: min(100%, 620px); padding: 38px 40px 40px; text-align: center; }
.lost__no { font-family: var(--f-px); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-deep); }
.lost__h { font-family: var(--f-black); font-weight: 400; font-size: clamp(38px, 8vw, 58px); line-height: 1.02; margin: 12px 0 14px; color: var(--ink); text-shadow: 2px 2px 0 rgba(242, 182, 50, .55); }
.lost__panel p { max-width: 44ch; margin: 0 auto; }
.lost__panel .rule { margin: 26px 0 26px; }
.lost__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

@media (max-width: 760px) {
  .legal .view { padding-top: 24px; }
  .legal__short { padding: 16px 16px 18px; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; }
  .ledger thead { display: none; }
  .ledger tbody th { border-bottom: 0; padding-bottom: 0; white-space: normal; }
  .ledger td { padding-top: 4px; }
  .ledger tr:last-child td { border-bottom: 0; }
  .lost__panel { padding: 28px 20px 30px; }
}
