/* ============================================================
   BLASTseq AI — Legal pages (Privacy / Terms)
   Extends styles.css
   ============================================================ */

.legal-hero { padding-top: 150px; padding-bottom: 56px; position: relative; overflow: hidden; }
.legal-hero .hero-glow { top: -220px; }
.legal-head { max-width: 760px; position: relative; z-index: 1; }
.legal-head h1 { font-size: clamp(40px, 5vw, 62px); letter-spacing: -0.03em; margin-top: 20px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legal-tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px;
  color: var(--ink-2); background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 7px 14px; border-radius: 100px;
}
.legal-tag svg { width: 14px; height: 14px; color: var(--brand-ink); }
.legal-intro { font-size: 18px; color: var(--ink-2); line-height: 1.6; margin-top: 26px; max-width: 720px; }

/* layout: sticky TOC + content */
.legal-body { padding-top: 8px; padding-bottom: 110px; }
.legal-grid { display: grid; grid-template-columns: 268px 1fr; gap: 56px; align-items: start; }

.toc { position: sticky; top: 100px; }
.toc-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; padding-left: 14px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 1px; border-left: 2px solid var(--line); }
.toc-list a {
  display: block; font-size: 13.5px; color: var(--ink-3); padding: 9px 14px; margin-left: -2px;
  border-left: 2px solid transparent; line-height: 1.4; transition: color .2s, border-color .2s, background .2s;
}
.toc-list a:hover { color: var(--ink); }
.toc-list a.active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; background: linear-gradient(90deg, var(--brand-softer), transparent); }

/* article */
.legal-article { max-width: 760px; }
.legal-section { padding-top: 14px; margin-bottom: 44px; scroll-margin-top: 100px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px;
}
.legal-section h2 .num { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--brand-ink); flex: none; }
.legal-section h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.legal-section p { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--brand-ink); font-weight: 500; word-break: break-word; }
.legal-section a:hover { text-decoration: underline; }
.legal-section ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 4px 0 18px; }
.legal-section li { position: relative; padding-left: 26px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.legal-section li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand); transform: rotate(45deg);
}
.legal-section strong { color: var(--ink); font-weight: 600; }

/* callout card for key clauses */
.legal-callout {
  display: flex; gap: 16px; background: var(--brand-softer); border: 1px solid rgba(138,66,255,0.18);
  border-radius: 16px; padding: 22px 24px; margin: 8px 0 20px;
}
.legal-callout .ic { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.legal-callout .ic svg { width: 20px; height: 20px; }
.legal-callout p { font-size: 15px; color: var(--ink-2); margin: 0; }
.legal-callout p strong { color: var(--brand-ink); }

/* contact block at end */
.legal-contact {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; background: var(--bg-card);
  box-shadow: var(--shadow-sm); margin-top: 8px;
}
.legal-contact .row { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; }
.legal-contact .row:last-child { margin-bottom: 0; }
.legal-contact .row svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; margin-top: 3px; }
.legal-contact .row .k { font-weight: 600; color: var(--ink); }

/* cross-link between the two legal docs */
.legal-switch { display: inline-flex; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 100px; padding: 5px; margin-top: 30px; }
.legal-switch a { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 9px 20px; border-radius: 100px; transition: all .2s; }
.legal-switch a:hover { color: var(--ink); }
.legal-switch a.current { background: var(--bg-card); color: var(--brand-ink); box-shadow: var(--shadow-sm); }

@media (max-width: 920px) {
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc-list { flex-flow: row wrap; border-left: none; gap: 8px; }
  .toc-list a { border: 1px solid var(--line); border-radius: 100px; margin-left: 0; padding: 8px 14px; }
  .toc-list a.active { border-color: var(--brand); background: var(--brand-softer); }
  .toc-label { padding-left: 0; }
}
@media (max-width: 560px) {
  .legal-section h2 { font-size: 22px; gap: 10px; }
  .legal-callout, .legal-contact { padding: 18px; }
}
