/* ==========================================================================
   MY MOBİ - Legal Pages Shared Styles
   ========================================================================== */

/* --- Page Header --- */
.legal-page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3a3f47 100%);
  color: #fff;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.legal-page-header::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(197, 155, 109, 0.12);
  border-radius: 50%;
}
.legal-page-header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: rgba(197, 155, 109, 0.08);
  border-radius: 50%;
}
.legal-page-header .container {
  position: relative;
  z-index: 1;
}
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.legal-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.18s ease; }
.legal-breadcrumb a:hover { color: #c59b6d; }
.legal-breadcrumb span { color: rgba(255,255,255,0.35); }
.legal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197,155,109,0.2);
  border: 1px solid rgba(197,155,109,0.4);
  color: #c59b6d;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-page-title {
  font-size: clamp(28px,4vw,44px);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.legal-page-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.6;
}
.legal-update-info {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
}

/* --- Content Layout --- */
.legal-content-wrap {
  padding: 60px 0 80px;
  background: #fbfbfb;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Sidebar / TOC --- */
.legal-sidebar { position: sticky; top: 100px; }
.legal-toc-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.legal-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6e6e73;
  margin-bottom: 14px;
}
.legal-toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-toc-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #6e6e73;
  transition: all 0.18s ease;
  line-height: 1.4;
}
.legal-toc-list li a:hover, .legal-toc-list li a.active {
  background: #f5eedf;
  color: #af8353;
}
.legal-toc-list li a .toc-num {
  font-size: 11px;
  font-weight: 700;
  color: #c59b6d;
  min-width: 18px;
}
.legal-contact-card {
  background: linear-gradient(135deg, #212529 0%, #3a3f47 100%);
  border-radius: 20px;
  padding: 20px;
  margin-top: 16px;
  color: #fff;
}
.legal-contact-card h4 { font-size: 14px; color: #fff; margin-bottom: 8px; }
.legal-contact-card p { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 12px; }
.legal-contact-btn {
  display: block;
  background: #c59b6d;
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s ease;
}
.legal-contact-btn:hover { background: #af8353; color: #fff; }

/* --- Main Content Area --- */
.legal-main { min-width: 0; }
.legal-section {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 24px;
  scroll-margin-top: 110px;
  transition: box-shadow 0.18s ease;
}
.legal-section:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.legal-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.legal-section-icon {
  width: 42px; height: 42px;
  background: #f5eedf;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.legal-section-num { font-size:11px; font-weight:700; color:#c59b6d; text-transform:uppercase; letter-spacing:1px; display:block; margin-bottom:2px; }
.legal-section-title { font-size: 20px; font-weight: 700; color: #212529; line-height: 1.2; }
.legal-text { font-size: 14.5px; color: #1d1d1f; line-height: 1.75; margin-bottom: 14px; }
.legal-text:last-child { margin-bottom: 0; }
.legal-text strong { color: #212529; font-weight: 600; }
.legal-text a { color: #af8353; text-decoration: underline; text-underline-offset: 3px; }
.legal-ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.legal-ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #1d1d1f; line-height: 1.65; }
.legal-ul li::before { content:''; width:6px; height:6px; background:#c59b6d; border-radius:50%; flex-shrink:0; margin-top:8px; }
.legal-ol { list-style:none; counter-reset:legal-counter; display:flex; flex-direction:column; gap:10px; margin:14px 0; }
.legal-ol li { display:flex; align-items:flex-start; gap:12px; font-size:14.5px; color:#1d1d1f; line-height:1.65; counter-increment:legal-counter; }
.legal-ol li::before { content:counter(legal-counter); background:#212529; color:#fff; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; margin-top:2px; }
.legal-info-box { background:#f5eedf; border-left:4px solid #c59b6d; border-radius:0 6px 6px 0; padding:14px 18px; margin:18px 0; font-size:14px; color:#1d1d1f; line-height:1.65; }
.legal-info-box strong { color:#af8353; }
.legal-warn-box { background:#fff7ed; border-left:4px solid #f59e0b; border-radius:0 6px 6px 0; padding:14px 18px; margin:18px 0; font-size:14px; color:#92400e; line-height:1.65; }
.legal-success-box { background:#f0fdf4; border-left:4px solid #16a34a; border-radius:0 6px 6px 0; padding:14px 18px; margin:18px 0; font-size:14px; color:#14532d; line-height:1.65; }
.legal-table-wrap { overflow-x:auto; margin:18px 0; border-radius:12px; border:1px solid #eaeaea; }
.legal-table { width:100%; border-collapse:collapse; font-size:14px; }
.legal-table th { background:#212529; color:#fff; padding:11px 16px; text-align:left; font-weight:600; font-size:12px; letter-spacing:0.3px; }
.legal-table td { padding:10px 16px; border-bottom:1px solid #f0f0f0; color:#1d1d1f; line-height:1.55; vertical-align:top; }
.legal-table tr:last-child td { border-bottom:none; }
.legal-table tr:nth-child(even) td { background:#fbfbfb; }
.legal-highlight-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin:20px 0; }
.legal-highlight-card { background:#f5f5f7; border:1px solid #eaeaea; border-radius:12px; padding:18px; text-align:center; }
.legal-highlight-card .hi-icon { font-size:26px; margin-bottom:8px; }
.legal-highlight-card .hi-val { font-size:22px; font-weight:800; color:#212529; font-family:'Outfit',sans-serif; line-height:1; margin-bottom:4px; }
.legal-highlight-card .hi-label { font-size:12px; color:#6e6e73; }
.legal-divider { height:1px; background:#f0f0f0; margin:20px 0; }
.legal-sub-heading { font-size:16px; font-weight:700; color:#212529; margin:20px 0 10px; display:flex; align-items:center; gap:8px; }
.legal-sub-heading::before { content:''; width:3px; height:18px; background:#c59b6d; border-radius:2px; flex-shrink:0; }
.legal-footer-note { background:#fff; border:1px solid #eaeaea; border-radius:20px; padding:28px 36px; text-align:center; margin-top:32px; }
.legal-footer-note h3 { font-size:18px; margin-bottom:8px; }
.legal-footer-note p { font-size:14px; color:#6e6e73; margin-bottom:16px; }
.legal-cta-links { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.legal-cta-links a { padding:10px 22px; border-radius:9999px; font-size:14px; font-weight:600; transition:all 0.18s ease; }
.legal-cta-primary { background:#c59b6d; color:#fff !important; }
.legal-cta-primary:hover { background:#af8353; }
.legal-cta-secondary { background:#f5f5f7; border:1px solid #eaeaea; color:#1d1d1f !important; }
.legal-cta-secondary:hover { border-color:#c59b6d; color:#c59b6d !important; }
.legal-related-pages { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-top:0; }
.legal-related-card { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid #eaeaea; border-radius:12px; padding:16px; transition:all 0.18s ease; color:#1d1d1f !important; }
.legal-related-card:hover { border-color:#c59b6d; box-shadow:0 2px 8px rgba(0,0,0,0.04); color:#212529 !important; transform:translateY(-2px); }
.legal-related-card .rc-icon { font-size:22px; width:40px; height:40px; background:#f5eedf; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.legal-related-card .rc-text h5 { font-size:13px; font-weight:600; margin-bottom:2px; }
.legal-related-card .rc-text p { font-size:11px; color:#6e6e73; }
@media (max-width:900px) { .legal-layout { grid-template-columns:1fr; } .legal-sidebar { position:static; } .legal-toc-card { display:none; } }
@media (max-width:640px) { .legal-section { padding:24px 20px; } .legal-page-header { padding:44px 0 36px; } .legal-content-wrap { padding:36px 0 60px; } }
