/* ============================================
   Legal Pages — shared styles for /terms and /privacy
   ============================================ */

.legal-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.legal-header {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.12);
}

.legal-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
}

.legal-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.legal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

/* Table of contents */
.legal-toc {
  position: sticky;
  top: 96px;
}

.toc-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}

.toc-list a:hover {
  color: var(--navy);
}

/* Sections */
.legal-sections {
  min-width: 0;
}

.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 96px;
}

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

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.legal-h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-section p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

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

.legal-section li {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--gold-dim);
}

/* Callout boxes */
.legal-callout {
  padding: 20px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  margin: 20px 0;
}

.legal-callout-warning {
  background: var(--amber-bg);
  color: var(--amber);
  border-left: 4px solid var(--amber);
}

.legal-callout-info {
  background: var(--green-bg);
  color: var(--green);
  border-left: 4px solid var(--green);
}

/* Table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin: 16px 0;
}

.legal-table th {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 14px;
  background: var(--cream);
  border-bottom: 2px solid rgba(13, 27, 42, 0.12);
}

.legal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.07);
  color: var(--ink);
  vertical-align: top;
  line-height: 1.5;
}

.legal-table td a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Strong/bold within legal text */
.legal-section strong {
  font-weight: 600;
  color: var(--navy);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-wrap {
    padding: 48px 24px 80px;
  }

  .legal-title {
    font-size: 36px;
  }

  .legal-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-toc {
    position: static;
  }

  .toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .toc-list li {
    margin-bottom: 0;
  }

  .toc-list a {
    font-size: 12px;
  }
}