/* ============================================================
   ZAZU Legal Pages — Standalone Stylesheet
   Self-contained: no external folder dependencies
   ============================================================ */

/* ---- Base reset & typography ---- */
html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #000;
  background-color: #fff;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }
p { margin-bottom: 0; }
ul { padding: 0; list-style: none; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin-bottom: 0; }

.manrope { font-family: "Manrope", sans-serif; }
.plusjakarta { font-family: "Plus Jakarta Sans", sans-serif; }
.italic { font-style: italic; }

.w300 { font-weight: 300; } .w400 { font-weight: 400; }
.w500 { font-weight: 500; } .w600 { font-weight: 600; }
.w700 { font-weight: 700; } .w800 { font-weight: 800; }

/* Footer base (was in style.css) */
.footer a { color: #797979; margin: 0; }
.footer a:hover { text-decoration: underline; color: #5f5f5f; }
.footer hr { border-top: 1px solid #D5D5D5; margin-top: 40px; margin-bottom: 20px; opacity: 1; }

/* ---- Reset + base overrides ---- */
*, *::before, *::after { box-sizing: border-box; }

ul.legal-list {
  list-style: disc;
  padding-left: 1.6rem;
  margin: 0;
}
ul.legal-list li {
  color: #303030;
  margin-bottom: 0.55rem;
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
}
ul.legal-list li:last-child { margin-bottom: 0; }

ol.legal-ol {
  padding-left: 1.6rem;
  margin: 0;
}
ol.legal-ol li {
  color: #303030;
  margin-bottom: 0.55rem;
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
}

/* ---- Spacing helpers (supplement style.css) ---- */
.mt05  { margin-top: 0.5rem !important; }
.mt1   { margin-top: 1rem !important; }
.mt15  { margin-top: 1.5rem !important; }
.mt2   { margin-top: 2rem !important; }
.mt3   { margin-top: 3rem !important; }
.mt4   { margin-top: 4rem !important; }
.mt5   { margin-top: 5rem !important; }
.mb05  { margin-bottom: 0.5rem !important; }
.mb1   { margin-bottom: 1rem !important; }

/* ---- Legal Hero ---- */
.legal-hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1e0a3c 50%, #000 100%);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(120,58,231,0.45) 0%, transparent 70%);
  pointer-events: none;
}
.legal-hero .badge-pill {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(120,58,231,0.5);
  border-radius: 50px;
  padding: 6px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a8ff;
  margin-bottom: 18px;
}
.legal-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
}
.legal-hero .date-line {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}

/* ---- Layout wrapper ---- */
.legal-body-wrap {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 64px 0 96px;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- TOC Sidebar ---- */
.legal-toc {
  flex: 0 0 248px;
  width: 248px;
  position: sticky;
  top: 32px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0d4f7 transparent;
}
.legal-toc::-webkit-scrollbar { width: 4px; }
.legal-toc::-webkit-scrollbar-thumb { background: #e0d4f7; border-radius: 4px; }

.toc-card {
  background: #faf8ff;
  border: 1px solid #ede6ff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(120,58,231,0.06);
}
.toc-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #783ae7;
  margin-bottom: 14px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #555;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.toc-list a:hover,
.toc-list a.active {
  background: #f0e8ff;
  color: #5b21b6;
}
.toc-list .toc-sub {
  padding-left: 18px;
}
.toc-list .toc-sub a {
  font-size: 12.5px;
  color: #888;
}
.toc-list .toc-sub a:hover { color: #5b21b6; }

/* ---- Content area ---- */
.legal-content {
  flex: 1 1 0;
  min-width: 0;
}

/* ---- Section blocks ---- */
.legal-section {
  margin-bottom: 52px;
  scroll-margin-top: 32px;
}
.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f0eaff;
}
.legal-section h3 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin: 24px 0 10px;
}
.legal-section p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: #303030;
  margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #783ae7, #9c59ff);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}
.legal-section h2 .section-num { top: -2px; }

/* ---- Info / Highlight boxes ---- */
.legal-note {
  background: linear-gradient(135deg, #f5efff 0%, #fdf0ff 100%);
  border-left: 3px solid #783ae7;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.65;
}
.legal-note strong { color: #5b21b6; }

.legal-warning {
  background: #fff8f0;
  border-left: 3px solid #f97316;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.65;
}
.legal-caps {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.65;
  background: #f8f5ff;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}

/* ---- Data tables ---- */
.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
}
.legal-table thead th {
  background: linear-gradient(135deg, #1a0533 0%, #2d0d5c 100%);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}
.legal-table thead th:first-child { border-radius: 12px 0 0 0; }
.legal-table thead th:last-child  { border-radius: 0 12px 0 0; }
.legal-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid #f0eaff;
  color: #303030;
  line-height: 1.6;
  vertical-align: top;
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table tbody tr:nth-child(even) td { background: #faf8ff; }
.legal-table tbody tr:hover td { background: #f3ecff; transition: background 0.15s; }

/* ---- Contact info card ---- */
.contact-card {
  background: linear-gradient(135deg, #0d0d0d 0%, #1e0a3c 100%);
  border-radius: 20px;
  padding: 32px 36px;
  color: #fff;
  margin-top: 24px;
}
.contact-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
}
.contact-card p, .contact-card li {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0;
}
.contact-card a { color: #c4a0ff; text-decoration: underline; }
.contact-card a:hover { color: #fff; }
.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-card ul li { margin-bottom: 6px; }
.contact-card ul li:last-child { margin-bottom: 0; }

/* ---- Address block ---- */
.address-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ---- Back to top ---- */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #783ae7, #9c59ff);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(120,58,231,0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
  text-decoration: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top svg { width: 18px; height: 18px; fill: #fff; }

/* ---- Mobile TOC toggle ---- */
.toc-mobile-toggle {
  display: none;
  width: 100%;
  background: #f0e8ff;
  border: 1.5px solid #d8b8ff;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #5b21b6;
  cursor: pointer;
  text-align: left;
  margin-bottom: 12px;
  transition: background 0.15s;
}
.toc-mobile-toggle:hover { background: #e5d4ff; }
.toc-mobile-toggle-icon { float: right; transition: transform 0.25s; }
.toc-mobile-toggle.open .toc-mobile-toggle-icon { transform: rotate(180deg); }
.toc-mobile-panel {
  display: none;
  background: #faf8ff;
  border: 1px solid #ede6ff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 32px;
}
.toc-mobile-panel.open { display: block; }
.toc-mobile-panel .toc-list a { font-size: 14px; }

/* ---- Legal nav header (sticky top bar) ---- */
.legal-topbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f0eaff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.legal-topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-topbar-logo img { height: 32px; width: auto; display: block; }
.legal-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 13px;
  font-weight: 500;
  color: #555;
}
.legal-topbar-links a {
  color: #555;
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.legal-topbar-links a:hover { background: #f0e8ff; color: #5b21b6; }
.legal-topbar-links a.active { background: #ede6ff; color: #5b21b6; font-weight: 600; }

/* ---- Footer overrides for legal pages ---- */
.legal-footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
  padding: 64px 0 32px;
  text-align: center;
}
.legal-footer .footerlogo { height: 48px; width: auto; margin-bottom: 8px; }
.legal-footer .tagline {
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: #9C59FF;
  margin: 0 0 24px;
}
.legal-footer .disclaimer-text {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto 28px;
}
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 0;
  margin-bottom: 32px;
}
.legal-footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  transition: color 0.15s, background 0.15s;
}
.legal-footer-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.legal-footer-links .sep { color: rgba(255,255,255,0.2); }
.legal-footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0 24px 24px; }
.legal-footer .copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .legal-body-wrap { gap: 32px; }
  .legal-toc { flex: 0 0 220px; width: 220px; }
}

@media (max-width: 768px) {
  .legal-body-wrap {
    flex-direction: column;
    gap: 0;
    padding: 32px 16px 64px;
  }
  .legal-toc { display: none; }
  .toc-mobile-toggle { display: block; }
  .legal-hero { padding: 48px 16px 40px; }
  .legal-hero h1 { font-size: 28px; }
  .legal-section h2 { font-size: 20px; }
  .legal-topbar-links { display: none; }
  .contact-card { padding: 24px 20px; }
  .legal-footer .disclaimer-text { font-size: 12px; }
  ul.legal-list li, ol.legal-ol li, .legal-section p { font-size: 15px; }
}

@media (max-width: 480px) {
  .legal-table { font-size: 13px; }
  .legal-table thead th, .legal-table tbody td { padding: 10px 12px; }
}
