/* Cache website: one stylesheet, no external files */
:root{
  --bg:#F6F4EF; --card:#FFFFFF; --border:#E7E3DA;
  --text:#111111; --text2:#6B665C; --spark:#C9971F;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#111111; --card:#1C1C1E; --border:#2A2A2C;
         --text:#F4F1EA; --text2:#A8A39A; --spark:#FFF3C8; }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:1.0625rem; line-height:1.6;  /* 17px */
}
@media (min-width:768px){ body{font-size:1.125rem} }  /* 18px on laptops */

.wrap{max-width:680px;margin:0 auto;padding:0 20px}
@media (min-width:600px){ .wrap{padding:0 24px} }

/* Header */
.site-header{border-bottom:1px solid var(--border)}
.site-header .wrap{display:flex;align-items:center;height:56px}
.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;
  color:var(--text);text-decoration:none;font-weight:800;font-size:15px;letter-spacing:.08em}
.brand img{width:20px;height:23px}

/* Reading pages (Privacy, Terms, Support) */
main.legal{padding:40px 0 64px}
.legal h1{font-size:2rem;line-height:1.1;font-weight:800;letter-spacing:.01em;
  text-transform:uppercase;margin:0 0 8px}
@media (min-width:768px){ .legal h1{font-size:2.5rem} main.legal{padding-top:56px} }
.updated{color:var(--text2);font-size:.9375rem;margin:0 0 32px}
.legal h2{font-size:1.3125rem;line-height:1.3;font-weight:700;margin:44px 0 12px}
.legal h3{font-size:1.0625rem;line-height:1.35;font-weight:650;margin:28px 0 8px}
.legal p{margin:0 0 16px}
.legal ul,.legal ol{margin:0 0 16px;padding-left:1.4em}
.legal li{margin:0 0 6px}
.legal li::marker{color:var(--text2)}
.legal strong{font-weight:700}
.legal hr{border:0;border-top:1px solid var(--border);margin:40px 0}
.legal table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:.9375rem}
.legal th,.legal td{border:1px solid var(--border);padding:10px 12px;text-align:left;vertical-align:top}
.legal th{background:var(--card);font-weight:700}
.table-scroll{overflow-x:auto}

/* Links */
a{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:2px solid var(--text);outline-offset:3px;border-radius:4px}
.legal a{overflow-wrap:anywhere}  /* long email addresses and URLs wrap on phones */

/* Home */
main.home{padding:48px 0 64px;text-align:center}
@media (min-width:768px){ main.home{padding-top:80px} }
.hero-art{display:block;width:180px;height:auto;margin:0 auto 28px}
@media (min-width:768px){ .hero-art{width:220px} }
.hero-art .spark{fill:var(--spark)}
.hero-art .horizon{fill:var(--text)}
.home h1{font-size:3rem;line-height:1;font-weight:800;letter-spacing:.02em;margin:0}
@media (min-width:768px){ .home h1{font-size:4rem} }
.tagline{font-size:1.375rem;line-height:1.25;font-weight:700;margin:14px 0 0}
.pitch{color:var(--text2);max-width:34ch;margin:12px auto 0}
.badge-slot{margin:32px auto 0;min-height:54px;display:flex;align-items:center;justify-content:center}
.badge-slot img{height:54px;width:auto;display:block}
.badge-slot a{display:inline-block;padding:14px;margin:-14px;text-decoration:none} /* clear space = 1/4 badge height */
.soon{color:var(--text2);font-size:.9375rem;font-weight:600;margin:0}

/* Link rows (same look as the app's Settings rows) */
.rows{list-style:none;margin:40px auto 0;padding:0;max-width:420px;text-align:left;
  background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.rows li+li{border-top:1px solid var(--border)}
.rows a{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 16px;
  text-decoration:none;font-weight:600}
.rows a:hover{background:color-mix(in srgb, var(--text) 4%, transparent)}
.rows a:focus-visible{outline-offset:-3px;border-radius:16px}
.chev{color:var(--text2);font-weight:600}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:24px 0 40px;color:var(--text2);font-size:.875rem;line-height:1.5}
.site-footer nav{display:flex;flex-wrap:wrap;gap:4px 20px;margin-bottom:8px}
.site-footer nav a{color:var(--text2);display:inline-block;padding:10px 0}
.site-footer p{margin:4px 0}

/* Pages without an "Effective date" line (Support, 404): keep the 32px gap under the title */
.legal h1 + :not(.updated){margin-top:24px}
/* At 200% zoom on a phone the hero is wider than the column; let it shrink */
.hero-art{max-width:100%}
@media (max-width:767px){ .home h1{font-size:min(3rem,22vw)} }  /* iPhone SE at 200% zoom: keep "CACHE" on screen */
@media (max-width:767px){ .legal h1{font-size:min(2rem,16vw)} }  /* same for page titles like "SUPPORT" */
h1{text-wrap:balance}  /* no single word left alone on a title's last line */
.legal h1 .keep{display:inline-block}  /* "CACHE / PRIVACY POLICY": the name moves to line 2 as one piece, and still wraps if it can't fit */
