/* ============ Legal Pages CSS ============ */

/* Hero */
.legal-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.legal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.legal-breadcrumb a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.legal-breadcrumb a:hover { color: var(--accent); }
.legal-breadcrumb span { color: rgba(255,255,255,0.6); }
.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.legal-hero-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 2;
}

/* Body / Layout */
.legal-body {
  background: var(--bg-secondary);
  padding: 56px 0 80px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* TOC Sidebar */
.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.legal-toc-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc-list li a {
  display: block;
  font-size: 0.8rem;
  color: var(--body);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1.4;
}
.legal-toc-list li a:hover,
.legal-toc-list li a.active {
  background: rgba(255,106,0,0.08);
  color: var(--accent);
}

/* Main Content */
.legal-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
}
.legal-intro {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.75;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.legal-section {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin: 20px 0 10px;
}
.legal-section p {
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-section li {
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-section li strong {
  color: var(--heading);
}
.legal-section a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Legal Notices */
.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 16px 0;
}
.legal-notice.info {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  color: #1d4ed8;
}
.legal-notice.success {
  background: rgba(22,163,74,0.06);
  border: 1px solid rgba(22,163,74,0.2);
  color: #15803d;
}
.legal-notice.warning {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  color: #b45309;
}
.legal-notice svg { flex-shrink: 0; margin-top: 1px; }

/* Steps list */
.legal-steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.legal-steps li {
  counter-increment: steps;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 40px;
  position: relative;
}
.legal-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.legal-steps li strong { color: var(--heading); font-size: 0.9rem; }
.legal-steps li p { margin: 0; }

/* Table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.875rem;
}
.legal-table th {
  background: var(--bg-secondary);
  padding: 11px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--heading);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-table td {
  padding: 11px 16px;
  border: 1px solid var(--border);
  color: var(--body);
  line-height: 1.5;
}
.legal-table tr:nth-child(even) td { background: var(--bg-secondary); }

/* Contact Card */
.legal-contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lcc-item {
  font-size: 0.875rem;
  color: var(--body);
}
.lcc-item strong { color: var(--heading); display: block; margin-bottom: 4px; }
.lcc-item a { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-content { padding: 28px 24px; }
}
@media (max-width: 580px) {
  .legal-content { padding: 20px 18px; }
  .legal-table { font-size: 0.78rem; }
  .legal-table th, .legal-table td { padding: 8px 10px; }
}
