/* ============================================================
   945 CLUB — Legal / policy document pages
   Shared by refund-policy.html and privacy-policy.html.
   Uses the tokens declared in main.css (--ink-*, --surface-*,
   --hair, --border-*) so these pages track the store's theme.
   ============================================================ */

.legal-page {
  background: var(--surface-primary, #fff);
  padding: 132px 0 96px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-primary, #111113);
}

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.legal-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-secondary, #6e6e73);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--ink-primary, #111113); }

.legal-head { border-bottom: 1px solid var(--hair, #e5e5ea); padding-bottom: 36px; margin-bottom: 40px; }

.legal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary, #86868b);
  margin: 0 0 12px;
}

.legal-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--ink-primary, #111113);
}

.legal-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-secondary, #6e6e73);
  margin: 0 0 18px;
  max-width: 60ch;
}

.legal-meta {
  font-size: 13px;
  color: var(--ink-tertiary, #86868b);
  margin: 0;
}

/* ---------- placeholder notice ---------- */
.legal-callout {
  background: var(--surface-secondary, #f6f6f9);
  border: 1px solid var(--border-regular, rgba(0, 0, 0, 0.12));
  border-left: 3px solid var(--ink-primary, #111113);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary, #6e6e73);
  margin-bottom: 44px;
}
.legal-callout strong { color: var(--ink-primary, #111113); font-weight: 700; }

/* ---------- table of contents ---------- */
.legal-toc {
  background: var(--surface-secondary, #f6f6f9);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 52px;
}
.legal-toc-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary, #86868b);
  margin: 0 0 14px;
}
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 14px; margin-bottom: 9px; break-inside: avoid; color: var(--ink-tertiary, #86868b); }
.legal-toc a { color: var(--ink-secondary, #6e6e73); text-decoration: none; transition: color 0.18s ease; }
.legal-toc a:hover { color: var(--ink-primary, #111113); text-decoration: underline; }

/* ---------- body sections ---------- */
.legal-section { margin-bottom: 48px; scroll-margin-top: 96px; }

.legal-section h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink-primary, #111113);
}

.legal-section p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-secondary, #6e6e73);
  margin: 0 0 16px;
}
.legal-section strong { color: var(--ink-primary, #111113); font-weight: 650; }

.legal-section ul,
.legal-section ol { margin: 0 0 18px; padding-left: 22px; }
.legal-section li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-secondary, #6e6e73);
  margin-bottom: 10px;
}

.legal-steps li { padding-left: 4px; margin-bottom: 13px; }

.legal-note {
  font-size: 13.5px !important;
  color: var(--ink-tertiary, #86868b) !important;
  border-left: 2px solid var(--hair, #e5e5ea);
  padding-left: 14px;
  font-style: italic;
}

.legal-highlight {
  background: var(--surface-secondary, #f6f6f9);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px !important;
  color: var(--ink-primary, #111113) !important;
  font-weight: 550;
}

.legal-contact { list-style: none; padding-left: 0 !important; }
.legal-contact li { display: flex; gap: 12px; flex-wrap: wrap; }
.legal-contact strong { min-width: 140px; display: inline-block; }
.legal-contact a { color: var(--ink-primary, #111113); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- tables ---------- */
.legal-table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.legal-table th {
  text-align: left;
  padding: 11px 14px;
  background: var(--surface-secondary, #f6f6f9);
  color: var(--ink-primary, #111113);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hair, #e5e5ea);
}
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  color: var(--ink-secondary, #6e6e73);
  vertical-align: top;
}
.legal-table tbody tr:last-child td { border-bottom: none; }

/* ---------- footer crosslink ---------- */
.legal-crosslink {
  border-top: 1px solid var(--hair, #e5e5ea);
  padding-top: 28px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-tertiary, #86868b);
}
.legal-crosslink a { color: var(--ink-primary, #111113); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .legal-page { padding: 104px 0 72px; }
  .legal-wrap { padding: 0 20px; }
  .legal-toc { padding: 20px 22px; }
  .legal-toc ol { columns: 1; }
  .legal-section { margin-bottom: 40px; }
  .legal-contact strong { min-width: 0; display: block; }
}
