/* Shared styles for YouSpotted legal pages (/terms, /privacy) — matches the homepage. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0c10;
  color: #e8eaef;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(251, 191, 36, 0.10), transparent 55%),
    radial-gradient(ellipse at 85% 110%, rgba(99, 102, 241, 0.07), transparent 50%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none; z-index: 0;
}
main {
  position: relative; z-index: 1; flex: 1 0 auto;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 2.75rem 1.5rem 2rem;
  animation: fade-up 0.6s ease-out;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Brand header */
.legal-head { text-align: center; margin-bottom: 0.4rem; }
.legal-brand { display: inline-block; font-size: 1.7rem; font-weight: 900; letter-spacing: -0.035em; color: #fff; text-decoration: none; }
.legal-brand .you { color: #fbbf24; }
.legal-brand .dot { color: #fbbf24; }

/* Terms / Privacy toggle */
.legal-toggle {
  display: flex; gap: 4px; width: 100%; max-width: 440px; margin: 1.5rem auto 0.3rem;
  padding: 4px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px;
}
.legal-toggle a {
  flex: 1; text-align: center; padding: 0.62rem 0.5rem; border-radius: 999px;
  font-size: 0.83rem; font-weight: 600; color: #b8bcc7; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-toggle a:hover { color: #fff; }
.legal-toggle a.active { background: #fbbf24; color: #0a0c10; }

.updated { text-align: center; font-size: 0.77rem; color: #8a8f9c; margin: 0.7rem 0 1.6rem; }

/* Content cards */
.card {
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 0.7rem;
}
.card h2 { font-size: 0.98rem; font-weight: 700; color: #fff; margin: 0 0 0.45rem; }
.card p { font-size: 0.87rem; color: #b3b8c4; margin: 0 0 0.6rem; line-height: 1.68; }
.card p:last-child { margin-bottom: 0; }
.card a { color: #fbbf24; text-decoration: none; border-bottom: 1px solid rgba(251, 191, 36, 0.4); }
.card a:hover { border-color: #fbbf24; }
.contact-row { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem; font-size: 0.87rem; }
.contact-row svg { width: 15px; height: 15px; color: #fbbf24; flex-shrink: 0; }

.legal-note { text-align: center; font-size: 0.82rem; color: #8a8f9c; line-height: 1.65; margin: 1.5rem auto 0; max-width: 580px; }
.legal-note a { color: #fbbf24; text-decoration: none; border-bottom: 1px solid rgba(251, 191, 36, 0.4); }

/* Footer — identical to the homepage */
footer { position: relative; z-index: 1; flex-shrink: 0; padding: 1.75rem 1.5rem; text-align: center; font-size: 0.78rem; color: rgba(232, 234, 239, 0.4); }
footer a { color: rgba(232, 234, 239, 0.7); text-decoration: none; border-bottom: 1px solid rgba(232, 234, 239, 0.18); transition: color 0.2s ease, border-color 0.2s ease; }
footer a:hover { color: #fff; border-color: rgba(232, 234, 239, 0.5); }
.patent-badge { position: relative; cursor: help; border-bottom: 1px dotted currentColor; white-space: nowrap; }
.patent-tooltip {
  visibility: hidden; opacity: 0; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 11px 14px 10px; background: rgba(20, 20, 24, 0.97); color: #f5ebde; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.74rem; line-height: 1.55; width: max-content; max-width: 300px;
  text-align: left; white-space: normal; z-index: 100; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: opacity 0.18s ease, visibility 0.18s ease; pointer-events: none;
}
.patent-tooltip strong { display: block; margin-bottom: 5px; font-size: 0.78rem; color: #fbf0e6; }
.patent-tooltip .patent-meta { font-size: 0.68rem; color: rgba(245, 235, 222, 0.6); }
.patent-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(20, 20, 24, 0.97); }
.patent-badge:hover .patent-tooltip, .patent-badge:focus .patent-tooltip, .patent-badge:focus-within .patent-tooltip { visibility: visible; opacity: 1; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 600px) { .patent-tooltip { max-width: 260px; } }
