/* Legal pages — quiet editorial style on the dark theme */

body.legal {
  --color-accent:       #c8a363;
  --color-accent-line:  rgba(200,163,99,0.45);
}

.legal-main {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 8rem);
}

.legal-header {
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 56rem;
}

.legal-header .back-link {
  display: inline-flex;
  margin-bottom: 2rem;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 1rem 0 1.5rem;
}

.legal-lead {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 44rem;
}

.legal-section {
  max-width: 56rem;
  padding: clamp(2rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--color-divider);
}

.legal-section:last-of-type { border-bottom: 0; }

.legal-section h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.legal-section h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--color-text);
  margin: 1.75rem 0 0.75rem;
}

.legal-section p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 44rem;
}

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

.legal-section a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-line);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.legal-section a:hover { color: var(--color-accent-hover); }

.legal-section ul, .legal-section ol {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  max-width: 44rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.legal-section li::marker {
  color: var(--color-accent);
}

.legal-section ul li::marker { content: "— "; }

/* Definition list styled as label/value rows */
.legal-table {
  margin: 1rem 0;
}

.legal-table dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.25rem 2rem;
  margin: 0;
}

@media (max-width: 720px) {
  .legal-table dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
}

.legal-table dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.95rem 0;
  border-top: 1px solid var(--color-divider);
}

.legal-table dd {
  margin: 0;
  padding: 0.95rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.55;
  border-top: 1px solid var(--color-divider);
}

@media (max-width: 720px) {
  .legal-table dt {
    border-top: 1px solid var(--color-divider);
    padding-bottom: 0.25rem;
    padding-top: 1.25rem;
  }
  .legal-table dd {
    border-top: 0;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
  }
}

.legal-table dl:last-child dt:first-of-type,
.legal-table dl:last-child dd:first-of-type {
  border-top: 1px solid var(--color-divider);
}

.legal-table a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-line);
  padding-bottom: 1px;
}

.legal-section sup {
  font-size: 0.7em;
  color: var(--color-text-muted);
}

.legal-footer-meta {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  max-width: 56rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}
