/* The two legal pages, privacy.html and terms.html. The homepage's header
   and footer, and the docs page's reading type in between. */

.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 120px; font-family: var(--sans); color: var(--ink); font-size: 15px; line-height: 1.6; }
.legal .crumb { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.legal h1 { font-size: 44px; line-height: 48px; font-weight: 500; letter-spacing: -0.035em; margin: 0 0 10px; text-wrap: balance; color: var(--ink); }
.legal .updated { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.legal .lede { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0 0 28px; max-width: 640px; }
.legal h2 { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.025em; margin: 56px 0 12px; scroll-margin-top: 24px; text-wrap: balance; color: var(--ink); }
.legal h3 { font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -0.015em; margin: 36px 0 8px; scroll-margin-top: 24px; color: var(--ink); }
.legal p, .legal li { color: var(--body); }
.legal p { margin: 0 0 14px; max-width: 680px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; max-width: 680px; }
.legal li { margin: 4px 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--link); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal code { font-family: var(--mono); font-size: 13px; background: var(--panel); padding: 1px 5px; border-radius: 5px; }

/* The short version, and any note: a grey panel. */
.legal .panel { background: var(--panel); border-radius: 14px; padding: 18px 22px; margin: 0 0 28px; max-width: 680px; }
.legal .panel h2 { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0; margin: 0 0 8px; }
.legal .panel ul { margin: 0; }
.legal .panel p:last-child, .legal .panel ul:last-child { margin-bottom: 0; }

/* Contents. */
.legal .contents { margin: 0 0 8px; max-width: 680px; }
.legal .contents ol { columns: 2; column-gap: 32px; padding-left: 22px; margin: 0; font-size: 14px; }
.legal .contents li { break-inside: avoid; margin: 3px 0; }

/* Tables. */
.legal .scroll { overflow-x: auto; margin: 0 0 20px; max-width: 760px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.5; }
.legal th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink); padding: 8px 14px; border-bottom: 1px solid var(--ink); background: var(--panel); white-space: nowrap; }
.legal td { padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--body); }
.legal td:first-child { color: var(--ink); white-space: nowrap; }
.legal tr:last-child td { border-bottom: 0; }

/* The footer on these pages sits under a long column; give it the wrap. */
.legal-page .footer { margin-top: 0; }

@media (max-width: 900px) {
  .legal { padding: 44px 16px 80px; }
  .legal h1 { font-size: 34px; line-height: 38px; }
  .legal h2 { font-size: 24px; line-height: 30px; margin-top: 44px; }
  .legal .contents ol { columns: 1; }
  .legal td:first-child { white-space: normal; }
}

/* These pages wear the home page's bar and menu (rv6.css, rv6-menu.js). On a phone rv6.css clears the
   body and paints the root black, so the root paints white here instead. */
@media (max-width: 700px) { html { background: #ffffff; } }
