/* legal.js: the Privacy, Terms and Cookie pages, the Terms sheet, the cookie notice. The app's own tokens. */
.lg-page { width: min(760px, 100%); }
.lg-page > .pill-back { margin-bottom: 18px; }
.lg-nav { display: flex; width: max-content; margin: 0 0 26px; }
.lg-draft { display: inline-flex; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: var(--coral-f); color: var(--coral); font-size: 13px; font-weight: 650; }
:root[data-theme="light"] .lg-draft { background: rgb(194 122 0 / .12); color: var(--exam); }
.lg-page .xtitle { margin-bottom: 6px; }
.lg-version { margin: 0 0 16px; color: var(--ink-3); font-size: 13.5px; }
.lg-lead { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.lg-text section { padding: 22px 0 6px; border-top: 1px solid var(--line); }
.lg-text h2 { margin: 0 0 10px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.lg-text p, .lg-text li { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.lg-text p { margin: 0 0 12px; }
.lg-text ul { margin: 0 0 14px; padding-left: 20px; }
.lg-text li { margin: 0 0 8px; }
.lg-text b { color: var(--ink); font-weight: 600; }
.lg-text a, .lg-signin a { color: var(--blue); text-underline-offset: 2px; }
.ss-fine.lg-signin a { color: inherit; text-decoration: underline; }
.lg-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.lg-back { margin: 22px 0 0; }
.lg-ai { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }

/* signed out: the page on its own, in the ground */
.lg-solo { min-height: 100vh; padding: 10px; }
.lg-solo-in { min-height: calc(100vh - 20px); border-radius: 28px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); padding: 0 var(--gut) 80px; animation: rise .45s var(--out); }
.lg-bar { display: flex; align-items: center; justify-content: space-between; width: min(760px, 100%); margin: 0 auto; padding: 26px 0 22px; }
.lg-in { margin: 0 auto; }

/* the Terms sheet: it stays until they accept or sign out */
.overlay.lg-gate { z-index: 80; }
.lg-consent { width: min(480px, 100%); }
.lg-consent h2 { font-size: 32px; }
.lg-consent h2:focus { outline: none; }
.lg-consent .st-text a { color: var(--blue); text-underline-offset: 2px; }
.lg-quiet { justify-self: center; padding: 8px; }

/* the cookie notice: information, not a consent */
.lg-cookie { position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-hi); color: var(--ink-2); font-size: 13.5px; line-height: 1.4; animation: lg-rise .45s var(--out); }
/* its own rise, centred all the way (the app's `rise` dropped the translateX: on a phone it slid in from the right) */
@keyframes lg-rise { from { opacity: 0; transform: translate(-50%, 12px); } }
/* above the phone's tab bar, never over it (4 Nov: none of the five tabs could be pressed until «Ok») */
@media (max-width: 900px) { body:has(.shell) .lg-cookie { bottom: calc(var(--tabbar-h, 64px) + 10px + env(safe-area-inset-bottom)); } }
.lg-cookie a { color: var(--ink); white-space: nowrap; text-underline-offset: 2px; }
.lg-cookie button { flex: none; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 650; }
@media (max-width: 640px) { .lg-cookie { flex-wrap: wrap; border-radius: 22px; padding: 12px 12px 12px 16px; bottom: 10px; } .lg-cookie span { flex: 1 1 100%; } .lg-cookie button { margin-left: auto; } }
.lg-bar .brand { display: flex; }
