/* ═══════════════════════════════════════════════════════════════════════
   legal.css — Stylesheet for Privacy Policy & Terms of Service pages
   Baseline: html { font-size: 62.5% } (1rem = 10px on desktop)
   Brand Palette: Navy #1A2B5E · Blue #1565C8 · Green #2E9E3E · Slate #64748B
   Font: Inter (Max Font-Weight: 600 strictly enforced)
   ═══════════════════════════════════════════════════════════════════════ */

/* Global Typography Constraint: Max font-weight 600 */
.legal-hero,
.legal-main-section {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.legal-hero b,
.legal-hero strong,
.legal-hero h1,
.legal-hero h2,
.legal-hero h3,
.legal-main-section b,
.legal-main-section strong,
.legal-main-section h1,
.legal-main-section h2,
.legal-main-section h3,
.legal-main-section h4 {
  font-weight: 600 !important;
}

/* ─── 1. HERO SECTION ─────────────────────────────────────────────────── */
.legal-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0b1329;
  padding: 4rem 0 4rem;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(21, 101, 200, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(46, 158, 62, 0.15) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  opacity: 0.95;
  z-index: 1;
}

.legal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 41, 0.5) 0%, #0b1329 100%);
  z-index: 1;
}

.legal-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Breadcrumb */
.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1.6rem;
  border-radius: 5rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-breadcrumb a:hover {
  color: #6edc84;
}

.legal-breadcrumb .sep {
  font-size: 0.9rem;
  opacity: 0.5;
}

.legal-breadcrumb .active {
  color: #6edc84;
  font-weight: 600;
}

/* Eyebrow Badge */
.legal-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(46, 158, 62, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.38);
  color: #4ade80;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1.4rem;
  border-radius: 5rem;
  margin-bottom: 1.4rem;
}

/* Headline */
.legal-hero-title {
  font-size: clamp(1.8rem, 2.4vw, 3.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.legal-hero-subtitle {
  font-size: clamp(1.35rem, 1.4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  max-width: 64rem;
  margin: 0 auto 2.2rem;
}

/* Meta Pills Row */
.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 1.4rem;
  border-radius: 5rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legal-meta-pill i {
  color: #4ade80;
  font-size: 1.15rem;
}

/* ─── 2. MAIN SECTION: CONTENT & SIDEBAR ──────────────────────────────── */
.legal-main-section {
  padding: clamp(3.5rem, 4.5vw, 4.8rem) 0;
  background: #f8fafc;
}

/* Left: Main Legal Document Card */
.legal-card {
  background: #ffffff;
  border-radius: 2.2rem;
  padding: 3.8rem 3.6rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 32px rgba(15, 26, 61, 0.04);
}

/* Document Header Summary */
.legal-intro-banner {
  background: linear-gradient(135deg, rgba(21, 101, 200, 0.05) 0%, rgba(46, 158, 62, 0.06) 100%);
  border: 1px solid rgba(21, 101, 200, 0.15);
  border-radius: 1.6rem;
  padding: 2.2rem 2.4rem;
  margin-bottom: 3.2rem;
}

.legal-intro-banner p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #334155;
  margin: 0;
}

/* Sections */
.legal-section {
  margin-bottom: 3.4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 10rem;
}

.legal-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.legal-sec-num {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 1.1rem;
  background: rgba(21, 101, 200, 0.10);
  color: #1565C8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 600;
  flex-shrink: 0;
}

.legal-sec-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: #1A2B5E;
  margin: 0;
  line-height: 1.3;
}

.legal-section p {
  font-size: 1.38rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1.4rem;
}

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

/* Lists */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.35rem;
  line-height: 1.65;
  color: #475569;
}

.legal-list li i {
  color: #2e9e3e;
  font-size: 1.25rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

/* Callouts */
.legal-callout {
  border-radius: 1.4rem;
  padding: 1.8rem 2.2rem;
  margin: 1.8rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}

.legal-callout-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.legal-callout-content {
  flex-grow: 1;
}

.legal-callout-title {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.legal-callout p {
  font-size: 1.35rem;
  line-height: 1.6;
  margin: 0;
}

.legal-callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.legal-callout-info .legal-callout-icon,
.legal-callout-info .legal-callout-title {
  color: #1565C8;
}

.legal-callout-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.legal-callout-success .legal-callout-icon,
.legal-callout-success .legal-callout-title {
  color: #1e7a2e;
}

.legal-callout-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.legal-callout-warning .legal-callout-icon,
.legal-callout-warning .legal-callout-title {
  color: #d97706;
}

/* Right: Sticky Sidebar */
.legal-sidebar {
  position: sticky;
  top: 9rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.sidebar-card {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2.6rem 2.2rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px rgba(15, 26, 61, 0.04);
}

.sidebar-card-title {
  font-size: 1.55rem;
  font-weight: 600;
  color: #1A2B5E;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-card-title i {
  color: #1565C8;
  font-size: 1.4rem;
}

/* Quick Navigation Links */
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.legal-toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  border-radius: 0.9rem;
  font-size: 1.28rem;
  color: #475569;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.legal-toc-link:hover {
  background: rgba(21, 101, 200, 0.08);
  color: #1565C8;
  transform: translateX(3px);
}

.legal-toc-link i {
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Support Help Card */
.legal-help-desc {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 1.8rem;
}

.legal-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
}

.legal-contact-item i {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  background: #f1f5f9;
  color: #1565C8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.legal-contact-item a {
  color: #1A2B5E;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.legal-contact-item a:hover {
  color: #1565C8;
}

.legal-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #25d366;
  color: #ffffff;
  padding: 1.1rem 1.6rem;
  border-radius: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: background 0.25s, transform 0.2s;
}

.legal-btn-wa:hover {
  background: #1eb855;
  color: #ffffff;
  transform: translateY(-2px);
}

.legal-btn-print {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 1rem 1.6rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.legal-btn-print:hover {
  background: #ffffff;
  color: #1A2B5E;
  border-color: #cbd5e1;
}

/* ─── 3. RESPONSIVE BREAKPOINTS ───────────────────────────────────────── */
@media (max-width: 991px) {
  .legal-sidebar {
    position: static;
    margin-top: 3rem;
  }

  .legal-card {
    padding: 3rem 2.4rem;
  }
}

@media (max-width: 575px) {
  .legal-hero {
    padding: 6.5rem 0 3.5rem;
  }

  .legal-card {
    padding: 2.4rem 1.8rem;
  }

  .legal-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* Print Optimization */
@media print {

  .site-header,
  .site-footer,
  .floating-actions,
  .legal-hero,
  .legal-sidebar {
    display: none !important;
  }

  .legal-main-section {
    padding: 0 !important;
    background: transparent !important;
  }

  .legal-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}