/* Shared styling for the customer-facing legal pages (terms.html, privacy.html).
   Same design system as book.html / portal.html — quiet, readable, on-brand. */
:root{--bg:#08080a;--bg-raise:#0e0e11;--surface:#121216;--line:#24242b;--line-soft:#1c1c22;
--text:#f4f4f6;--muted:#9c9ca6;--muted-dim:#6f6f78;--red:#c1121f;--red-lift:#d92534;--radius:14px}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--text);line-height:1.65;overflow-x:hidden;
font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--text)}
:focus-visible{outline:2px solid var(--red-lift);outline-offset:3px;border-radius:6px}
.wrap{max-width:760px;margin:0 auto;padding:0 20px}
.topbar{border-bottom:1px solid var(--line-soft);background:var(--bg-raise);padding:16px 0}
.topbar .wrap{display:flex;align-items:center;gap:12px}
.mark{width:38px;height:38px;flex:0 0 38px;border-radius:50%;position:relative;
background:radial-gradient(circle at 50% 42%,#101014,#030304);box-shadow:inset 0 0 0 1px rgba(154,160,165,.45)}
.mark img{position:absolute;inset:0;margin:auto;width:84%}
.brand{font-weight:700;letter-spacing:-.01em;text-decoration:none}
.brand small{display:block;font-size:.68rem;font-weight:600;letter-spacing:.16em;
text-transform:uppercase;color:var(--muted-dim)}
.back{margin-left:auto;font-size:.86rem;color:var(--muted);text-decoration:none;
min-height:44px;display:flex;align-items:center;padding:0 4px}
.back:hover{color:var(--text)}
main{padding:clamp(34px,6vw,60px) 0 70px}
.eyebrow{font-size:.68rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--red)}
h1{font-size:clamp(1.7rem,5vw,2.4rem);font-weight:700;letter-spacing:-.03em;margin:10px 0 6px;line-height:1.1}
.meta{color:var(--muted-dim);font-size:.82rem;margin-bottom:26px}
.doc{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--radius);
padding:clamp(20px,4vw,32px)}
.doc h2{font-size:1.02rem;font-weight:600;letter-spacing:-.01em;margin:26px 0 8px}
.doc h2:first-child{margin-top:0}
.doc p{color:#d3d3da;font-size:.93rem;margin-bottom:12px}
.doc ul{margin:0 0 14px 20px}
.doc li{color:#d3d3da;font-size:.92rem;padding:3px 0}
.doc a{color:#ff8a93}
.terms-body{white-space:pre-wrap;color:#d3d3da;font-size:.9rem;line-height:1.75}
.note{margin-top:22px;padding:16px 18px;border-radius:12px;background:rgba(193,18,31,.07);
border:1px solid rgba(193,18,31,.28);color:#e9c9cc;font-size:.86rem}
footer{border-top:1px solid var(--line-soft);padding:30px 0 44px;background:var(--bg-raise)}
footer .wrap{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:.82rem;color:var(--muted-dim);align-items:center}
/* These were 32px tall, and the email link collapsed to 19px because an inline
   <a> that wraps takes the height of its last line box. min-height alone cannot
   fix a wrapped inline element, so the links are laid out as flex items with
   real vertical padding — 44px is the tap-target floor used across the portal. */
footer a{color:var(--muted);text-decoration:none;min-height:44px;display:inline-flex;
align-items:center;padding:4px 0;line-height:1.4;overflow-wrap:anywhere}
footer a:hover{color:var(--text)}
footer span{display:inline-flex;align-items:center;min-height:44px}
