/* Newzander Legal Pages - Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --brand: #5b21b6;
  --brand-dark: #4c1d95;
  --brand-light: #ede9fe;
  --accent: #7c3aed;
  --gold: #d97706;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --danger: #dc2626;
  --success: #059669;
  --warning: #d97706;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(91,33,182,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

.legal-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.legal-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}
.legal-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .75rem;
  position: relative;
}
.legal-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.legal-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.legal-meta span {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 5px;
}

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Table of Contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.toc-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.toc a:hover { background: var(--brand-light); color: var(--brand); }
.toc-num {
  font-size: .68rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 20px;
}

/* Sections */
.legal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 80px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--brand-light);
}
.section-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 .5rem;
}
h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand);
  margin: 1rem 0 .375rem;
}

p { margin-bottom: .875rem; color: #334155; font-size: .9375rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: .5rem 0 .875rem 1.25rem;
  color: #334155;
  font-size: .9375rem;
}
li { margin-bottom: .375rem; }

/* Callout boxes */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .875rem;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.callout-body { flex: 1; }
.callout-title { font-weight: 700; margin-bottom: 3px; font-size: .875rem; }
.callout p { font-size: .875rem; margin-bottom: 0; }

.callout.info { background: #eff6ff; border-left: 3px solid #3b82f6; }
.callout.info .callout-title { color: #1d4ed8; }
.callout.warning { background: #fffbeb; border-left: 3px solid var(--warning); }
.callout.warning .callout-title { color: #92400e; }
.callout.danger { background: #fef2f2; border-left: 3px solid var(--danger); }
.callout.danger .callout-title { color: #991b1b; }
.callout.success { background: #f0fdf4; border-left: 3px solid var(--success); }
.callout.success .callout-title { color: #065f46; }
.callout.purple { background: var(--brand-light); border-left: 3px solid var(--brand); }
.callout.purple .callout-title { color: var(--brand-dark); }

/* Definition tables */
.def-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 1rem 0;
}
.def-table th {
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
}
.def-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: #334155;
  vertical-align: top;
}
.def-table tr:nth-child(even) td { background: var(--bg); }
.def-table tr:last-child td { border-bottom: none; }
.def-table td:first-child { font-weight: 600; color: var(--brand); white-space: nowrap; }

/* Acknowledgement box */
.ack-box {
  background: var(--brand-light);
  border: 1px solid rgba(91,33,182,.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
}
.ack-box p {
  font-size: .875rem;
  color: var(--brand-dark);
  margin: 0;
  font-weight: 500;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .15s;
}
.back-link:hover { color: var(--brand); }

/* Legal nav */
.legal-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.legal-nav-logo {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.1rem;
  text-decoration: none;
  margin-right: auto;
}
.legal-nav a {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all .15s;
}
.legal-nav a:hover { background: var(--brand-light); color: var(--brand); }

/* Responsive */
@media(max-width:600px) {
  .toc-grid { grid-template-columns: 1fr; }
  .legal-wrap { padding: 2rem 1rem 4rem; }
}
