/* ═══════════════════════════════════════════════════
   SAASSKUL LEGAL PAGES STYLESHEET
   Works with any theme — scoped to .sskul-legal-* 
═══════════════════════════════════════════════════ */

/* ── FOOTER LEGAL BAR ── */
.sskul-legal-footer-bar {
  width: 100%;
  background: #050e1d;
  border-top: 1px solid rgba(255, 107, 0, 0.12);
  padding: 16px 24px;
  position: relative;
  z-index: 100;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sskul-legal-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sskul-legal-copy {
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
}

.sskul-legal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sskul-legal-nav a {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.sskul-legal-nav a:hover {
  color: #ff6b00;
}

.sskul-legal-sep {
  font-size: 12px;
  color: #1e293b;
}

/* ── LEGAL PAGE DOCUMENT STYLES ── */
.sskul-legal-doc {
  max-width: 820px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'DM Sans', sans-serif;
  color: #334155;
  line-height: 1.75;
}

.sskul-legal-doc .sskul-legal-meta {
  display: inline-block;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 32px !important;
}

.sskul-legal-doc h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 48px !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 107, 0, 0.15);
}

.sskul-legal-doc h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}

.sskul-legal-doc p {
  margin-bottom: 16px !important;
  font-size: 15px;
  color: #475569;
}

.sskul-legal-doc ul,
.sskul-legal-doc ol {
  padding-left: 24px;
  margin-bottom: 20px !important;
}

.sskul-legal-doc ul li,
.sskul-legal-doc ol li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #475569;
  padding-left: 4px;
}

.sskul-legal-doc li::marker {
  color: #ff6b00;
}

.sskul-legal-doc a {
  color: #ff6b00;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 0, 0.3);
  transition: border-color 0.2s;
}

.sskul-legal-doc a:hover {
  border-color: #ff6b00;
}

.sskul-legal-doc strong {
  color: #1e293b;
  font-weight: 600;
}

/* ── LEGAL PAGE TEMPLATE WRAPPER ── */
.sskul-legal-page-wrap {
  min-height: 100vh;
  background: #f8fafc;
}

.sskul-legal-page-hero {
  background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.sskul-legal-page-hero .hero-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
}

.sskul-legal-page-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px !important;
  font-family: 'Syne', -apple-system, sans-serif;
}

.sskul-legal-page-hero .hero-meta {
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.sskul-legal-page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── TABLE OF CONTENTS (sidebar) ── */
.sskul-legal-toc {
  position: sticky;
  top: 80px;
}

.sskul-legal-toc h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 14px !important;
}

.sskul-legal-toc ul {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.sskul-legal-toc ul li {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.sskul-legal-toc ul li a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: #64748b;
  border: none;
  border-left: 2px solid #e2e8f0;
  border-radius: 0;
  transition: all 0.2s;
  text-decoration: none;
}

.sskul-legal-toc ul li a:hover,
.sskul-legal-toc ul li a.active {
  color: #ff6b00;
  border-left-color: #ff6b00;
  background: rgba(255, 107, 0, 0.04);
}

/* ── LEGAL ARTICLE BODY ── */
.sskul-legal-article {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ── BACK TO LEGAL NAV ── */
.sskul-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  transition: all 0.2s;
}

.sskul-legal-back:hover {
  background: rgba(255, 107, 0, 0.08);
  color: #ff6b00;
  border-bottom: none;
}

/* ── OTHER LEGAL PAGES LIST ── */
.sskul-other-legal {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.sskul-other-legal h4 {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px !important;
}

.sskul-other-legal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sskul-other-legal-grid a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
}

.sskul-other-legal-grid a:hover {
  border-color: rgba(255, 107, 0, 0.3);
  background: rgba(255, 107, 0, 0.04);
  color: #ff6b00;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sskul-legal-page-content {
    grid-template-columns: 1fr;
    padding: 24px 16px 60px;
    gap: 24px;
  }

  .sskul-legal-toc {
    position: static;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
  }

  .sskul-legal-article {
    padding: 24px 20px;
  }

  .sskul-legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .sskul-legal-page-hero {
    padding: 40px 16px 32px;
  }

  .sskul-legal-doc h2 {
    font-size: 17px;
  }
}
