/* ===== Legal pages — Privacy / Terms ===== */

/* Email links in brand pink — body-text mailto links only, not buttons.
   The :not(.btn) guard keeps actual buttons (e.g. the "Email us" CTA on
   Free-Ultra) styled like buttons instead of getting the pink-text +
   pink-underline body-link treatment. */
.legal a[href^="mailto:"]:not(.btn),
.legal-section a[href^="mailto:"]:not(.btn),
.legal-footer-card a[href^="mailto:"]:not(.btn) {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.2s ease;
}
.legal a[href^="mailto:"]:not(.btn):hover,
.legal-section a[href^="mailto:"]:not(.btn):hover,
.legal-footer-card a[href^="mailto:"]:not(.btn):hover {
  border-bottom-color: var(--accent-bright);
}

.legal {
  padding: 160px 0 120px;
  position: relative;
}
.legal::before {
  /* Subtle radial spotlight to anchor the page header */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 600px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
@media (max-width: 720px) {
  .legal { padding: 112px 0 80px; }
}

/* Header */
.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}
.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
body.labels-sans .legal-eyebrow {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
}
.legal-eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.6;
}

/* Capsule eyebrow on legal pages — slightly tightened bottom margin */
.legal-header .eyebrow.eyebrow-capsule {
  margin-bottom: 20px;
}
.legal-title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 24px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
body.labels-sans .legal-meta {
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  font-size: 13px;
  font-weight: 500;
}
.legal-meta strong {
  color: var(--text-dim);
  font-weight: 500;
}

/* TOC chips */
.legal-toc {
  margin: 32px 0 0;
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 12px;
}
body.labels-sans .legal-toc-label {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 12px;
}
.legal-toc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.legal-toc-list a {
  display: inline-block;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.legal-toc-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-2);
}

/* Sections */
.legal-section {
  padding: 32px 0;
  scroll-margin-top: 100px;
}
.legal-section + .legal-section {
  border-top: 1px solid var(--border);
}
.legal-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin: 0 0 8px;
  display: block;
}
body.labels-sans .legal-section-num {
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 13px;
}
.legal-section h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--text);
}
.legal-section p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 64ch;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section strong {
  color: var(--text);
  font-weight: 600;
}
.legal-section a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.legal-section a:not(.btn):hover {
  text-decoration-color: var(--text);
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-section ul li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 1.5px;
  background: var(--text-mute);
}
.legal-section ul li strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer of legal page */
.legal-footer-card {
  margin-top: 80px;
  padding: 32px;
  border-radius: 20px;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-footer-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.legal-footer-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.legal-footer-card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
}

/* Cross-link to the other doc */
.legal-crosslink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 20px 24px;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: rgba(120, 120, 128, 0.16);
  transition: background .2s ease;
}
.legal-crosslink:hover {
  background: rgba(120, 120, 128, 0.22);
}
.legal-crosslink-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
body.labels-sans .legal-crosslink-label {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 12px;
}
.legal-crosslink-title {
  font-size: 16px;
  font-weight: 600;
}
.legal-crosslink-arrow {
  color: var(--text-dim);
  font-size: 18px;
  transition: transform .2s ease, color .2s ease;
}
.legal-crosslink:hover .legal-crosslink-arrow {
  color: var(--text);
  transform: translateX(4px);
}
