/* ===== LEGAL PAGES SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f3ff;
  --bg2: #ffffff;
  --bg3: #ede9fe;
  --purple: #5b21b6;
  --purple-mid: #7c3aed;
  --purple-light: #a78bfa;
  --purple-pale: #ede9fe;
  --ink: #1e1033;
  --ink2: #3b2a6e;
  --muted: #6b7280;
  --border: #ddd6fe;
  --border2: #ede9fe;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 16px rgba(91,33,182,0.07);
  --radius: 18px;
  --font-display: 'Readex Pro', sans-serif;
  --font-body: 'Readex Pro', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,243,255,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border2);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.logo {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 800; color: var(--ink); text-decoration: none;
}
.logo .dot { color: var(--purple-mid); }
.nav-back {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; color: var(--muted); text-decoration: none;
  border: 1.5px solid var(--border); padding: 8px 18px; border-radius: 100px;
  transition: all 0.2s; font-weight: 500;
}
.nav-back:hover { color: var(--purple-mid); border-color: var(--purple-mid); }

/* HERO BANNER */
.legal-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--border2);
  position: relative; overflow: hidden;
  background: var(--bg);
}
.legal-hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.25), transparent 70%);
  pointer-events: none;
}
.legal-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--purple-mid);
  border: 1.5px solid var(--border); padding: 5px 12px;
  border-radius: 100px; margin-bottom: 20px;
  background: var(--purple-pale);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 16px; color: var(--ink);
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple-mid), #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-meta {
  font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.legal-meta span { display: flex; align-items: center; gap: 6px; }

/* TOC */
.toc {
  background: var(--bg2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px 32px; margin: 48px 0;
  box-shadow: 0 2px 16px rgba(91,33,182,0.06);
}
.toc-title {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--purple-mid); margin-bottom: 16px;
}
.toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.toc a:hover { color: var(--purple-mid); }

/* CONTENT */
.legal-content { padding: 0 0 100px; }

.legal-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border2);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.legal-section h2 .sec-num {
  font-size: 0.75rem; font-weight: 700;
  color: var(--purple-mid); background: var(--purple-pale);
  border: 1.5px solid var(--border);
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.05em;
}

.legal-section p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul, .legal-section ol {
  padding-left: 20px; color: var(--muted);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.95rem; margin-bottom: 16px;
}
.legal-section li::marker { color: var(--purple-mid); }

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--ink); margin: 24px 0 10px;
}

.highlight-box {
  background: var(--purple-pale);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--purple-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 20px 0;
  font-size: 0.92rem; color: var(--muted);
}
.highlight-box strong { color: var(--ink); }

.contact-card {
  background: var(--bg);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 32px; margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 2px 16px rgba(91,33,182,0.06);
}
.contact-card a { color: var(--purple-mid); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-row { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); }
.contact-row iconify-icon { color: var(--purple-mid); font-size: 1.1rem; flex-shrink: 0; }

/* FOOTER */
.footer { padding: 40px 0; border-top: 1px solid var(--border2); background: var(--bg2); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: var(--purple-mid); }
.footer-links a.active { color: var(--purple-mid); font-weight: 700; }
.footer-copy { font-size: 0.78rem; color: var(--purple-light); }

@media (max-width: 640px) {
  .legal-hero { padding: 120px 0 40px; }
  .legal-section h2 { font-size: 1.2rem; }
  .toc { padding: 20px; }
}
