/* Legal page styles */

.legal-hero {
  margin-top: -76px;
  padding: calc(clamp(96px, 12vw, 140px) + 76px) 0 clamp(48px, 6vw, 72px);
  background: var(--brand-plum-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 80% at 30% 50%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 80% at 30% 50%, #000 35%, transparent 85%);
}
.legal-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.legal-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 16px;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Legal body */
.legal-body {
  padding: clamp(64px, 8vw, 96px) 0 clamp(80px, 10vw, 128px);
}
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { display: none; }
}

/* Table of contents */
.legal-toc {
  position: sticky;
  top: 88px;
}
.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 14px;
}
.legal-toc a {
  display: block;
  font-size: 13px;
  color: var(--fg-secondary);
  text-decoration: none;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border-hair);
  line-height: 1.4;
  transition: color 140ms ease, border-color 140ms ease;
}
.legal-toc a:hover {
  color: var(--brand-plum);
  border-left-color: var(--brand-plum);
}

/* Content */
.legal-content h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-8);
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-hair);
}
.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
}
.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-body);
  margin: 0 0 16px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-body);
  margin-bottom: 8px;
}
.legal-content strong {
  font-weight: 600;
  color: var(--ink-8);
}
.legal-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--ink-2);
  border-left: 3px solid var(--brand-plum-tint);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-secondary);
}
.legal-content a {
  color: var(--brand-plum);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--brand-plum-deep); }
