/* Legal pages — terms.html, privacy.html */

/* ==============================
   PAGE LAYOUT
   ============================== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

/* ==============================
   PAGE HEADER
   ============================== */
.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 48px;
}

.legal-header h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 10px;
}

.legal-header .legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ==============================
   LEGAL SECTIONS
   ============================== */
.legal-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

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

.legal-section h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 16px;
}

.legal-section p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

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

/* ==============================
   PLACEHOLDER NOTICE
   ============================== */
.placeholder-notice {
  display: inline-block;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--jasmine) !important;
  background: rgba(244, 208, 111, 0.1);
  border: 1px solid rgba(244, 208, 111, 0.3);
  border-radius: var(--radius);
  padding: 6px 12px !important;
  margin-bottom: 14px !important;
  line-height: 1.4 !important;
}

/* ==============================
   SUBHEADINGS & LISTS
   ============================== */
.legal-section h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 28px 0 8px;
}

.legal-section h3:first-child {
  margin-top: 0;
}

.legal-section ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.legal-section ul li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 4px;
  list-style: disc;
}

/* ==============================
   DATA TABLES
   ============================== */
.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
  white-space: nowrap;
}

.legal-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 16px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
}

.legal-table td {
  font-weight: 300;
  color: var(--muted);
  padding: 10px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: normal;
  line-height: 1.6;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table td:first-child {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 767px) {
  .legal-page {
    padding: 40px 16px 60px;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  .legal-section h2 {
    font-size: 18px;
  }
}
