/* ============================================================================
   ZKELETON // HL7 -> FHIR converter — legal pages (privacy, terms)
   Same token system as the converter; a calm, readable long-form layout.
============================================================================ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad) 96px;
}

/* ------------------------------------------------------------------- top bar */
.legal-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; margin: 0 calc(-1 * var(--pad)) 40px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border);
}
.legal-top .back {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--text);
}
.legal-top .back .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 9px; }
.legal-top .back .sep { color: var(--faint); margin: 0 6px; }
.legal-top .back .sub { color: var(--muted); font-weight: 500; }
.back-link {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  transition: color .15s var(--ease);
}
.back-link:hover { color: var(--text); }

/* -------------------------------------------------------------------- type */
h1 {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.lead { font-size: 18px; color: var(--muted-2); margin: 0 0 6px; line-height: 1.5; }
.updated { font-size: 12px; color: var(--faint); margin: 0 0 40px; }

section { margin: 0 0 34px; }
h2 {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin: 0 0 12px;
}
p { margin: 0 0 14px; color: #d4d4d4; line-height: 1.65; }
.legal-page strong { color: var(--text); font-weight: 600; }

ul { margin: 0 0 14px; padding: 0; list-style: none; }
li {
  position: relative; padding: 0 0 9px 22px; color: #d4d4d4; line-height: 1.6;
}
li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border: 1px solid var(--accent); border-radius: 1px;
}

.note {
  border-left: 2px solid var(--accent-border);
  background: rgba(230, 57, 70, 0.04);
  border-radius: 0 4px 4px 0;
  padding: 12px 16px; color: var(--muted-2); font-size: 15px;
}

a[href^="mailto"], .legal-page p a { color: var(--accent); }
.legal-page p a:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal-page .mono { font-family: var(--font-mono); }

/* ------------------------------------------------------------------- footer */
.legal-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
}
.legal-foot a { color: var(--muted); transition: color .15s var(--ease); }
.legal-foot a:hover { color: var(--text); }
.legal-foot .sep { color: var(--faint); }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .lead { font-size: 16px; }
  .legal-top .back-link { display: none; }
}
