/*
  The public pages: landing, pricing, the free audit and sign-in.
  Loaded after app.css, and built from the same tokens.
*/

body.site {
  position: relative;
  overflow-x: hidden;
}

/* A soft sky behind the top of every public page: two glows over a dot grid. */
.site-bg {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 980px;
  background:
    radial-gradient(48% 46% at 18% 8%, rgba(255, 106, 51, 0.16), transparent 70%),
    radial-gradient(42% 44% at 86% 4%, rgba(74, 148, 236, 0.16), transparent 70%),
    radial-gradient(var(--grid-dot) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
  mask-image: linear-gradient(to bottom, #000 35%, transparent);
  pointer-events: none;
}

.site-wrap {
  width: 100%;
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-wrap.narrow {
  max-width: 820px;
}
.site-main {
  padding-bottom: 96px;
}

/* Top bar */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.site-nav {
  display: flex;
  gap: 2px;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.91rem;
  font-weight: 520;
  transition: background-color 0.15s, color 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  text-decoration: none;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
}
@media (max-width: 520px) {
  .hide-narrow,
  .site-actions .theme {
    display: none;
  }
  .site-wrap {
    padding: 0 16px;
  }
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 76px;
  text-align: center;
}
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.hero h1 em,
.page-hero h1 em,
.dark-copy h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-bright);
  padding-right: 0.06em;
}
.hero .lead,
.page-hero .lead {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.5;
  color: var(--text-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 0.87rem;
  color: var(--text-3);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-points .icon {
  color: var(--good);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: var(--shadow-xs);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 520;
  transition: border-color 0.15s, color 0.15s;
}
a.pill {
  padding-left: 5px;
}
a.pill:hover {
  border-color: var(--accent-line);
  color: var(--text);
  text-decoration: none;
}
.pill b {
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The product picture */
.shot {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin-top: 40px;
  text-align: left;
}
.shot::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6% 4% -6%;
  background:
    radial-gradient(55% 60% at 68% 30%, rgba(255, 90, 31, 0.34), transparent 70%),
    radial-gradient(50% 55% at 22% 78%, rgba(42, 120, 214, 0.3), transparent 70%);
  filter: blur(64px);
}
.mock {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.mock-bar span {
  margin: 0 auto;
  padding: 3px 56px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 0.74rem;
  transform: translateX(-24px);
}
.mock-body {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
}
.mock-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.82rem;
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px 12px;
  font-size: 0.9rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}
.mock-app {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 580;
}
.mock-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-2);
}
.mock-link .icon {
  color: var(--text-3);
}
.mock-link.is-on {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 580;
  box-shadow: var(--shadow-sm);
}
.mock-link.is-on .icon {
  color: var(--accent-text);
}
.mock-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}
.mock-main .brief {
  padding: 20px 22px;
}
.mock-main .headline {
  font-size: 1.4rem;
}
.mock-main .kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mock-main .kpi {
  min-height: 118px;
}
.mock-main .kpi-value {
  font-size: 1.5rem;
}
.mock-main .card {
  padding: 18px 20px;
}
.kpi.mock-score {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 14px;
}
.float {
  position: absolute;
  width: 312px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
}
.float-chat {
  right: -48px;
  bottom: -36px;
}
.float-approve {
  bottom: 40px;
  left: -72px;
  width: 286px;
}
.float-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.float-head strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.3;
}
.float-head span span,
.float-head div span {
  color: var(--text-3);
  font-size: 0.76rem;
}
@media (max-width: 1180px) {
  .float-chat {
    right: 10px;
  }
  .float-approve {
    left: 10px;
  }
}
@media (max-width: 820px) {
  .mock-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock-side {
    display: none;
  }
  .float {
    position: static;
    width: auto;
    margin-top: 12px;
  }
  .mock-main .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi.mock-score {
    display: none;
  }
}

/* Sections */
.band {
  padding-top: 112px;
}
.band-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.band-head .eyebrow,
.dark-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--accent-text);
}
.band-head h2,
.dark-copy h2,
.final-cta h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1.06;
}
.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.how li {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.how-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.how h3 {
  margin: 18px 0 8px;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}
.how p {
  color: var(--text-2);
  font-size: 0.94rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.bento-card.span-2 {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.bento-copy {
  flex: 1 1 0;
  min-width: 0;
}
.bento-copy h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}
.bento-copy p {
  color: var(--text-2);
  font-size: 0.94rem;
}
.bento-art {
  flex: 1.25 1 0;
  min-width: 0;
  margin-top: auto;
}
.bento-card.span-2 .bento-art {
  margin-top: 0;
}
.bento-art.findings,
.areas-demo {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.areas-demo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}
.bento-art .chart-body {
  height: 150px;
}
.bento-art .brief {
  box-shadow: none;
  background: radial-gradient(70% 140% at 100% 0%, var(--glow), transparent 55%), var(--surface-2);
}
@media (max-width: 980px) {
  .how,
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-card.span-2 {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .band {
    padding-top: 80px;
  }
}

/* The assistants panel is dark in both themes. */
.dark-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(55% 90% at 100% 0%, rgba(255, 90, 31, 0.24), transparent 62%),
    radial-gradient(45% 80% at 0% 100%, rgba(42, 120, 214, 0.22), transparent 62%),
    #0a0c11;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.dark-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dark-copy .eyebrow {
  margin-bottom: 0;
}
.dark-copy p {
  color: var(--text-2);
}
.term {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #06080b;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.term-bar {
  display: flex;
  gap: 7px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.term pre {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  color: #cbd3e1;
  font-size: 0.8rem;
  line-height: 1.75;
}
.term .c {
  color: var(--text-3);
}
.term .a {
  color: var(--accent-bright);
}
@media (max-width: 980px) {
  .dark-band {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
    border-radius: 24px;
  }
}

.promise.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 28px;
  border-style: solid;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
@media (max-width: 980px) {
  .promise.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .promise.four {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Plans: the plan you can have today is the wide one, and the one that is
   coming sits beside it. */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.plan.is-now {
  gap: 26px;
  border-color: var(--accent-line);
  background:
    radial-gradient(70% 70% at 100% 0%, var(--glow), transparent 62%),
    radial-gradient(var(--grid-dot) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--surface);
  box-shadow: var(--shadow-md);
}
.plan-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.plan-what {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 260px;
  min-width: 0;
}
.plan-top .btn {
  flex: none;
}
.plan header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.plan.is-next header {
  justify-content: space-between;
}
.plan h3 {
  font-size: 1.2rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price strong {
  font-size: 4rem;
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.plan.is-next .price strong {
  color: var(--text-2);
}
.price span {
  color: var(--text-3);
}
.plan-for {
  max-width: 40ch;
  color: var(--text-2);
}
.plan .gets {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan .gets.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.plan-end {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
@media (max-width: 900px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}
@media (max-width: 560px) {
  .plan {
    padding: 26px 22px;
  }
  .plan .gets.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-top .btn {
    width: 100%;
  }
}
.btn[aria-disabled='true'] {
  cursor: default;
  color: var(--text-3);
  pointer-events: none;
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Questions */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-size: 1.04rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.faq-item summary .icon {
  color: var(--text-3);
  transition: transform 0.2s;
}
.faq-item[open] summary .icon {
  transform: rotate(45deg);
}
.faq-item p {
  max-width: 66ch;
  padding: 0 2px 22px;
  color: var(--text-2);
}

/* The closing panel */
.final-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 112px;
  padding: 72px 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(50% 90% at 50% 0%, var(--glow), transparent 70%),
    radial-gradient(var(--grid-dot) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--surface);
  text-align: center;
  overflow: hidden;
}
.final-cta p {
  color: var(--text-2);
  font-size: 1.08rem;
}
.final-cta .hero-cta {
  margin-top: 10px;
}
.final-kite .kite {
  filter: drop-shadow(0 10px 18px rgba(255, 90, 31, 0.4));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-7px) rotate(-4deg);
  }
}

/* The heading of a public page that is not the landing page */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 64px;
  padding-bottom: 44px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  background: radial-gradient(60% 160% at 0% 0%, var(--glow), transparent 60%), var(--surface);
}
.cta-strip p {
  max-width: 62ch;
  margin-top: 4px;
  color: var(--text-2);
}

/* Sign-in: one card in two parts. The form sits on the left, and a dark
   panel on the right says what an account gives. */
.auth {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 64px - 260px);
  padding-top: 56px;
}
.auth-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 940px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 52px 48px;
}
.auth-card h1 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.auth-kite .kite {
  filter: drop-shadow(0 8px 14px rgba(255, 90, 31, 0.35));
}
.auth-terms {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.auth-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px 48px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 90, 31, 0.28), transparent 62%),
    radial-gradient(60% 60% at 0% 100%, rgba(42, 120, 214, 0.24), transparent 62%),
    #0a0c11;
  color: var(--text);
}
.auth-side .eyebrow {
  margin-bottom: 0;
}
.auth-side > h2 {
  font-size: 1.9rem;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.auth-side > h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-bright);
}
.auth-side .gets {
  color: var(--text-2);
}
.auth-peek {
  margin-top: auto;
  padding-top: 8px;
}
.auth-peek .brief {
  padding: 20px 22px;
  border-color: var(--line-2);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.auth-peek .headline {
  font-size: 1.3rem;
}
.auth-note {
  font-size: 0.86rem;
  color: var(--text-3);
}
.auth-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Google's button, drawn to Google's branding rules for its sign-in button. */
.gbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 46px;
  border: 1px solid #747775;
  border-radius: 12px;
  background: #ffffff;
  color: #1f1f1f;
  font-size: 0.95rem;
  font-weight: 540;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.gbtn:hover {
  background: #f6f8fc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
[data-theme='dark'] .gbtn {
  border-color: #8e918f;
  background: #131314;
  color: #e3e3e3;
}
[data-theme='dark'] .gbtn:hover {
  background: #1d1e20;
}
@media (max-width: 860px) {
  .auth {
    padding-top: 28px;
  }
  .auth-box {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 480px);
    border-radius: 24px;
  }
  .auth-card,
  .auth-side {
    padding: 30px 26px;
  }
  .auth-side > h2 {
    font-size: 1.55rem;
  }
}

.audit-public {
  text-align: left;
}

/* Footer */
.site-foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9rem;
}
.site-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-foot-grid p {
  max-width: 40ch;
  margin-top: 12px;
  color: var(--text-3);
}
.site-foot nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.site-foot nav h2 {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.site-foot nav a {
  color: var(--text-2);
}
.site-foot nav a:hover {
  color: var(--text);
}
.site-fine {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.82rem;
}
@media (max-width: 720px) {
  .site-foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .site-foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .site-foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .term pre {
    padding: 16px;
    font-size: 0.74rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* The privacy policy and the terms: a list of sections that stays in view, beside text set at reading width. */
.legal-hero {
  padding-bottom: 36px;
}
.legal {
  display: grid;
  grid-template-columns: 232px minmax(0, 720px);
  justify-content: center;
  align-items: start;
  gap: 64px;
}
.legal-toc {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  font-size: 0.875rem;
}
.legal-toc h2 {
  padding: 0 0 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legal-toc a {
  margin-left: -1px;
  padding: 5px 0 5px 16px;
  border-left: 1px solid transparent;
  color: var(--text-2);
  line-height: 1.35;
}
.legal-toc a:hover {
  border-left-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}
.legal-toc .legal-other {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent-text);
  font-weight: 520;
}
.legal-jump {
  display: none;
}
.legal-body {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.68;
}
.legal-body > section {
  scroll-margin-top: 92px;
}
.legal-body > section + section {
  margin-top: 44px;
}
.legal-body h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p,
.legal-body p + .table-scroll,
.legal-body .table-scroll + p {
  margin-top: 14px;
}
.legal-body section > ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: none;
}
.legal-body section > ul > li {
  position: relative;
}
.legal-body section > ul > li::before {
  content: '';
  position: absolute;
  top: 0.68em;
  left: -17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}
.legal-body a {
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
}
.legal-body a:hover {
  text-decoration-color: currentColor;
}
.legal-body > .notice {
  margin-bottom: 24px;
}

/* The summary at the top of each page */
.legal-short {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.legal-body .legal-short > ul {
  gap: 11px;
  padding-left: 0;
  color: var(--text);
}
.legal-body .legal-short > ul > li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.5;
}
.legal-body .legal-short > ul > li::before {
  content: none;
}
.legal-short .icon {
  flex: none;
  margin-top: 3px;
  color: var(--good);
}

/* A table inside the text: what is kept, the cookies, the companies we use */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.table-scroll table {
  font-size: 0.9rem;
  line-height: 1.5;
}
.table-scroll th,
.table-scroll td {
  padding: 12px 16px;
  vertical-align: top;
}
.table-scroll tbody th {
  width: 30%;
  background: none;
  color: var(--text);
  font-size: inherit;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}
.table-scroll tbody tr:last-child th {
  border-bottom: 0;
}
.table-scroll tbody tr:hover {
  background: none;
}

@media (max-width: 940px) {
  .legal {
    grid-template-columns: minmax(0, 720px);
    gap: 24px;
  }
  .legal-toc {
    display: none;
  }
  .legal-jump {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
  }
  .legal-jump > summary {
    padding: 14px 18px;
    color: var(--text);
    font-weight: 560;
  }
  .legal-jump[open] > summary {
    margin-bottom: 0;
  }
  .legal-jump nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }
  .legal-jump nav a {
    padding: 6px 0;
    color: var(--text-2);
    line-height: 1.35;
  }
  .legal-jump .legal-other {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--accent-text);
    font-weight: 520;
  }
}

/* Phones: each table row becomes a short block, so nothing has to scroll sideways. */
@media (max-width: 640px) {
  .legal-hero {
    padding-top: 44px;
  }
  .legal-jump nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-short {
    padding: 20px;
  }
  .legal-body h2 {
    font-size: 1.2rem;
  }
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-scroll table,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll th,
  .table-scroll td {
    display: block;
    width: auto;
  }
  .table-scroll tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .table-scroll tr:last-child {
    border-bottom: 0;
  }
  .table-scroll tbody th,
  .table-scroll td {
    width: auto;
    padding: 0;
    border-bottom: 0;
  }
  .table-scroll td {
    margin-top: 4px;
  }
  .table-scroll td:nth-child(2):not(:last-child) {
    color: var(--text-3);
    font-size: 0.84rem;
  }
}
