/* ================================================================
   KAŞIFLER TURİZM — LEGAL PAGES CSS
   Tamamen yeniden tasarlanmış sözleşme sayfaları
   TÜRSAB Belge No: 12912
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ========================
   CSS VARIABLES
   ======================== */
:root {
  --legal-bg: #f8fafc;
  --legal-surface: #ffffff;
  --legal-border: #e2e8f0;
  --legal-accent: #f97316;
  --legal-accent-soft: #fff7ed;
  --legal-navy: #0f172a;
  --legal-blue: #1e3a8a;
  --legal-blue-soft: #eff6ff;
  --legal-text: #334155;
  --legal-muted: #64748b;
  --legal-subtle: #94a3b8;
  --legal-success: #10b981;
  --legal-heading: #0f172a;
  --legal-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --legal-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --legal-shadow-lg: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --legal-radius: 16px;
  --legal-radius-sm: 10px;
  --legal-radius-xs: 6px;
}

/* ========================
   BASE RESET FOR LEGAL
   ======================== */
body {
  background: var(--legal-bg);
}

/* ========================
   PAGE HERO — SÖZLEŞME HEADER
   ======================== */
.legal-hero {
  position: relative;
  margin-top: 72px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(249,115,22,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(99,102,241,0.15) 0%, transparent 50%);
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--legal-bg) 0%, transparent 100%);
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.4);
  color: #fdba74;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.legal-hero-badge i { font-size: 0.7rem; }

.legal-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-hero-sub {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.legal-meta-pill i { color: #f97316; font-size: 0.75rem; }

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.legal-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-breadcrumb a:hover { color: #f97316; }
.legal-breadcrumb .sep { color: #475569; }
.legal-breadcrumb .current { color: #f97316; font-weight: 600; }

/* ========================
   PAGE LAYOUT
   ======================== */
.legal-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

/* ========================
   SIDEBAR
   ======================== */
.legal-sidebar-card {
  position: sticky;
  top: 100px;
  background: var(--legal-surface);
  border-radius: var(--legal-radius);
  box-shadow: var(--legal-shadow);
  border: 1px solid var(--legal-border);
  overflow: hidden;
}

.legal-sidebar-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-sidebar-header .sidebar-icon {
  width: 36px;
  height: 36px;
  background: rgba(249,115,22,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-size: 1rem;
  flex-shrink: 0;
}

.legal-sidebar-header h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.legal-sidebar-header p {
  color: #94a3b8;
  font-size: 0.75rem;
  margin: 2px 0 0;
}

.legal-sidebar-nav {
  padding: 12px 0;
  border-bottom: 1px solid var(--legal-border);
}

.legal-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--legal-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.legal-nav-item i {
  width: 18px;
  text-align: center;
  color: var(--legal-subtle);
  font-size: 0.8rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.legal-nav-item:hover {
  background: var(--legal-blue-soft);
  color: var(--legal-blue);
  border-left-color: #3b82f6;
}

.legal-nav-item:hover i { color: var(--legal-blue); }

.legal-nav-item.active {
  background: #fff7ed;
  color: #c2410c;
  border-left-color: #f97316;
  font-weight: 700;
}

.legal-nav-item.active i { color: #f97316; }

/* Sidebar Company Info */
.legal-sidebar-company {
  padding: 20px;
  border-bottom: 1px solid var(--legal-border);
}

.sidebar-company-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--legal-muted);
  margin-bottom: 12px;
}

.sidebar-company-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--legal-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.sidebar-company-row i {
  color: #f97316;
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
}

.sidebar-company-row a {
  color: var(--legal-blue);
  text-decoration: none;
}

.sidebar-company-row a:hover { text-decoration: underline; }

/* TÜRSAB Mini Badge in Sidebar */
.sidebar-tursab {
  padding: 16px 20px;
}

.sidebar-tursab-card {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-tursab-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-tursab-icon {
  width: 44px;
  height: 44px;
  background: rgba(249,115,22,0.15);
  border: 2px solid rgba(249,115,22,0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-tursab-icon svg { filter: drop-shadow(0 0 4px rgba(249,115,22,0.5)); }

.sidebar-tursab-info { flex: 1; min-width: 0; }

.sidebar-tursab-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}

.sidebar-tursab-no {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fef08a;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
}

.sidebar-tursab-type {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.sidebar-tursab-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: #fdba74;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.sidebar-tursab-verify:hover {
  background: rgba(249,115,22,0.25);
  border-color: rgba(249,115,22,0.6);
  color: #fb923c;
}

/* ========================
   MAIN CONTENT CARD
   ======================== */
.legal-content-main {
  background: var(--legal-surface);
  border-radius: var(--legal-radius);
  box-shadow: var(--legal-shadow);
  border: 1px solid var(--legal-border);
  overflow: hidden;
}

/* Document Header Strip */
.legal-doc-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  padding: 36px 48px;
  position: relative;
  overflow: hidden;
}

.legal-doc-header::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
}

.legal-doc-header::after {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.legal-doc-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.35);
  color: #fdba74;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.legal-doc-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.legal-doc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.legal-doc-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.legal-doc-meta-item i { color: #f97316; font-size: 0.75rem; }
.legal-doc-meta-item strong { color: #cbd5e1; }

/* Info Banner */
.legal-info-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border-left: 4px solid #f97316;
  padding: 20px 28px;
  margin: 0;
  border-bottom: 1px solid #fed7aa;
}

.legal-info-banner i {
  color: #f97316;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-info-banner p {
  font-size: 0.9rem;
  color: #92400e;
  margin: 0;
  line-height: 1.6;
}

.legal-info-banner strong { color: #78350f; }

/* ========================
   DOCUMENT BODY
   ======================== */
.legal-doc-body {
  padding: 48px;
}

/* Section Titles */
.legal-doc-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--legal-heading);
  margin: 40px 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--legal-border);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  position: relative;
}

.legal-doc-body h2:first-child { margin-top: 0; }

.legal-doc-body h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, #f97316, #ea580c);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-doc-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-doc-body h3::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: #3b82f6;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Paragraphs */
.legal-doc-body p {
  font-size: 0.95rem;
  color: var(--legal-text);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* Lists */
.legal-doc-body ul,
.legal-doc-body ol {
  padding-left: 0;
  margin: 12px 0 20px;
  list-style: none;
}

.legal-doc-body ul li,
.legal-doc-body ol li {
  position: relative;
  padding: 8px 12px 8px 32px;
  font-size: 0.9rem;
  color: var(--legal-text);
  line-height: 1.6;
  border-radius: 6px;
  transition: background 0.15s;
  margin-bottom: 2px;
}

.legal-doc-body ul li:hover,
.legal-doc-body ol li:hover {
  background: #f8fafc;
}

.legal-doc-body ul li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
}

.legal-doc-body ol {
  counter-reset: legal-counter;
}

.legal-doc-body ol li {
  counter-increment: legal-counter;
}

.legal-doc-body ol li::before {
  content: counter(legal-counter);
  position: absolute;
  left: 8px;
  top: 9px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 18px;
}

/* Info Table (Satıcı Bilgileri) */
.legal-info-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--legal-border);
  margin: 16px 0 24px;
  box-shadow: var(--legal-shadow-sm);
}

.legal-info-table tr:nth-child(even) {
  background: #f8fafc;
}

.legal-info-table th {
  width: 170px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  text-align: left;
  border-right: 1px solid var(--legal-border);
  white-space: nowrap;
}

.legal-info-table td {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--legal-text);
}

.legal-info-table td a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.legal-info-table td a:hover {
  text-decoration: underline;
  color: #f97316;
}

.legal-info-table tr:first-child th,
.legal-info-table tr:first-child td {
  border-top: none;
}

/* Important / Warning Boxes */
.legal-warn-box {
  display: flex;
  gap: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.legal-warn-box i { color: #ef4444; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.legal-warn-box p { margin: 0; font-size: 0.88rem; color: #991b1b; line-height: 1.6; }

.legal-note-box {
  display: flex;
  gap: 14px;
  background: var(--legal-blue-soft);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.legal-note-box i { color: #2563eb; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.legal-note-box p { margin: 0; font-size: 0.88rem; color: #1e40af; line-height: 1.6; }

.legal-success-box {
  display: flex;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.legal-success-box i { color: #059669; font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.legal-success-box p { margin: 0; font-size: 0.88rem; color: #065f46; line-height: 1.6; }

/* ========================
   SATICI BİLGİLERİ FOOTER CARD
   ======================== */
.legal-company-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--legal-border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.legal-company-card-left { }

.legal-company-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--legal-heading);
  margin: 0 0 4px;
}

.legal-company-card-tursab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.legal-company-card-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--legal-muted);
  margin-bottom: 6px;
}

.legal-company-card-detail i {
  color: #f97316;
  font-size: 0.75rem;
  margin-top: 2px;
  width: 14px;
  flex-shrink: 0;
}

.legal-company-card-detail a { color: #2563eb; text-decoration: none; }
.legal-company-card-detail a:hover { text-decoration: underline; }

.legal-company-card-right {
  display: flex;
  justify-content: flex-end;
}

.legal-tursab-seal {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  min-width: 160px;
}

.legal-tursab-seal-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
  display: block;
}

.legal-tursab-seal-no {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fef08a;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 6px;
}

.legal-tursab-seal-type {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.legal-tursab-seal-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: #fdba74;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.legal-tursab-seal-verify:hover {
  background: rgba(249,115,22,0.25);
  color: #fb923c;
}

/* ========================
   DOCUMENTS HUB PAGE (sozlesmeler.html)
   ======================== */
.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.legal-hub-card {
  background: var(--legal-surface);
  border: 1px solid var(--legal-border);
  border-radius: var(--legal-radius);
  padding: 28px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--legal-shadow-sm);
}

.legal-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.legal-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--legal-shadow-lg);
  border-color: #fed7aa;
}

.legal-hub-card:hover::before { transform: scaleX(1); }

.legal-hub-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #f97316;
  margin-bottom: 16px;
}

.legal-hub-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 0 0 8px;
}

.legal-hub-card p {
  font-size: 0.85rem;
  color: var(--legal-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.legal-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-hub-card:hover .legal-hub-link { gap: 10px; }

/* ========================
   QUICK NAV (top of page)
   ======================== */
.legal-toc {
  background: var(--legal-surface);
  border: 1px solid var(--legal-border);
  border-radius: var(--legal-radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--legal-shadow-sm);
}

.legal-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--legal-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-toc-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #f97316;
  border-radius: 2px;
  display: block;
}

.legal-toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc-list li a {
  display: inline-block;
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.8rem;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.legal-toc-list li a:hover {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #f97316;
}

/* ========================
   SECTION DIVIDER
   ======================== */
.legal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--legal-border), transparent);
  margin: 32px 0;
}

/* ========================
   TIMELINE (for phases/deadlines)
   ======================== */
.legal-timeline {
  position: relative;
  padding-left: 28px;
  margin: 16px 0 24px;
}

.legal-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #f97316, #e2e8f0);
  border-radius: 1px;
}

.legal-timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--legal-border);
}

.legal-timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #f97316;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #f97316;
}

.legal-timeline-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--legal-heading);
  margin: 0 0 4px;
}

.legal-timeline-item p {
  font-size: 0.82rem;
  color: var(--legal-muted);
  margin: 0;
  line-height: 1.5;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }

  .legal-doc-body { padding: 36px; }
  .legal-doc-header { padding: 28px 36px; }
  .legal-company-card { grid-template-columns: 1fr; }
  .legal-company-card-right { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .legal-hero { min-height: 220px; }
  .legal-hero-inner { padding: 40px 20px 60px; }

  .legal-layout {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .legal-sidebar-card {
    position: static;
    order: 2;
  }

  .legal-content-main { order: 1; }

  .legal-doc-body { padding: 24px 20px; }
  .legal-doc-header { padding: 24px 20px; }

  .legal-hub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-info-table th { width: 120px; }
  .legal-page-wrapper { padding: 0 16px 60px; }

  .legal-doc-meta-row { gap: 10px; }
}

@media (max-width: 480px) {
  .legal-hero h1 { font-size: 1.5rem; }
  .legal-doc-header h1 { font-size: 1.25rem; }
  .legal-doc-body { padding: 20px 16px; }
  .legal-doc-header { padding: 20px 16px; }
  .legal-info-table { font-size: 0.82rem; }
  .legal-info-table th { width: 100px; padding: 10px 12px; }
  .legal-info-table td { padding: 10px 12px; }

  .legal-company-card { padding: 20px; }
  .legal-toc { padding: 16px 20px; }
}
