/* Legal pages: Terms of Service + Privacy Policy
   Global marketing h1/h2 use max-width: Nch — reset those here. */
.legal-page {
  padding: 7.5rem 0 4rem;
}

/* Use the same .wrap as other pages (max-width: var(--maxw) / 1320px). */

.legal-head {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-head h1 {
  margin: 0 0 1rem;
  max-width: none;
  width: 100%;
  font-family: var(--f-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text, #f4f7fb);
}

.legal-meta {
  margin: 0;
  font-family: Geist, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}

.legal-meta + .legal-meta {
  margin-top: 0.5rem;
}

.legal-body {
  font-family: Geist, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.legal-body > .legal-section:first-child,
.legal-intro {
  margin-bottom: 3rem;
}

.legal-intro p,
.legal-section > p,
.legal-sub > p {
  margin: 0 0 1.25rem;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scroll-margin-top: 6rem;
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section > h2 {
  margin: 0 0 1.25rem;
  max-width: none;
  width: 100%;
  font-family: var(--f-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text, #f4f7fb);
}

.legal-sub {
  margin-top: 1.5rem;
  scroll-margin-top: 6rem;
}

.legal-sub > h3 {
  margin: 0 0 0.75rem;
  max-width: none;
  width: 100%;
  font-family: var(--f-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text, #f4f7fb);
}

.legal-body a {
  color: #2dd4bf;
  text-decoration: none;
}

.legal-body a:hover,
.legal-body a:focus-visible {
  text-decoration: underline;
}

.legal-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-list.spaced li {
  margin-bottom: 0.75rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.legal-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.legal-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.legal-table th {
  padding: 0.75rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  vertical-align: top;
}

.legal-table td {
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .legal-page {
    padding-top: 6rem;
  }
}
