/* Legal-page styling — ToS, Privacy Policy, and any future legal docs.
   Kept simple and readable: white-ish text on dark bg, narrow column for
   long-form reading, generous line-height and spacing between sections. */

.legal-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% -10%, rgba(34, 211, 238, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0a1018 0%, #0d1320 100%);
  color: var(--text-md, #cbd5e1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
}

.legal-article {
  background: linear-gradient(180deg, rgba(22, 29, 46, 0.6) 0%, rgba(15, 21, 36, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 48px 44px;
}

.legal-article h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.legal-meta {
  color: var(--text-lo, #93a4bf);
  font-size: 13px;
  margin: 0 0 24px 0;
}

.legal-lede {
  color: var(--text-md, #cbd5e1);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  padding: 16px 18px;
  background: rgba(34, 211, 238, 0.05);
  border-left: 3px solid rgba(34, 211, 238, 0.4);
  border-radius: 6px;
}

.legal-article h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 36px 0 12px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-article h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 24px;
}

.legal-article h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 20px 0 8px 0;
}

.legal-article p {
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 14px 0;
  color: var(--text-md, #cbd5e1);
}

.legal-article ul {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-md, #cbd5e1);
  padding-left: 22px;
  margin: 0 0 14px 0;
}
.legal-article li { margin-bottom: 6px; }

.legal-article a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(34, 211, 238, 0.5);
  transition: text-decoration-color 0.15s ease;
}
.legal-article a:hover { text-decoration-color: #22d3ee; }

.legal-article b, .legal-article strong {
  color: #ffffff;
  font-weight: 700;
}

.legal-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  color: var(--text-lo, #93a4bf);
  font-size: 11.5px;
  line-height: 1.6;
}
.legal-footer p { margin: 0 0 6px 0; }

.legal-footer-links {
  margin-bottom: 16px;
  font-size: 12.5px;
}
.legal-footer-links a {
  color: var(--text-md, #cbd5e1);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.legal-footer-links a:hover { color: #22d3ee; }
.legal-footer-sep { opacity: 0.4; padding: 0 8px; }

/* Termly-embed variant — the iframe sizes itself but needs a wide,
   light-on-dark friendly canvas. The Termly iframe has its own white
   background so we drop our card padding to give it room. */
.legal-article-embed {
  padding: 32px 24px 24px;
}
.legal-article-embed iframe {
  width: 100% !important;
  min-height: 1600px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .legal-article { padding: 32px 24px; }
  .legal-article h1 { font-size: 26px; }
}
