/* Shared chrome for standalone content pages: privacy, terms, contact.
   Mirrors 404.html's page pattern but factored out since three pages share it. */

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.legal-page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 6vw;
  isolation: isolate;
}

.legal-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  pointer-events: none;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D946EF;
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.7);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-links a.text-btn {
  padding: 8px 10px;
}

.legal-main {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #5EEAD4;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2DD4BF;
  content: "";
}

.legal-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.legal-updated {
  margin: 0 0 36px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.legal-card {
  padding: 8px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

.legal-card h2 {
  margin: 34px 0 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card a {
  color: #38BDF8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card a:hover {
  color: #7DD3FC;
}

.legal-card strong {
  color: var(--text);
}

.legal-callout {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.site-footer {
  min-height: 58px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 14px;
}

@media (max-width: 760px) {
  .legal-page { padding: 0 22px; }
  .site-header { min-height: 68px; }
  .legal-main { padding: 40px 0 56px; }
  .legal-title { font-size: 28px; }
}
