/* === Legal pages (privacy / terms) ===
   Inherits the .hifi token system from site.css. Dark paper-on-ink,
   DM Sans headings, DM Mono body — matches the main site. */

.hifi-legal {
  padding: 150px 60px 120px;
}
.hifi-legal-container {
  max-width: 760px;
  margin: 0 auto;
}

.hifi-legal h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: 18px 0 0;
}

.hifi-legal .hifi-legal-meta {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.hifi-legal .hifi-legal-intro {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 14.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(235, 231, 223, 0.82);
  margin: 40px 0 0;
}

.hifi-legal h2 {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 27px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--paper);
  margin: 60px 0 18px;
}
.hifi-legal h2 .num {
  flex: 0 0 auto;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--accent);
  transform: translateY(-2px);
}

.hifi-legal h3 {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 30px 0 12px;
}

.hifi-legal p {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(235, 231, 223, 0.7);
  margin: 0 0 16px;
}

.hifi-legal ul,
.hifi-legal ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.hifi-legal li {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(235, 231, 223, 0.7);
  margin-bottom: 9px;
}
.hifi-legal li::marker { color: var(--accent); }

.hifi-legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.hifi-legal a:hover { color: var(--paper); }

.hifi-legal strong {
  font-weight: 500;
  color: rgba(235, 231, 223, 0.92);
}

/* Data-sharing table (privacy §03) */
.hifi-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
}
.hifi-legal th,
.hifi-legal td {
  text-align: left;
  padding: 13px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.hifi-legal th {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
}
.hifi-legal td {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(235, 231, 223, 0.7);
}
.hifi-legal td:first-child {
  color: rgba(235, 231, 223, 0.9);
  white-space: nowrap;
}

/* All-caps legal callouts (terms §07, §08) */
.hifi-legal .hifi-legal-callout {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(235, 231, 223, 0.72);
  background: rgba(235, 231, 223, 0.035);
  border-left: 2px solid var(--accent);
  padding: 22px 26px;
  margin: 24px 0;
}

.hifi-legal address {
  font-style: normal;
}

@media (max-width: 768px) {
  .hifi-legal { padding: 116px 24px 90px; }
  .hifi-legal h1 { font-size: 38px; }
  .hifi-legal h2 { font-size: 23px; gap: 12px; margin-top: 48px; }
  .hifi-legal th,
  .hifi-legal td { padding: 11px 12px; }
  .hifi-legal td:first-child { white-space: normal; }
}
