/* Legal pages — clean reading layout on the same dark blueprint stage */

.legal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legal-nav {
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
}

.legal-doc {
  padding: 80px 32px 120px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

/* Subtle blueprint cross-hairs flanking the article (decoration) */
.legal-doc::before,
.legal-doc::after {
  content: '';
  position: absolute;
  top: 80px;
  bottom: 60px;
  width: 1px;
  background:
    linear-gradient(to bottom,
      transparent 0,
      rgba(139,92,246,0.06) 20%,
      rgba(139,92,246,0.06) 80%,
      transparent 100%);
}
.legal-doc::before { left: -40px; }
.legal-doc::after { right: -40px; }

.legal-head {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.legal-head h1 {
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 18px 0 28px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal-meta strong { color: var(--ink-2); font-weight: 500; }
.legal-meta .dot-sep { margin: 0 12px; color: var(--ink-4); }

.legal-intro {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 350;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  max-width: 100%;
}

/* Table of contents — quiet, monospace */
.legal-toc {
  margin: 56px 0 72px;
  padding: 28px 32px;
  background: rgba(139,92,246,0.04);
  border: 1px solid var(--rule);
  border-radius: 12px;
  position: relative;
}
.legal-toc .hud-label {
  position: absolute;
  top: -7px;
  left: 24px;
  background: var(--bg);
  padding: 0 10px;
  color: var(--accent-2);
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  flex-shrink: 0;
  width: 22px;
}
.legal-toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .15s;
  border-bottom: 1px dotted transparent;
  padding-bottom: 1px;
}
.legal-toc a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

/* Sections */
.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}
.legal-section h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.legal-section h2 .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  flex-shrink: 0;
}
.legal-section p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--ink); font-weight: 500; }
.legal-section a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal-section a:hover { color: var(--ink); }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.legal-list li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  padding: 6px 0 6px 26px;
  position: relative;
  margin-bottom: 6px;
}
.legal-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-2);
  opacity: 0.7;
}

/* Callout boxes — for office address, contact, etc */
.callout {
  position: relative;
  margin: 24px 0;
  padding: 22px 26px 22px 26px;
  background: rgba(139,92,246,0.05);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.callout .hud-label {
  margin-bottom: 8px;
}
.callout p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}
.callout strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  display: inline-block;
  width: 70px;
}

.legal-foot {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Mobile */
@media (max-width: 720px) {
  .legal-doc { padding: 48px 20px 80px; }
  .legal-doc::before, .legal-doc::after { display: none; }
  .legal-head { margin-bottom: 36px; padding-bottom: 24px; }
  .legal-head h1 { margin: 12px 0 20px; }
  .legal-toc { padding: 22px 20px; margin: 36px 0 48px; }
  .legal-toc ol { grid-template-columns: 1fr; gap: 6px; }
  .legal-section { margin-bottom: 40px; }
  .legal-section h2 { font-size: 22px; flex-direction: column; gap: 4px; }
  .legal-foot { flex-direction: column; align-items: stretch; }
  .legal-foot .btn { justify-content: center; text-align: center; }
  .callout strong { display: block; width: auto; margin-bottom: 2px; }
}
