/* Shared styles for all legal / support pages (privacy, terms, disclaimer,
   how-we-get-paid, complaints, contact, etc). One file, everywhere. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #33475B;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: #38BEBF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Nav --------------------------------------------------------------- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #e5e7eb;
}
.legal-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-nav-brand { display: inline-flex; align-items: center; }
.legal-nav-logo { height: 40px; width: auto; }
.legal-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: #3068D0;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}
.legal-nav-cta:hover {
  background: #2555B4;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* --- Main article ------------------------------------------------------- */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-article h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.legal-meta {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 40px;
}
.legal-article h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  color: #0f172a;
  margin: 40px 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.legal-article h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 10px;
}
.legal-article p {
  margin: 0 0 14px;
  font-size: 16px;
  color: #33475B;
}
.legal-article ul,
.legal-article ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-article li {
  margin-bottom: 6px;
  font-size: 16px;
  color: #33475B;
}
.legal-article strong { color: #0f172a; font-weight: 700; }
.legal-article em { color: #33475B; }
.legal-article a { color: #38BEBF; text-decoration: underline; text-underline-offset: 2px; }
.legal-article a:hover { color: #2E9A9C; }

/* --- Footer ------------------------------------------------------------- */
.legal-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.85);
  padding: 40px 24px;
}
.legal-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.legal-footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.legal-footer-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
}
.legal-footer-links a:hover { color: #38BEBF; text-decoration: none; }
.legal-footer-legal {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
}
.legal-footer-copy {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* --- Mobile tightening -------------------------------------------------- */
@media (max-width: 640px) {
  .legal-nav-inner { padding: 12px 16px; }
  .legal-nav-logo { height: 32px; }
  .legal-nav-cta { padding: 10px 16px; font-size: 13px; }
  .legal-main { padding: 32px 20px 56px; }
  .legal-article h2 { margin-top: 32px; }
}
