/* Styles for /privacy/ and /terms/. The homepage keeps its own inline CSS. */
@font-face {
  font-family: Cardo;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cardo-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.legal-header { padding: 2rem 1rem 0; text-align: center; }
.legal-header a { display: inline-block; }
.legal-header img { height: 4rem; width: auto; }

.legal { flex: 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.legal h1 {
  font-family: Cardo, Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.legal .updated { color: #64748b; font-size: 0.875rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: #1e293b; margin: 2.25rem 0 0.5rem; }
.legal p, .legal li { color: #475569; margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal a { color: #7c3aed; text-underline-offset: 2px; }
.legal a:hover { color: #6b21a8; }
.legal strong { color: #334155; font-weight: 600; }

/* Placeholders that must be replaced before launch (check.sh fails while any remain) */
mark.todo { background: #fef08a; color: #713f12; padding: 0 0.25rem; border-radius: 0.25rem; }

.optout {
  border: 1px solid #e9d5ff;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem 1.25rem;
  margin: 1rem 0 0.75rem;
}
.optout p { margin-bottom: 0.75rem; }
.optout button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #7c3aed;
  background: transparent;
  border: 2px solid #e9d5ff;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.optout button:hover { background: #faf5ff; border-color: #c4b5fd; color: #6b21a8; }
.optout button[hidden] { display: none; }

.footer {
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-left { display: flex; align-items: center; gap: 0.5rem; }
.footer-icon { width: 1.5rem; height: 1.5rem; }
.copyright { font-size: 0.875rem; color: #6b7280; }
/* wrap between links (never inside one) on very narrow screens */
.footer-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-link { font-size: 0.875rem; color: #6b7280; text-decoration: none; transition: color 0.2s ease; white-space: nowrap; }
.footer-link:hover { color: #7c3aed; }
.social-icon { width: 1.25rem; height: 1.25rem; fill: currentColor; }

@media (min-width: 768px) {
  .legal h1 { font-size: 3rem; }
  .footer-content { flex-direction: row; }
}
