/*
  /terms, /privacy and /delete-account, and their /ua twins (Figma "Miyo
  Assets" › Website › legal pages 167:733, delete account 187:1456):
  one 760 column, mobile 390 first, desktop 1440 from tablet width up.
  Pink [bracketed] text is still to be filled in.
*/
.legal { padding: 40px var(--pad) 64px; }
.legal article { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.legal article > * { width: 100%; }
.legal .back { width: auto; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--muted); }
.legal h1 { font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -0.72px; }
.legal .updated { font-size: 14px; line-height: 1.6; color: var(--muted); }
.legal .intro { margin-top: 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal h2 { margin-top: 12px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.legal ul { list-style: none; }
.legal li + li { margin-top: 8px; }
.legal li::before { content: '•\00a0\00a0'; }
.legal a.link { text-decoration: underline; text-underline-offset: 3px; }

/* What we collect: stacked cards on a phone, three columns from tablet up. */
.data { background: var(--alt); border-radius: 16px; overflow: hidden; }
.data-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; line-height: 1.5; }
.data-row + .data-row { border-top: 1px solid #e5e3de; }
.data-row > b { font-size: 15px; font-weight: 600; }
.data-row > span { font-size: 14px; color: var(--muted); }

/* Delete account: the "Without the app" card (a phone first, 760 wide from tablet up). */
.dcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; background: var(--alt); border-radius: 24px; }
.dcard > *, .dcard-form > * { width: 100%; }
.dcard[aria-busy='true'] { min-height: 160px; }
.dcard-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.legal .dcard-label { font-size: 14px; font-weight: 600; line-height: normal; }
.dcard-field {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dad5ce;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}
.dcard-field::placeholder { color: #9a958f; }
.dcard-field:focus { border-color: var(--ink); }
.dcard-field.invalid { border: 1.5px solid var(--danger); padding: 13.5px 15.5px; }
.legal .dcard-error { font-size: 14px; line-height: normal; color: var(--danger); }
.dcard-error[hidden] { display: none; }
.legal .dcard-note { font-size: 14px; line-height: normal; color: var(--muted); }
.dcard .btn { width: auto; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-danger { background: var(--danger); }
.dcard-title { font-size: 20px; font-weight: 700; line-height: 1.3; outline: none; }
.legal .dcard-body { font-size: 16px; line-height: 1.5; }
.dcard-link {
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.dcard-link:disabled { opacity: 0.5; cursor: default; }
.dcard .btn:focus-visible, .dcard-link:focus-visible { outline: 2px solid var(--fill); outline-offset: 3px; }

@media (min-width: 700px) {
  .legal { padding: 96px var(--pad) 120px; }
  .dcard { gap: 12px; padding: 32px; }
  .dcard-form { gap: 12px; }
  .legal .dcard-label, .legal .dcard-error, .legal .dcard-note { font-size: 15px; }
  .dcard-field { font-size: 18px; }
  .dcard-title { font-size: 22px; }
  .legal .dcard-body, .dcard-link { font-size: 18px; }
  .legal article { gap: 18px; }
  .legal .back { font-size: 15px; }
  .legal h1 { font-size: 56px; letter-spacing: -1.12px; }
  .legal .updated { font-size: 15px; }
  .legal .intro { margin-top: 16px; }
  .legal p, .legal li { font-size: 18px; }
  .legal h2 { margin-top: 20px; font-size: 26px; }
  .data-row { flex-direction: row; gap: 24px; padding: 16px 24px; }
  .data-row > b { flex: 0 1 300px; font-size: 16px; }
  .data-row > span { flex: 0 1 170px; font-size: 15px; }
  .data-row > span:last-child { flex: 1 1 0; min-width: 0; }
  /* The column header is implied by position here. */
  .data-row .k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
