/* REEFORM legal pages */

:root {
  --wine: #7a0019;
  --wine-light: #ff4f75;
  --ink: #060406;
  --hairline: rgba(255, 255, 255, 0.09);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(122, 0, 25, 0.34), transparent 32rem),
    radial-gradient(circle at 92% 16%, rgba(217, 37, 76, 0.16), transparent 28rem),
    linear-gradient(180deg, #100307 0%, var(--ink) 42%, #030203 100%);
  color: #fff;
  font-family: "Host Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 3rem;
}

.legal-nav {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1320px);
  margin: 0 auto 2rem;
  padding: .75rem .875rem .75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 4, 6, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.legal-nav img {
  display: block;
  width: clamp(7rem, 22vw, 9rem);
  height: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-pill:hover,
.nav-pill.active {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  width: min(100%, 1320px);
  margin: 0 auto 2rem;
  padding: clamp(2.2rem, 6vw, 5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: clamp(2rem, 6vw, 4rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    radial-gradient(circle at 80% 5%, rgba(217,37,76,.24), transparent 30rem),
    rgba(8, 4, 6, .74);
  box-shadow: 0 28px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.1);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--wine-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.55rem, 8vw, 6.8rem);
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.text-fade {
  background: linear-gradient(to right, #fff 18%, rgba(255,255,255,.38));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-meta {
  max-width: 48rem;
  margin: 1.4rem 0 0;
  color: rgba(255,255,255,.66);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  width: min(100%, 1320px);
  margin: 0 auto 2.25rem;
}

.legal-tab {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .78rem 1rem;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-tab:hover,
.legal-tab.active {
  background: var(--wine);
  border-color: rgba(255,79,117,.42);
  color: #fff;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: min(100%, 1320px);
  margin: 0 auto;
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 6.5rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 1.5rem;
  padding: 1.2rem;
  background: rgba(255,255,255,.035);
}

.legal-index strong {
  display: block;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.86);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-index a {
  display: block;
  padding: .52rem 0;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

.legal-index a:hover {
  color: #fff;
}

.legal-document {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.4rem, 4vw, 3.5rem);
  background: rgba(8, 4, 6, .72);
  box-shadow: 0 24px 80px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.07);
}

.legal-section {
  scroll-margin-top: 8rem;
}

.legal-section + .legal-section {
  margin-top: 2.8rem;
  padding-top: 2.8rem;
  border-top: 1px solid rgba(255,255,255,.09);
}

.legal-section h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.legal-section h3 {
  margin: 1.5rem 0 .55rem;
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li {
  color: rgba(255,255,255,.68);
  font-size: 1rem;
  font-weight: 300;
}

.legal-section p {
  margin: .75rem 0;
}

.legal-section ul {
  margin: .85rem 0;
  padding-left: 1.2rem;
}

.legal-section a {
  color: #fff;
  border-bottom: 1px solid rgba(255,79,117,.58);
}

.legal-footer {
  width: min(100%, 1320px);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: rgba(255,255,255,.45);
  font-size: .92rem;
  font-weight: 300;
}

.legal-footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .site-shell {
    padding-inline: .9rem;
  }

  .legal-nav {
    position: relative;
    top: 0;
    padding-left: 1rem;
  }

  .nav-actions .nav-pill:first-child {
    display: none;
  }

  .hero {
    padding: 2.2rem 1.5rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: relative;
    top: 0;
  }

  .legal-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-pill {
    min-height: 2.35rem;
    padding-inline: .85rem;
    font-size: .64rem;
    letter-spacing: .1em;
  }

  .legal-tab {
    width: 100%;
    text-align: center;
  }

  .legal-document {
    padding: 1.25rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.18rem);
    letter-spacing: -.035em;
  }

  .hero-meta {
    font-size: .98rem;
  }
}
