/* =====================================================================
   7on7HQ , LEGAL PAGES  (apex: /terms, /privacy)
   Small, self-contained dark stylesheet for the Terms of Service and
   Privacy Policy pages. Shares the broadcast/gameday visual language of
   the marketing site (ink-dark, red energy, Anton + Barlow type) but
   stands alone, so it can be linked on its own with no other CSS.
   CSP-safe (no inline JS, no inline styles). Mobile-first.
   ===================================================================== */

/* ---- Design Tokens -------------------------------------------------- */
:root{
  --red:        #D2202F;
  --red-hot:    #FF3A45;
  --red-text:   #F0454F;
  --red-deep:   #8E1219;

  --ink-900:    #0B0C10;
  --ink-850:    #0F1015;
  --ink-800:    #141620;
  --ink-750:    #181B26;
  --ink-700:    #1F2230;

  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.12);
  --line-3:     rgba(255,255,255,0.18);

  --fg:         #F4F5F4;
  --fg-soft:    #C7CAD2;
  --fg-mute:    #8A8F9E;
  --fg-faint:   #787F90;

  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 72px;

  --ease-snap:  cubic-bezier(0.2, 0.9, 0.25, 1);

  --shadow-panel: 0 1px 0 rgba(255,255,255,0.05) inset,
                  0 18px 40px -24px rgba(0,0,0,0.9),
                  0 2px 8px -2px rgba(0,0,0,0.6);
  --inset-hi:     inset 0 1px 0 rgba(255,255,255,0.10);

  --maxw:  760px;
  --gut:   clamp(18px, 5vw, 40px);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ink-900);
  color: var(--fg);
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}
/* fixed broadcast backdrop, identical energy to the marketing site */
body::before{
  content:""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 88% -8%, rgba(210,32,47,0.16), transparent 46%),
    radial-gradient(120% 70% at -6% 2%, rgba(210,32,47,0.09), transparent 42%),
    radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,0.55), transparent 55%),
    linear-gradient(180deg, #101218 0%, var(--ink-900) 42%, #060709 100%);
}
body::after{
  content:""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.4;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

a{ color: var(--red-text); text-decoration: none; }
a:hover{ color: var(--red-hot); text-decoration: underline; text-underline-offset: 3px; }
img,svg{ display: block; max-width: 100%; }
:focus-visible{ outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: var(--r-xs); }

.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.wrap{ width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* =====================================================================
   HEADER  (brand + Back to 7on7HQ)
   ===================================================================== */
.legal-nav{
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(7,8,11,0.92), rgba(7,8,11,0.72) 70%, rgba(7,8,11,0.5));
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-bottom: 1px solid var(--line-2);
}
.legal-nav__inner{
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 64px;
}
.legal-nav__brand{ flex: 0 0 auto; display: flex; align-items: center; }
.legal-nav__brand img{ height: 32px; width: auto; }
.legal-nav__back{
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 9px 16px; border-radius: var(--r-pill);
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700; font-size: 15px;
  color: var(--fg-soft);
  box-shadow: inset 0 0 0 1px var(--line-2);
  background: rgba(255,255,255,0.02);
  transition: color .2s var(--ease-snap), box-shadow .2s var(--ease-snap), background-color .2s var(--ease-snap);
}
.legal-nav__back:hover{
  color: var(--fg); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-3);
  background: rgba(255,255,255,0.06);
}
.legal-nav__back svg{ width: 15px; height: 15px; }

/* =====================================================================
   DOCUMENT BODY
   ===================================================================== */
.legal-main{ padding-block: clamp(36px, 7vw, 72px); }

.legal-head{
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
.legal-eyebrow{
  display: inline-block;
  font-family: "Barlow Semi Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 0.26em; font-weight: 700;
  font-size: 11px; color: var(--red-text);
  margin-bottom: var(--s-3);
}
.legal-title{
  margin: 0;
  font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 6vw, 56px); line-height: 0.94; letter-spacing: 0.01em;
  color: var(--fg);
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
}
.legal-updated{
  margin-top: var(--s-4);
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; font-size: 13px; color: var(--fg-faint);
}

/* Editable placeholder company line, framed so the founder spots it. */
.legal-company{
  margin: var(--s-6) 0 0;
  padding: 14px 16px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  box-shadow: var(--shadow-panel), inset 0 0 0 1px var(--line);
  font-size: 14.5px; line-height: 1.55; color: var(--fg-soft);
}

.legal-intro{
  margin: 0 0 var(--s-7);
  font-size: clamp(16px, 1.7vw, 18px); line-height: 1.65; color: var(--fg-soft);
}

/* numbered sections */
.legal-doc{ counter-reset: sec; }
.legal-doc section{
  margin-bottom: var(--s-8);
}
.legal-doc h2{
  counter-increment: sec;
  margin: 0 0 var(--s-3);
  display: flex; align-items: baseline; gap: 12px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: clamp(21px, 3vw, 26px); color: var(--fg);
}
.legal-doc h2::before{
  content: counter(sec);
  flex: 0 0 auto;
  font-family: "Anton", sans-serif; font-weight: 400; font-size: 0.8em;
  color: var(--red-text);
  min-width: 1.4ch;
}
.legal-doc h3{
  margin: var(--s-5) 0 var(--s-2);
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 14px; color: var(--fg-mute);
}
.legal-doc p{
  margin: 0 0 var(--s-3);
  font-size: 16px; line-height: 1.68; color: var(--fg-soft);
  max-width: 68ch;
}
.legal-doc p:last-child{ margin-bottom: 0; }
.legal-doc ul{
  margin: 0 0 var(--s-3); padding: 0; list-style: none;
  max-width: 68ch;
}
.legal-doc li{
  position: relative; padding-left: 22px; margin-bottom: 9px;
  font-size: 16px; line-height: 1.6; color: var(--fg-soft);
}
.legal-doc li::before{
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px -1px rgba(210,32,47,0.7);
}
.legal-doc strong{ color: var(--fg); font-weight: 700; }

/* callout for the as-is / liability line */
.legal-callout{
  margin: var(--s-5) 0;
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(210,32,47,0.07);
  box-shadow: inset 0 0 0 1px rgba(210,32,47,0.3);
}
.legal-callout p{ margin: 0; color: var(--fg-soft); }
.legal-callout p + p{ margin-top: var(--s-3); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.legal-foot{
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.45));
}
.legal-foot__inner{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px;
  padding-block: var(--s-7);
}
.legal-foot__links{
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700; font-size: 14px;
}
.legal-foot__links a{ color: var(--fg-soft); }
.legal-foot__links a:hover{ color: var(--red-text); }
.legal-foot__sub{
  font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; font-size: 13px; color: var(--fg-faint);
}

@media (max-width: 520px){
  .legal-nav__brand img{ height: 28px; }
  .legal-foot__inner{ flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
