/* legal.css — shared styles for the four legal pages (pricing, tos, pp, rp).
   Sits on top of style.css. Keeps the same background, typography and
   brand chrome as the landing; adds a long-form "document" layout with a
   sticky table-of-contents on the left and generous reading column on
   the right. Collapses to a single column on mobile. */

.legal-shell {
  max-width: 1180px;
  margin: 120px auto 80px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  color: #dbdef3;
}

.legal-shell .legal-side {
  position: sticky;
  top: 100px;
  padding: 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 20px;
}
.legal-shell .legal-side h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a82a8;
  margin: 0 0 14px;
}
.legal-shell .legal-side a {
  display: block;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #9aa0c4;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.legal-shell .legal-side a:hover {
  color: #eef0ff;
  background: rgba(255, 255, 255, 0.03);
}
.legal-shell .legal-side a.active {
  color: #ffb45c;
  border-left-color: #ff9b36;
  background: rgba(255, 155, 54, 0.05);
}

.legal-main {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff9b36;
  padding: 6px 12px;
  border: 1px solid rgba(255, 155, 54, 0.30);
  border-radius: 100px;
  background: rgba(255, 155, 54, 0.06);
  margin-bottom: 18px;
}
.legal-main h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #eef0ff;
  margin: 0 0 10px;
}
.legal-updated {
  font-size: 13px;
  color: #7a82a8;
  margin-bottom: 36px;
}

.legal-main h2 {
  font-size: 22px;
  font-weight: 700;
  color: #eef0ff;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 120px;
}
.legal-main h3 {
  font-size: 17px;
  font-weight: 600;
  color: #eef0ff;
  margin: 28px 0 10px;
  scroll-margin-top: 120px;
}
.legal-main p {
  margin: 0 0 14px;
}
.legal-main ul, .legal-main ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
.legal-main li {
  margin: 0 0 8px;
}
.legal-main a {
  color: #ffcc7a;
  text-decoration: underline;
  text-decoration-color: rgba(255, 204, 122, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.legal-main a:hover {
  text-decoration-color: #ffcc7a;
}
.legal-main strong {
  color: #eef0ff;
  font-weight: 600;
}
.legal-main code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  color: #ffcc7a;
}

/* Callout box — used on pricing + refund page for key contract bits. */
.legal-callout {
  padding: 20px 22px;
  border: 1px solid rgba(255, 155, 54, 0.25);
  background: rgba(255, 155, 54, 0.05);
  border-radius: 10px;
  margin: 24px 0;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout.green {
  border-color: rgba(77, 210, 122, 0.25);
  background: rgba(77, 210, 122, 0.05);
}
.legal-callout.blue {
  border-color: rgba(99, 163, 255, 0.28);
  background: rgba(99, 163, 255, 0.06);
}

/* Pricing table — tidy three-tier card row. */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 36px;
}
.price-card {
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card.featured {
  border-color: rgba(255, 155, 54, 0.4);
  background: linear-gradient(155deg, rgba(255, 155, 54, 0.08), rgba(255, 155, 54, 0.02));
  box-shadow: 0 10px 40px rgba(255, 155, 54, 0.08);
}
.price-card h3 {
  margin: 0;
  font-size: 15px;
  color: #9aa0c4;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.price-card .price {
  font-size: 36px;
  font-weight: 800;
  color: #eef0ff;
  letter-spacing: -0.02em;
}
.price-card .price small {
  font-size: 14px;
  color: #7a82a8;
  font-weight: 500;
  margin-left: 4px;
}
.price-card .price-sub {
  font-size: 13px;
  color: #9aa0c4;
  margin-bottom: 8px;
}
.price-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.price-card li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: #c5c9e6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4dd27a;
  font-weight: 700;
}

/* Responsive. */
@media (max-width: 880px) {
  .legal-shell {
    grid-template-columns: 1fr;
    margin-top: 90px;
    gap: 24px;
  }
  .legal-shell .legal-side {
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0 14px;
    margin-bottom: 10px;
  }
  .legal-shell .legal-side nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .legal-shell .legal-side a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
  }
  .legal-shell .legal-side a.active {
    border-left: none;
    border-bottom-color: #ff9b36;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
}
