/* =========================================================
   RESMAN — LEGAL PAGES SHARED STYLES
   ========================================================= */

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

:root {
  --red:   #EB4135;
  --ink:   #0f172a;
  --muted: #64748b;
  --light: #f8fafc;
  --border:#e2e8f0;
  --nav-h: 64px;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 32px; width: auto; }
.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-back:hover { color: var(--ink); }
.nav-back svg { flex-shrink: 0; }

/* ── HERO ── */
.legal-hero {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 56px;
  text-align: center;
}
.legal-hero .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.legal-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}
.legal-hero .last-updated {
  margin-top: 24px;
  font-size: .8rem;
  color: var(--muted);
  background: var(--border);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
}

/* ── LAYOUT ── */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 56px;
}
.toc h2 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
}
.toc ol li a {
  font-size: .875rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.9;
}
.toc ol li a:hover { color: var(--red); }

@media (max-width: 560px) { .toc ol { grid-template-columns: 1fr; } }

/* ── SECTIONS ── */
.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-section h2 .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}
.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--ink);
}
.legal-section p { font-size: .9375rem; color: #334155; margin-bottom: 12px; }
.legal-section ul,
.legal-section ol {
  font-size: .9375rem;
  color: #334155;
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-section li { margin-bottom: 6px; }
.legal-section a { color: var(--red); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* ── CALLOUT BOXES ── */
.callout {
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .875rem;
  line-height: 1.65;
}
.callout.info   { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }
.callout.warn   { background: #fff7ed; border-left: 4px solid #f97316; color: #9a3412; }
.callout.danger { background: #fef2f2; border-left: 4px solid var(--red); color: #991b1b; }
.callout.green  { background: #f0fdf4; border-left: 4px solid #22c55e; color: #166534; }
.callout strong { font-weight: 600; }

/* ── CONTACT CARD ── */
.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 72px;
}
.contact-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.contact-card p  { font-size: .9375rem; color: rgba(255,255,255,.65); margin-bottom: 24px; }
.contact-card .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-red {
  display: inline-block;
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-red:hover { opacity: .88; }
.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ── ROADMAP SPECIFIC ── */
.roadmap-phases { margin-top: 56px; }
.phase-block { margin-bottom: 56px; }
.phase-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.phase-label.live    { background: #dcfce7; color: #15803d; }
.phase-label.soon    { background: #fef9c3; color: #854d0e; }
.phase-label.planned { background: #eff6ff; color: #1d4ed8; }
.phase-label.future  { background: #f3e8ff; color: #7e22ce; }
.phase-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.phase-sub   { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.roadmap-items { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (max-width: 600px) { .roadmap-items { grid-template-columns: 1fr; } }
.roadmap-item {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.roadmap-item .ri-title { font-size: .9375rem; font-weight: 600; margin-bottom: 4px; }
.roadmap-item .ri-desc  { font-size: .825rem; color: var(--muted); }
.roadmap-item.done { border-left: 3px solid #22c55e; }
.roadmap-item.soon { border-left: 3px solid #f59e0b; }
.roadmap-item.planned { border-left: 3px solid #3b82f6; }
.roadmap-item.future  { border-left: 3px solid #a855f7; }

/* ── FOOTER ── */
.legal-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-align: center;
  padding: 32px 24px;
}
.legal-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.legal-footer a:hover { color: #fff; }
.legal-footer .footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
