/* ===== Legal Pages — Light Theme ===== */

.legal-page {
  padding: 60px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.legal-header {
  text-align: center;
  margin-bottom: 50px;
}
.legal-header .logo-link {
  display: inline-block;
  margin-bottom: 28px;
}
.legal-header .logo-link img {
  height: 40px;
  width: auto;
}
.legal-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text, #0f172a);
}
.legal-header .effective-date {
  color: var(--muted, #64748b);
  font-size: 14px;
}

/* Sections */
.legal-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border, #e2e8f0);
}
.legal-section:first-of-type {
  border-top: none;
}

.legal-section .section-label {
  position: sticky;
  top: 32px;
  align-self: start;
  padding-right: 20px;
}
.legal-section .section-label h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.4;
  margin: 0;
}
.legal-section .section-label .section-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary, #6366f1);
  margin-bottom: 8px;
}

.legal-section .section-body { min-width: 0; }
.legal-section .section-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text, #0f172a);
}
.legal-section .section-body h3:first-child { margin-top: 0; }
.legal-section .section-body p,
.legal-section .section-body li {
  color: var(--text-secondary, #334155);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-section .section-body ul,
.legal-section .section-body ol {
  margin: 12px 0 18px 22px;
}
.legal-section .section-body li { margin-bottom: 8px; }
.legal-section .section-body a {
  color: var(--primary, #6366f1);
  text-decoration: none;
}
.legal-section .section-body a:hover { text-decoration: underline; }
.legal-section .section-body strong {
  color: var(--text, #0f172a);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text, #0f172a);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}
.back-link:hover {
  background: white;
  border-color: var(--primary, #6366f1);
  color: var(--primary, #6366f1);
  box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}

.legal-page ~ footer { margin-top: 40px; }

@media (max-width: 768px) {
  .legal-section {
    grid-template-columns: 1fr;
    gap: 16px 0;
    padding: 28px 0;
  }
  .legal-section .section-label {
    position: relative;
    top: auto;
    padding-right: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    margin-bottom: 8px;
  }
}
