/* Shared styles for the theme-aware legal pages (privacy, terms). */
:root {
  --ink: #0b1424; --muted: #55627a; --mint: #10b981; --mint-dark: #0a7d57;
  --line: #e5eaf0; --card: #ffffff; --page-bg: #ffffff; --nav-bg: rgba(255,255,255,.92);
}
html[data-theme="dark"] {
  --ink: #e8edf5; --muted: #9aa7bd; --mint: #10b981; --mint-dark: #34d399;
  --line: #223049; --card: #111a2b; --page-bg: #090e19; --nav-bg: rgba(9,14,25,.86);
}
* { box-sizing: border-box; margin: 0; }
body { font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--page-bg); line-height: 1.65; transition: background-color .6s ease, color .6s ease; }
a { color: var(--mint-dark); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
header { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 24px; width: auto; display: block; }
.brand { position: relative; }
.logo-dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.logo-light, .logo-dark { transition: opacity 1.1s ease; }
html[data-theme="dark"] .logo-light { opacity: 0; }
html[data-theme="dark"] .logo-dark { opacity: 1; }
.back { text-decoration: none; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }

main { padding: 44px 0 72px; }
.legal-title { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.updated { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 22px 0 4px; font-size: 13.5px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--mint-dark); }
.legal-body { margin-top: 26px; }
.legal-body h2 { font-size: 19px; margin: 32px 0 10px; scroll-margin-top: 80px; }
.legal-body p { margin: 10px 0; font-size: 15px; }
.legal-body ul { margin: 10px 0 12px 22px; display: grid; gap: 7px; }
.legal-body li { font-size: 15px; }
.legal-body strong { font-weight: 700; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 14px; color: var(--muted); margin: 20px 0; }
.contact-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; color: var(--ink); font-weight: 600; margin-top: 6px; }
.contact-pill:hover { border-color: var(--mint); color: var(--mint-dark); }

footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
footer .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.theme-toggle { position: fixed; top: 16px; right: 18px; z-index: 60; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.16); transition: border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--mint); transform: scale(1.07); }
.mf-sparkle { position: fixed; z-index: 9999; pointer-events: none; will-change: transform, opacity; line-height: 1; text-shadow: 0 0 7px currentColor; }
@media (max-width: 560px) { .theme-toggle { top: 12px; right: 12px; width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* Smooth theme crossfade while theme.js toggles (matches advertiser.css). */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 1.2s ease, color 1.2s ease, border-color 1.2s ease, box-shadow 1.2s ease, fill 1.2s ease !important;
}
