/* ============================================================
   Famio — legal pages
   Exact same dark system as Famio Landing v1
   True black · heart-red · Newsreader display · Apple-minimal
   ============================================================ */

:root{
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: 'Newsreader', 'New York', Georgia, serif;

  --bg:        #000000;
  --surface:   #1c1c1e;
  --surface-2: #2c2c2e;

  --text:   #f5f5f7;
  --text-2: rgba(235,235,245,0.72);
  --text-3: rgba(235,235,245,0.60);
  --text-4: rgba(235,235,245,0.50);

  --line:    rgba(84,84,88,0.5);
  --line-2:  rgba(84,84,88,0.28);
  --hairline: rgba(255,255,255,0.07);

  --accent:      #ff2d55;
  --accent-ink:  #ff6b86;
  --accent-soft: rgba(255,45,85,0.12);
  --glow:        rgba(255,45,85,0.14);

  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-pill:999px;
  --sh-glass: 0 12px 36px rgba(0,0,0,0.5);

  --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px;
  --s-7:32px; --s-8:40px; --s-9:56px; --s-10:72px;
  --section-y: clamp(40px, 5vw, 72px);
  --stack: clamp(18px,1.9vw,24px);

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1100px;
  --ease: cubic-bezier(0.22, 0.61, 0.18, 1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; scroll-padding-top:80px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{ margin:0; background:var(--bg); color:var(--text); font-family:var(--font);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; overflow-x:hidden; }
::selection{ background:rgba(255,45,85,0.28); }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }

/* ---- a11y ---- */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link{ position:fixed; top:-60px; left:50%; transform:translateX(-50%); z-index:200;
  background:var(--surface); color:var(--text); padding:10px 20px;
  border-radius:0 0 12px 12px; border:1px solid var(--hairline);
  font-size:14px; font-weight:550; transition:top .25s var(--ease); }
.skip-link:focus{ top:0; }
:focus-visible{ outline:2px solid var(--accent-ink); outline-offset:3px; border-radius:4px; }
:focus:not(:focus-visible){ outline:none; }

/* ============================================================
   NAV — identical floating frosted pill from landing page
   ============================================================ */
.l-nav{ position:fixed; top:14px; left:0; right:0; z-index:100;
  pointer-events:none; padding:0 clamp(12px,4vw,28px); }
.l-nav-in{ pointer-events:auto; display:flex; align-items:center;
  justify-content:space-between; height:54px; max-width:var(--maxw);
  margin:0 auto; padding:0 10px 0 22px; border-radius:var(--r-pill);
  background:rgba(28,28,30,0.7); backdrop-filter:saturate(170%) blur(22px);
  -webkit-backdrop-filter:saturate(170%) blur(22px);
  border:1px solid rgba(255,255,255,0.09);
  box-shadow:0 1px 1px rgba(0,0,0,0.04), 0 8px 30px rgba(0,0,0,0.2);
  transition:background .3s ease, border-color .3s; }
.lockup{ display:inline-flex; align-items:center; gap:0.5em; color:var(--text); }
.word{ font-family:'Manrope',var(--font); font-weight:400; text-transform:uppercase;
  letter-spacing:0.24em; padding-left:0.24em; line-height:1; }
.back-link{ display:inline-flex; align-items:center; gap:8px;
  color:rgba(235,235,245,0.62); font-size:14.5px; font-weight:450;
  transition:color .2s var(--ease); padding:9px 14px;
  border-radius:var(--r-pill); background:transparent;
  border:1px solid transparent; cursor:pointer; font-family:var(--font); }
.back-link:hover{ color:var(--text); background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.1); }
.back-link svg{ transition:transform .3s var(--ease); flex:0 0 auto; }
.back-link:hover svg{ transform:translateX(-3px); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.l-header{ padding:clamp(120px,15vw,168px) 0 clamp(48px,5vw,72px);
  position:relative; overflow:hidden; }
.l-header::before{ content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(900px 500px at 50% -5%, var(--glow) 0%, rgba(255,45,85,0) 55%); }
.l-header-in{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
  position:relative; z-index:1; }
.l-tag{ font-family:var(--font); font-size:14px; font-weight:600;
  letter-spacing:0.01em; color:var(--accent-ink); margin:0 0 var(--s-5); }
.l-header h1{ font-family:var(--display); font-weight:500;
  font-size:clamp(36px,5.5vw,72px); line-height:1.04; letter-spacing:-0.025em;
  color:var(--text); margin:0 0 var(--s-5); max-width:820px; }
.l-meta{ font-size:13.5px; color:var(--text-3); margin:0; letter-spacing:-0.005em; }
.l-intro{ margin:var(--s-7) 0 0; font-size:clamp(17px,1.6vw,20px);
  color:var(--text-2); line-height:1.55; max-width:62ch; letter-spacing:-0.012em; }

/* ============================================================
   BODY LAYOUT — content + sticky ToC
   ============================================================ */
.l-body{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
  display:grid; grid-template-columns:1fr 232px; gap:clamp(40px,5vw,88px);
  align-items:start; padding-top:clamp(48px,5vw,72px);
  padding-bottom:clamp(80px,8vw,140px); }

/* ============================================================
   DOCUMENT CONTENT
   ============================================================ */
.l-content{ min-width:0; }
.l-section{ padding-top:clamp(36px,4vw,56px); }
.l-section:first-child{ padding-top:0; }
.l-section + .l-section{ border-top:1px solid var(--line-2);
  margin-top:clamp(36px,4vw,56px); }

.l-section h2{ font-family:var(--display); font-weight:500;
  font-size:clamp(22px,2.4vw,30px); letter-spacing:-0.02em;
  line-height:1.15; margin:0 0 var(--s-6); color:var(--text);
  display:flex; align-items:flex-start; gap:14px; }
.sec-num{ font-family:var(--font); font-size:11.5px; font-weight:700;
  letter-spacing:0.08em; color:var(--accent-ink);
  background:var(--accent-soft); border-radius:6px;
  padding:4px 8px; margin-top:6px; flex:0 0 auto; white-space:nowrap; }

.l-section p{ font-size:17px; color:var(--text-2); line-height:1.7;
  letter-spacing:-0.01em; margin:0 0 var(--s-5); max-width:66ch; }
.l-section p:last-child{ margin-bottom:0; }
.l-section p strong{ color:var(--text); font-weight:600; }

.l-section ul{ margin:var(--s-4) 0 var(--s-6); padding:0;
  display:flex; flex-direction:column; gap:11px; list-style:none; }
.l-section ul li{ display:flex; align-items:flex-start; gap:13px;
  font-size:17px; color:var(--text-2); line-height:1.6;
  letter-spacing:-0.01em; max-width:66ch; }
.l-section ul li::before{ content:''; width:5px; height:5px; border-radius:50%;
  background:var(--accent-ink); flex:0 0 auto; margin-top:9px; }

.l-email{ display:inline-flex; align-items:center; gap:9px; margin-top:var(--s-5);
  color:var(--accent-ink); font-size:17px; font-weight:550;
  border-bottom:1px solid rgba(255,107,134,0.3); padding-bottom:2px;
  transition:color .2s, border-color .2s; }
.l-email:hover{ color:#ff8fa6; border-color:rgba(255,143,166,0.55); }

/* closing note — same glass style as landing's frosted cards */
.l-closing{ margin-top:clamp(40px,5vw,64px); padding:var(--s-7) var(--s-8);
  background:var(--surface); border:1px solid var(--hairline);
  border-radius:var(--r-lg); }
.l-closing p{ font-size:16.5px; color:var(--text-2); line-height:1.6;
  margin:0; font-style:italic; }
.l-closing p strong{ color:var(--text); font-style:normal; }

/* ============================================================
   STICKY TABLE OF CONTENTS
   ============================================================ */
.l-toc{ position:sticky; top:84px; max-height:calc(100vh - 104px);
  overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:none; padding-top:4px; }
.l-toc::-webkit-scrollbar{ display:none; }
.toc-head{ font-family:var(--font); font-size:11px; font-weight:700;
  letter-spacing:0.16em; text-transform:uppercase; color:var(--text-3);
  margin-bottom:var(--s-5); }
.toc-list{ list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:1px; }
.toc-list a{ display:flex; align-items:center; gap:10px; font-size:13px;
  color:var(--text-3); padding:7px 10px; border-radius:var(--r-sm);
  line-height:1.35; letter-spacing:-0.005em;
  transition:color .2s var(--ease), background .2s var(--ease); }
.toc-list a:hover{ color:var(--text); background:rgba(255,255,255,0.06); }
.toc-list a.active{ color:var(--accent-ink); background:var(--accent-soft); font-weight:550; }
.toc-list .tn{ flex:0 0 auto; font-size:10.5px; font-weight:700;
  color:var(--accent-ink); opacity:0; transition:opacity .2s;
  width:18px; text-align:center; letter-spacing:0.02em; }
.toc-list a.active .tn{ opacity:1; }

.toc-other{ margin-top:var(--s-7); padding-top:var(--s-6);
  border-top:1px solid var(--line-2); }
.toc-other a{ display:inline-flex; align-items:center; gap:9px;
  font-size:13.5px; color:var(--text-3); font-weight:500;
  transition:color .2s; }
.toc-other a:hover{ color:var(--accent-ink); }

/* ============================================================
   FOOTER — matches landing page
   ============================================================ */
.l-footer{ border-top:1px solid var(--line-2);
  padding:clamp(40px,5vw,64px) 0; }
.l-footer-in{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
  display:flex; justify-content:space-between; align-items:center;
  gap:20px; flex-wrap:wrap; }
.l-footer-links{ display:flex; align-items:center; gap:24px; }
.l-footer-links a{ font-size:14px; color:rgba(235,235,245,0.5);
  transition:color .2s; }
.l-footer-links a:hover{ color:var(--text); }
.l-footer-links a[aria-current]{ color:var(--accent-ink); }
.l-footer-copy{ font-size:13.5px; color:var(--text-4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:860px){
  .l-body{ grid-template-columns:1fr; }
  .l-toc{ display:none; }
}
@media (max-width:560px){
  .l-section h2{ font-size:21px; flex-direction:column; gap:6px; }
  .sec-num{ margin-top:0; }
  .l-footer-in{ flex-direction:column; align-items:flex-start; gap:16px; }
}
