/* ─────────────────────────────────────────────────────────────────
   legal.css — Shared stylesheet for StallConnect legal pages
   Matches the dark design system from the login/organizer portal
   Place in: public/legal.css
   ───────────────────────────────────────────────────────────────── */

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

:root {
  --bg:       #0f0f1a;
  --bg2:      #1a1a2e;
  --bg3:      #16213e;
  --bg4:      #1e2040;
  --accent:   #22c55e;
  --accent2:  #16a34a;
  --purple:   #6c63ff;
  --text:     #fff;
  --text2:    rgba(255,255,255,0.6);
  --text3:    rgba(255,255,255,0.35);
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.04);
  --radius:   14px;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.topbar-logo img {
  height: 32px;
  width: auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-nav a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.topbar-nav a.active {
  color: var(--accent);
}

/* ── Page Layout ────────────────────────────────────────────────── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

/* ── Page Header ────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.page-meta {
  font-size: 13px;
  color: var(--text3);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Table of Contents ──────────────────────────────────────────── */
.toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.15s;
}

.toc-list a:hover { color: var(--accent); }

.toc-num {
  font-size: 11px;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
}

/* ── Sections ───────────────────────────────────────────────────── */
.section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.section p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.7;
}

.section p:last-child { margin-bottom: 0; }

.section ul, .section ol {
  margin: 10px 0 14px 0;
  padding-left: 20px;
}

.section li {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 6px;
  line-height: 1.6;
}

.section strong { color: var(--text); font-weight: 600; }

/* ── Info Box ───────────────────────────────────────────────────── */
.info-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}

.info-box p {
  font-size: 14px;
  color: var(--text2);
  margin: 0;
}

.warn-box {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}

.warn-box p { font-size: 14px; color: rgba(253,230,138,0.9); margin: 0; }

/* ── Data Table ─────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--bg2);
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  color: var(--text2);
  border-bottom: 1px solid var(--border2);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Contact Card ───────────────────────────────────────────────── */
.contact-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.contact-value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-value a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text3);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent); }

/* ── Delete Account page specific ───────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  counter-reset: step-counter;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border2);
  color: var(--text2);
  font-size: 15px;
  counter-increment: step-counter;
}

.steps-list li:last-child { border-bottom: none; }

.step-num {
  min-width: 28px;
  height: 28px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Badge ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green { background: rgba(34,197,94,0.12); color: #86efac; }
.badge-amber { background: rgba(245,158,11,0.12); color: #fcd34d; }
.badge-red   { background: rgba(239,68,68,0.12);  color: #fca5a5; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .topbar-nav { display: none; }
  .page-wrap { padding: 32px 16px 60px; }
  .page-title { font-size: 26px; }
  .footer { padding: 24px 16px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }
}
