/* Reading pages use the same palette and type as the main LoopIn website.
 * Self-contained on purpose: scripts/build-legal.js inlines this file into
 * the app, so its tokens repeat system.css's values rather than importing them. */
@font-face {
  font-family: Geist;
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #0f1115;
  --muted: #5e6470;
  --line: #e7e8eb;
  --card: #f7f7f8;
  --link: #c8323a;
  --focus: #e9474d;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--card); color: var(--ink); }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; border-radius: 4px; }
.info-header, .info-main, .info-footer { width: min(100%, 860px); margin-inline: auto; padding: 24px; }
.info-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.info-header a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { font-size: 24px; font-weight: 650; letter-spacing: -.04em; text-decoration: none; color: var(--ink); }
.header-link { padding: 7px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 15px; transition: background .2s cubic-bezier(.16,1,.3,1), border-color .2s cubic-bezier(.16,1,.3,1); }
.header-link:hover { background: var(--card); border-color: #d4d6db; }
.info-main { padding-top: 48px; padding-bottom: 72px; }
h1 { max-width: 18ch; margin: 0 0 24px; font-size: clamp(36px, 6vw, 58px); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: 25px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 44px 0 16px; }
h3 { font-size: 20px; line-height: 1.4; margin: 28px 0 12px; }
p { margin: 0 0 18px; }
ul { padding-left: 24px; margin: 0 0 20px; }
li { padding-left: 4px; margin-bottom: 12px; }
.legal-copy { max-width: 76ch; }
.last-updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.intro { max-width: 58ch; font-size: 20px; color: var(--muted); }
.contact { margin: 36px 0 44px; padding: 28px; border-radius: 16px; background: var(--card); }
.contact h2 { margin: 0 0 12px; font-size: 21px; }
.contact p { margin: 12px 0 0; }
.email { display: inline-block; min-height: 44px; font-size: clamp(20px, 4vw, 29px); font-weight: 600; overflow-wrap: anywhere; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; padding: 18px 0; min-height: 54px; font-weight: 600; }
details[open] p { animation: info-fade .32s cubic-bezier(.16,1,.3,1) both; }
@keyframes info-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { details[open] p { animation: none; } }
details p { color: var(--muted); margin: 0 0 22px; }
.info-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.info-footer nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.info-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--bg); z-index: 2; }
.skip:focus { top: 8px; }

@media (max-width: 420px) {
  .info-header, .info-main, .info-footer { padding-left: 20px; padding-right: 20px; }
  .info-main { padding-top: 28px; }
  .contact { padding: 22px; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1012; --ink: #ededef; --muted: #a0a4ad; --line: #26282d; --card: #17181b; --link: #ff7a7e; --focus: #ff5a5f; }
}
@media print {
  :root { color-scheme: light; --bg: white; --ink: black; --muted: #444; --link: black; --card: #eee; }
  .info-header, .info-footer, .skip { display: none; }
  .info-main { width: 100%; max-width: none; padding: 0; }
  h2, h3 { break-after: avoid; }
}
