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

/* ── TAGMANGO HOST OVERRIDES — force dark theme through TagMango wrappers ── */
html { scroll-behavior: smooth; background: #0a0a0a !important; background-color: #0a0a0a !important; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; background: #0a0a0a !important; background-color: #0a0a0a !important; color: #e5e7eb !important; overflow-x: hidden; }
html, body, #root, #app, #__next, main,
.page-wrapper, .content-wrapper, .app-wrapper,
[class*="page-wrapper"], [class*="content-wrapper"], [class*="app-wrapper"],
[class*="container"], [class*="wrapper"], [class*="page"],
[class*="tm-"], [class*="TM-"], [class*="Tagmango"], [class*="tagmango"] {
  background-color: #0a0a0a !important;
  color: #e5e7eb !important;
}
a { text-decoration: none; color: inherit; }
body a { color: inherit; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.92) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #1e1e1e;
  padding: 0 2rem; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .4rem; }
.nav-link { padding: .45rem .9rem; border-radius: 8px; font-size: .88rem; font-weight: 500; color: #9ca3af !important; text-decoration: none; transition: color .2s, background .2s; }
.nav-link:hover { color: #e5e7eb !important; background: #1a1a1a; }

/* CONTAINER */
.container { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* HERO */
.hero {
  padding: 4rem 0 2.5rem; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,.10) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.28);
  color: #a5b4fc !important; border-radius: 999px;
  padding: .35rem 1rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: #fff !important; letter-spacing: -.025em; line-height: 1.15; margin-bottom: .85rem; }
.hero-sub { font-size: 1.02rem; color: #9ca3af !important; max-width: 700px; margin: 0 auto; line-height: 1.75; }
.updated { margin-top: 1.1rem; font-size: .82rem; color: #4b5563 !important; }

/* TOC */
.toc {
  max-width: 880px; margin: 2rem auto 0;
  padding: 1.4rem 1.6rem;
  background: #111 !important; border: 1px solid #1e1e1e; border-radius: 12px;
}
.toc-title { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a5b4fc !important; margin-bottom: .8rem; }
.toc ol { list-style: none; counter-reset: tocn; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; margin: 0; padding: 0; }
.toc ol li { counter-increment: tocn; font-size: .87rem; padding-left: 1.8rem; position: relative; line-height: 1.5; }
.toc ol li::before { content: counter(tocn, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: .72rem; font-weight: 700; color: #4b5563; letter-spacing: .03em; }
.toc ol li a { color: #cbd5e1 !important; }
.toc ol li a:hover { color: #fff !important; }

/* BODY */
.content { max-width: 880px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
section.policy-section { padding-top: 2.2rem; }
section.policy-section:first-child { padding-top: 0; }
h2 { font-size: 1.32rem; font-weight: 800; color: #fff !important; letter-spacing: -.018em; margin-bottom: .9rem; line-height: 1.25; }
h3 { font-size: 1rem; font-weight: 700; color: #e5e7eb !important; margin: 1.2rem 0 .55rem; letter-spacing: -.005em; }
p { margin-bottom: .95rem; color: #cbd5e1 !important; line-height: 1.75; }
p strong, li strong { color: #fff !important; font-weight: 600; }
ul, ol.bodylist { margin: .4rem 0 1rem 0; padding-left: 1.4rem; }
ul li, ol.bodylist li { margin-bottom: .45rem; color: #cbd5e1 !important; line-height: 1.7; }
ul li { list-style-type: disc; }
ol.bodylist li { list-style-type: decimal; }
ul li::marker, ol li::marker { color: #6366f1; }
.policy-section a { color: #a5b4fc !important; text-decoration: underline; text-underline-offset: 2px; }
.policy-section a:hover { color: #c7d2fe !important; }

/* CALLOUT */
.callout {
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.22);
  border-left: 4px solid #6366f1; border-radius: 10px;
  padding: 1.1rem 1.3rem; margin: 1.1rem 0;
  font-size: .94rem; color: #c7d2fe !important; line-height: 1.7;
}
.callout strong { color: #fff !important; }

/* FOOTER */
footer { padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,.05); background: #0a0a0a !important; margin-top: 2rem; }
.footer-inner { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-text { font-size: .82rem; color: #6b7280 !important; }
.footer-text a { color: #9ca3af !important; }
.footer-text a:hover { color: #e5e7eb !important; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: #6b7280 !important; text-decoration: none; }
.footer-links a:hover { color: #e5e7eb !important; }

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .toc, .content { padding-left: 1.1rem; padding-right: 1.1rem; }
  .toc ol { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.15rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 0 1rem; }
}
