/* ============================================
   LEGAL PAGES — Privacy, Terms, etc.
   Inherits brand from main style.css
   ============================================ */

.legal {
  padding-top: 80px;
  background: var(--cream);
  color: var(--ink);
  cursor: auto;
  min-height: 100vh;
}

.legal *,
.legal a,
.legal button,
.legal input { cursor: auto !important; }

/* HEADER */
.legal-header {
  padding: 60px 0 40px;
  background:
    radial-gradient(ellipse at 80% -20%, var(--coral-tint), transparent 50%),
    radial-gradient(ellipse at 0% 100%, var(--cream-soft), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--ink-line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--coral-deep); }

.legal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.legal-tag {
  padding: 5px 12px;
  background: var(--coral-tint);
  color: var(--coral-deep);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.legal-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--ink);
}

.legal-lead {
  font-size: 19px;
  color: var(--ink-mute);
  max-width: 720px;
  line-height: 1.55;
}

/* BODY LAYOUT */
.legal-body {
  padding: 80px 0 120px;
}

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

/* TOC */
.legal-toc {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: white;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc li {
  counter-increment: toc;
  font-size: 13px;
}
.legal-toc a {
  color: var(--ink-mute);
  display: flex;
  gap: 10px;
  padding: 4px 0;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--coral-deep);
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 1px;
}
.legal-toc a:hover { color: var(--ink); }

/* CONTENT */
.legal-content {
  max-width: 720px;
}

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

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-line);
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--coral-deep);
}

.legal-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.legal-content p strong,
.legal-content li strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--coral-deep);
  border-bottom: 1px solid var(--coral-soft);
  transition: all 0.2s var(--ease);
}
.legal-content a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.legal-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.legal-content .summary-list li {
  background: white;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 14px 18px 14px 38px;
  margin-bottom: 8px;
}
.legal-content .summary-list li::before {
  left: 16px;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--coral-deep);
  box-shadow: 0 0 8px rgba(232, 90, 90, 0.4);
}

.legal-content .negative-list li {
  padding-left: 28px;
}
.legal-content .negative-list li::before {
  content: '✕';
  background: transparent;
  color: var(--ink-mute);
  width: auto;
  height: auto;
  border-radius: 0;
  left: 4px;
  top: 0;
  font-size: 14px;
  font-weight: 600;
}

.legal-content .callout {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--coral-tint);
  border-left: 3px solid var(--coral-deep);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
}

/* TABLE */
.legal-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.legal-table thead {
  background: var(--ink);
  color: var(--cream);
}
.legal-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.legal-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-soft);
}
.legal-table tr:nth-child(even) td { background: var(--cream-soft); }

/* CONTACT GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.contact-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  transition: all 0.2s var(--ease);
}
.contact-card:hover {
  border-color: var(--coral-soft);
  transform: translateY(-2px);
}
.contact-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-card a {
  font-size: 15px;
  font-weight: 500;
  color: var(--coral-deep);
  border: none;
}
.contact-card a:hover { color: var(--ink); }

.postal {
  font-size: 14px !important;
  color: var(--ink-mute) !important;
  font-style: italic;
  padding: 14px 18px;
  background: white;
  border-left: 3px solid var(--ink-line-strong);
  border-radius: 0 8px 8px 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .legal-body .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-toc {
    position: static;
    max-height: none;
    margin-bottom: 20px;
  }
  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .legal-toc li {
    flex-basis: calc(50% - 7px);
  }
  .legal-content {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .legal-header { padding: 40px 0 30px; }
  .legal-body { padding: 50px 0 80px; }
  .legal-content section { margin-bottom: 40px; }
  .legal-content h2 { font-size: 28px; }
  .legal-content h3 { font-size: 16px; margin-top: 24px; }
  .legal-content p, .legal-content li { font-size: 15px; }
  .legal-toc li { flex-basis: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
}
