/**
 * Legal pages (Privacy Policy, Terms of Use) — extends site.css
 * to match marketing landing chrome (white header, navy footer, brand tokens).
 */

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  color: var(--text-body);
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--page-gutter) 64px;
}

/* Sticky white header — mirrors marketing Nav / support */
.lm-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border-default);
}

.lm-site-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lm-site-header a.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lm-site-header a.logo-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.lm-site-header .logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.lm-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.lm-nav-links a {
  color: var(--lykmnd-brand);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.lm-nav-links a:hover {
  color: var(--lykmnd-brand);
  opacity: 0.85;
  text-decoration: none;
}

.lm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-button-compact);
  background: var(--lykmnd-brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.lm-btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff !important;
}

.lm-nav-compact {
  display: none;
}

/* Hero */
.legal-hero {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-default);
}

.legal-hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lykmnd-pulse);
  margin: 0 0 14px;
}

.legal-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--lykmnd-brand);
  margin: 0 0 14px;
}

.legal-hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

/* Prose */
.legal-prose h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-default);
}

.legal-prose h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--lykmnd-brand);
  margin: 24px 0 10px;
}

.legal-prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 14px;
}

.legal-prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 10px;
}

.legal-prose li ul {
  margin-top: 10px;
  margin-bottom: 4px;
}

.legal-prose strong {
  color: var(--lykmnd-brand);
  font-weight: 600;
}

.legal-prose a {
  color: var(--lykmnd-favorites);
  font-weight: 600;
  text-decoration: none;
}

.legal-prose a:hover {
  text-decoration: underline;
  color: var(--lykmnd-brand);
}

/* Contact callout */
.legal-contact {
  margin-top: 40px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-default);
  background: var(--surface-sunken);
  text-align: center;
}

.legal-contact p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.legal-contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lykmnd-favorites);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.legal-contact-email:hover {
  color: var(--lykmnd-brand);
  text-decoration: underline;
}

.legal-updated {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* Navy footer — mirrors marketing / support */
.lm-site-footer {
  background: #060a22;
  color: rgba(255, 255, 255, 0.55);
  padding: 40px 0;
  margin-top: auto;
}

.lm-site-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  flex-wrap: wrap;
}

.lm-site-footer img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.lm-site-footer a:has(img) {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lm-site-footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.lm-site-footer a {
  color: inherit;
  text-decoration: none;
}

.lm-site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.lm-site-footer a.footer-strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .lm-nav-links {
    display: none;
  }
  .lm-nav-compact {
    display: block;
  }
  .legal-hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .legal-main {
    padding: 28px 16px 48px;
  }
  .legal-hero h1 {
    font-size: 28px;
  }
  .legal-prose h2 {
    font-size: 20px;
  }
  .legal-prose p,
  .legal-prose li {
    font-size: 15px;
  }
}
