/* ═══════════════════════════════════════════════════════
   NexTextAI — shared.css
   Imported by every page via <link rel="stylesheet">
   Contains: design tokens, reset, nav, footer, utilities
═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
  --bg:           #0a0a0f;
  --bg2:          #10101a;
  --bg3:          #16162a;
  --card:         #13131f;
  --border:       rgba(120,100,255,0.18);
  --border2:      rgba(120,100,255,0.35);
  --accent:       #7c5cfc;
  --accent2:      #a78bfa;
  --accent-glow:  rgba(124,92,252,0.25);
  --teal:         #22d3ee;
  --text:         #f0eeff;
  --muted:        #8880aa;
  --muted2:       #6660aa;
  --success:      #22d3a0;
  --warn:         #f59e0b;
  --radius:       14px;
  --radius-sm:    8px;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Days One', sans-serif; font-size: 1.25rem; font-weight: 800;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--accent2); }
.nav-logo svg  { flex-shrink: 0; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff; border: none;
  padding: 0.5rem 1.25rem; border-radius: 8px;
  font-size: 0.875rem; font-family: 'DM Sans', sans-serif;
  cursor: pointer; font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-cta:hover { background: #6b4ef0; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 5% 2rem;
}
.footer-top {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p {
  color: var(--muted); font-size: 0.85rem;
  max-width: 260px; margin-top: 0.75rem;
}
.footer-links h4 {
  font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1rem; color: var(--muted2);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p { font-size: 0.9rem; color: var(--muted2); }

/* ── PAGE HERO (shared by legal/contact pages) ──────── */
.page-hero {
  padding: 140px 5% 70px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(124,92,252,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.page-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.25);
  border-radius: 20px; padding: 0.35rem 1rem;
  font-size: 0.78rem; color: var(--teal); margin-bottom: 1.5rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}
.page-hero h1 {
  font-family: 'Puritan', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 1rem; max-width: 680px; margin-left: auto; margin-right: auto;
}
.page-hero h1 em { font-style: normal; color: var(--accent2); }
.page-hero p {
  color: var(--muted); font-size: 1rem;
  max-width: 500px; margin: 0 auto; font-weight: 300;
}
.updated-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 1.5rem;
  background: rgba(124,92,252,0.08); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.3rem 0.9rem;
  font-size: 0.78rem; color: var(--muted); font-weight: 400;
}
.updated-badge span { color: var(--accent2); font-weight: 500; }

/* ── LEGAL PAGE LAYOUT ──────────────────────────────── */
.privacy-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 3rem;
  max-width: 1060px; margin: 0 auto;
  padding: 0 5% 100px; align-items: start;
}
.toc {
  position: sticky; top: 84px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.toc-title {
  font-family: 'Syne', sans-serif; font-size: 0.75rem; font-weight: 600;
  color: var(--muted2); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1rem;
}
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 0.82rem; padding: 0.4rem 0.6rem; border-radius: 6px;
  transition: background 0.15s, color 0.15s; line-height: 1.35;
}
.toc a:hover  { background: rgba(124,92,252,0.1); color: var(--accent2); }
.toc a.active { background: rgba(124,92,252,0.12); color: var(--accent2); font-weight: 500; }
.privacy-content { min-width: 0; }
.policy-section {
  margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.policy-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(124,92,252,0.12); border: 1px solid rgba(124,92,252,0.25);
  font-family: 'Exo 2', sans-serif; font-size: 0.72rem; font-weight: 700;
  color: var(--accent2); margin-bottom: 0.75rem;
}
.policy-section h2 {
  font-family: 'Puritan', sans-serif; font-size: 1.0rem; font-weight: 600;
  color: var(--text); margin-bottom: 1rem; line-height: 1.25;
}
.policy-section p { color: var(--muted); font-size: 0.92rem; line-height: 1.8; margin-bottom: 0.85rem; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul, .policy-section ol {
  margin: 0.75rem 0 0.85rem; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.policy-section li {
  color: var(--muted); font-size: 0.92rem; line-height: 1.7;
  padding-left: 1.4rem; position: relative;
}
.policy-section li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--accent2); font-size: 0.7rem; top: 4px;
}

/* ── CALLOUT BOXES ──────────────────────────────────── */
.highlight-box {
  background: rgba(124,92,252,0.06); border: 1px solid rgba(124,92,252,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.highlight-box p { margin-bottom: 0; color: var(--text); font-size: 0.9rem; }
.highlight-box strong { color: var(--accent2); font-weight: 600; }

.info-box {
  background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.2);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.info-box p { margin-bottom: 0; color: var(--text); font-size: 0.9rem; }
.info-box strong { color: var(--teal); font-weight: 600; }

.warn-box {
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.22);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 1.25rem 0;
}
.warn-box p { margin-bottom: 0; color: var(--text); font-size: 0.9rem; }
.warn-box strong { color: var(--warn); font-weight: 600; }

/* ── DATA TABLE ─────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.88rem; }
.data-table th {
  background: var(--bg3); color: var(--muted2); font-weight: 600;
  padding: 0.65rem 1rem; text-align: left; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.data-table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--muted); vertical-align: top; line-height: 1.6;
}
.data-table td:first-child { color: var(--text); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(120,100,255,0.04); }

/* ── CONTACT CARD ───────────────────────────────────── */
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem; margin-top: 1rem;
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(124,92,252,0.12); border: 1px solid rgba(124,92,252,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-card h3 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.contact-card p  { font-size: 0.85rem; color: var(--muted); margin-bottom: 0; }
.contact-card a  { color: var(--accent2); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: #fff; border: none;
  padding: 0.8rem 2rem; border-radius: 10px; font-size: 0.95rem;
  cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 500;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #6b4ef0; transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border2);
  padding: 0.8rem 2rem; border-radius: 10px; font-size: 0.95rem;
  cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 400;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-secondary:hover { background: rgba(120,100,255,0.08); border-color: var(--accent); }

/* ── UTILITIES ──────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.25);
  border-radius: 20px; padding: 0.3rem 0.9rem;
  font-size: 0.78rem; color: var(--teal); margin-bottom: 1rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}
.section-title {
  font-family: 'Puritan', sans-serif; font-size: clamp(1.6rem, 2.8vw, 2.0rem);
  font-weight: 700; margin-bottom: 0.75rem; line-height: 1.15;
}
.section-sub { color: var(--muted); font-size: 1rem; max-width: 500px; margin-bottom: 2.5rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 860px) {
  .privacy-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
}
@media (max-width: 768px) {
  .nav-links, nav .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { flex-direction: column; }
}
