/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES — Premium shared design system
   For: Privacy, Refunds, Terms, Shipping, Cookies, Cancellation, Contact
   Cinematic, Apple/Stripe-level design.
════════════════════════════════════════════════════════════════ */

.legal-page {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(111, 196, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 46, 138, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f9 100%);
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}


/* ════════════════════════════════════════
   HEADER — Reuse checkout slim header style
════════════════════════════════════════ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 46, 138, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 20px rgba(0, 15, 60, 0.04);
}
.legal-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.legal-logo img {
  height: 34px;
  width: auto;
  display: block;
  filter: none;
}
.legal-logo:hover { transform: scale(1.03); }

.legal-header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.legal-header-nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cfg-text-mute);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-header-nav a:hover { color: var(--bg-rich); }

.legal-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(37, 211, 102, 0.10);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
  letter-spacing: -0.1px;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), background 0.25s, box-shadow 0.25s;
}
.legal-header-cta:hover {
  transform: translateY(-1px);
  background: rgba(37, 211, 102, 0.18);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.22);
}


/* ════════════════════════════════════════
   HERO — Compact page header
════════════════════════════════════════ */
.legal-hero {
  position: relative;
  padding: 56px 24px 40px;
  overflow: hidden;
  isolation: isolate;
}
.legal-hero::before {
  /* subtle grid pattern */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 46, 138, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 46, 138, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 30%, transparent 80%);
  z-index: -1;
}
.legal-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}
.legal-hero-glow-1 {
  width: 460px; height: 460px;
  top: -180px; left: -100px;
  background: radial-gradient(circle, rgba(0, 46, 138, 0.15) 0%, transparent 70%);
}
.legal-hero-glow-2 {
  width: 380px; height: 380px;
  top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(111, 196, 255, 0.20) 0%, transparent 70%);
}

.legal-hero-wrap {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

/* Breadcrumb */
.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #fff;
  border: 1px solid rgba(0, 46, 138, 0.10);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--cfg-text-mute);
  letter-spacing: -0.1px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 15, 60, 0.04);
}
.legal-breadcrumb a {
  color: var(--cfg-text-mute);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-breadcrumb a:hover { color: var(--bg-rich); }
.legal-breadcrumb svg {
  color: rgba(0, 46, 138, 0.3);
  flex-shrink: 0;
}
.legal-breadcrumb-current {
  color: var(--bg-rich);
  font-weight: 800;
}

/* Eyebrow */
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--bg-rich);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  justify-content: center;
}
.legal-eyebrow-bar {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--bg-rich));
  border-radius: 2px;
}
.legal-eyebrow-bar-right {
  background: linear-gradient(to left, transparent, var(--bg-rich));
}

.legal-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--cfg-text);
  margin: 0 0 12px;
}
.legal-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 50px;
  background: linear-gradient(120deg, var(--bg-rich) 0%, var(--blade-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.6px;
}
.legal-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cfg-text-mute);
  max-width: 580px;
  margin: 0 auto;
}

/* Last updated badge */
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 12px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: -0.1px;
}
.legal-updated svg {
  color: #16a34a;
}


/* ════════════════════════════════════════
   MAIN LAYOUT — Sticky TOC + Content
════════════════════════════════════════ */
.legal-main {
  padding: 0 24px 80px;
}
.legal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}


/* ─── Sticky TOC ─── */
.legal-toc {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid rgba(0, 46, 138, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 28px rgba(0, 17, 56, 0.05);
}
.legal-toc-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--cfg-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.legal-toc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg-rich);
  box-shadow: 0 0 8px rgba(0, 46, 138, 0.5);
}
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--cfg-text-mute);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(.2,.7,.2,1);
}
.legal-toc-list a:hover {
  background: rgba(0, 46, 138, 0.05);
  color: var(--bg-rich);
  transform: translateX(2px);
}
.legal-toc-list a.active {
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0%, #eff5ff 100%);
  color: var(--bg-rich);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 46, 138, 0.12);
}
.legal-toc-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.legal-toc-list a.active .legal-toc-icon { opacity: 1; }


/* ─── Content card ─── */
.legal-content {
  background: #fff;
  border: 1px solid rgba(0, 46, 138, 0.08);
  border-radius: 18px;
  padding: 40px 48px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 12px 36px rgba(0, 17, 56, 0.05);
}

/* Content typography */
.legal-content h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--cfg-text);
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  position: relative;
}
.legal-content > p:first-of-type {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--cfg-text-mute);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(0, 46, 138, 0.12);
}

/* Numbered sections */
.legal-section {
  margin-bottom: 32px;
  scroll-margin-top: 96px;
}
.legal-section:last-child {
  margin-bottom: 0;
}
.legal-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.legal-section-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-rich) 0%, var(--blade-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
  box-shadow: 0 4px 12px rgba(0, 46, 138, 0.3);
}
.legal-section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--cfg-text);
  letter-spacing: -0.4px;
  margin: 0;
  flex: 1;
}
.legal-section-body {
  padding-left: 52px;
}
.legal-section-body p,
.legal-section-body li {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 10px;
}
.legal-section-body p:last-child {
  margin-bottom: 0;
}
.legal-section-body strong {
  color: var(--cfg-text);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 65%, rgba(0, 46, 138, 0.10) 65%);
  padding: 0 2px;
}
.legal-section-body a {
  color: var(--bg-rich);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 46, 138, 0.25);
  transition: border-color 0.2s, color 0.2s;
}
.legal-section-body a:hover {
  color: var(--blade-mid);
  border-bottom-color: var(--blade-mid);
}

/* Sub-headings inside a section (#### in markdown) */
.legal-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--cfg-text);
  letter-spacing: -0.2px;
  margin: 20px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legal-subtitle::before {
  content: '';
  width: 4px;
  height: 14px;
  background: linear-gradient(180deg, var(--bg-rich), var(--blade-mid));
  border-radius: 2px;
}

/* Bullet lists */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-list li {
  position: relative;
  padding-left: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-rich), var(--accent-cyan));
  box-shadow: 0 0 0 2px rgba(0, 46, 138, 0.08);
}

/* Contact info cards (for refund/contact pages) */
.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}
.legal-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 46, 138, 0.10);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), border-color 0.25s, box-shadow 0.25s;
}
.legal-contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 46, 138, 0.22);
  box-shadow: 0 6px 20px rgba(0, 17, 56, 0.07);
}
.legal-contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-rich) 0%, var(--blade-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 46, 138, 0.3);
}
.legal-contact-icon-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}
.legal-contact-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-contact-card-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--cfg-text-mute);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.legal-contact-card-value {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cfg-text);
  letter-spacing: -0.2px;
  word-break: break-word;
}

/* Info callout — for important notices */
.legal-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  margin: 18px 0;
}
.legal-callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.legal-callout-text {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #78350f;
  margin: 0;
}
.legal-callout-text strong { color: #451a03; }

/* Success callout (green) */
.legal-callout-success {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: rgba(22, 163, 74, 0.3);
  border-left-color: #16a34a;
}
.legal-callout-success .legal-callout-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.legal-callout-success .legal-callout-text {
  color: #14532d;
}
.legal-callout-success .legal-callout-text strong { color: #052e16; }


/* ════════════════════════════════════════
   FOOTER (reusing main site footer is heavy — slim version)
════════════════════════════════════════ */
.legal-footer {
  background:
    radial-gradient(ellipse 80% 50% at 30% 0%, rgba(10, 71, 181, 0.40) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(37, 99, 212, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 50%, var(--bg-deepest) 100%);
  color: rgba(173, 200, 240, 0.85);
  position: relative;
  overflow: hidden;
}
.legal-footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 196, 255, 0.5) 50%, transparent);
}

.legal-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.legal-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-footer-logo img {
  height: 36px;
  width: auto;
  filter: none;
}
.legal-footer-about {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(173, 200, 240, 0.65);
  max-width: 320px;
  margin: 0;
}
.legal-footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.legal-footer-col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.legal-footer-col-title-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(111, 196, 255, 0.8);
}
.legal-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(173, 200, 240, 0.7);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s cubic-bezier(.2,.7,.2,1);
  display: inline-block;
}
.legal-footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.legal-footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(111, 196, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(173, 200, 240, 0.5);
}
.legal-footer-bottom strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.legal-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.legal-footer-bottom-links a {
  color: rgba(173, 200, 240, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-footer-bottom-links a:hover { color: var(--accent-cyan); }


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .legal-toc {
    position: static;
  }
  .legal-content {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .legal-header-inner { padding: 0 16px; }
  .legal-header-nav { display: none; }
  .legal-hero { padding: 40px 16px 30px; }
  .legal-title { font-size: 32px; letter-spacing: -1px; }
  .legal-title em { font-size: 36px; }
  .legal-main { padding: 0 14px 60px; }
  .legal-content { padding: 24px 20px; }
  .legal-section-body { padding-left: 0; }
  .legal-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 16px 18px;
  }
  .legal-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .legal-title { font-size: 26px; }
  .legal-title em { font-size: 30px; }
  .legal-footer-links-grid { grid-template-columns: 1fr; }
}
