/* The public legal pages — privacy, and later terms and support.
 *
 * They open without signing in, because App Review and the iOS app link straight
 * to them, so they load none of the app's modules: tokens.css for the palette and
 * base styles, the fonts, and this. No script either, so they follow the system
 * theme rather than an explicit choice made in the app — tokens.css's media query
 * answers for an unstamped document.
 *
 * --text-dim is used only on --card. On --paper it measures 4.48:1 in light,
 * just under AA, which is why nothing sits outside the card but the brand.
 */

.legal-wrap{
  max-width:792px;
  margin:0 auto;
  padding:28px 16px 56px;
}

.legal-brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  margin:0 0 22px 4px;
  color:var(--text);
  text-decoration:none;
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  letter-spacing:0.05em;
}
/* Drawn on an app-icon canvas, as on the sign-in card; see .auth-mark. */
.legal-mark{
  width:52px;
  height:52px;
  margin:-9px;
  flex-shrink:0;
}

.legal{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:40px 44px 36px;
  font-size:15px;
  line-height:1.65;
}

.legal h1{
  font-family:var(--font-display);
  font-size:30px;
  font-weight:600;
  letter-spacing:-0.02em;
  line-height:1.2;
  margin:0 0 6px;
}
.legal-meta{
  font-size:13px;
  color:var(--text-dim);
  margin:0 0 28px;
}

.legal h2{
  font-family:var(--font-display);
  font-size:19px;
  font-weight:600;
  letter-spacing:-0.01em;
  margin:38px 0 10px;
}
.legal h3{
  font-size:15px;
  font-weight:600;
  margin:24px 0 6px;
}
.legal p{margin:0 0 12px;}
.legal ul,
.legal ol{margin:0 0 12px; padding-left:22px;}
.legal li{margin:0 0 6px;}
.legal a{color:var(--indigo); text-underline-offset:2px;}
.legal address{font-style:normal;}

.legal-summary{
  background:var(--teal-soft);
  border-radius:10px;
  padding:18px 22px 8px;
}
.legal-summary h2{margin-top:0;}

/* Providers as stacked blocks rather than a table: four columns of prose do not
   fit a phone, and a table that scrolls sideways hides the column that matters. */
.legal-party{
  border-top:1px solid var(--line);
  padding:14px 0 4px;
}
.legal-party:last-of-type{border-bottom:1px solid var(--line); margin-bottom:16px;}
.legal-party h3{margin:0 0 4px;}
.legal-party dl{margin:0;}
.legal-party dt{
  font-size:13px;
  color:var(--text-dim);
  margin-top:6px;
}
.legal-party dd{margin:0 0 4px;}

.legal-back{
  margin:32px 0 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:14px;
}

@media (max-width:600px){
  .legal-wrap{padding-top:20px;}
  .legal{padding:28px 20px 24px;}
  .legal h1{font-size:26px;}
}

/* support.html has no date line under its title, so the contact box would sit
   against it; this gives it the gap .legal-meta gives the others. */
.legal h1 + .legal-summary{margin-top:24px;}
