/* The legal pages (/terms/, /privacy/): the landing page's calm type on its horizontal stripes. */
:root { color-scheme: light dark; }
html { scroll-padding-top: 72px; } /* jumps to a section stop with its heading clear of the pinned 52px top bar */
body {
  margin: 0; color: #1d1d1f; font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: repeating-linear-gradient(180deg, #f5f5f7 0 3px, #ececef 3px 6px);
}
a { color: #0066cc; }
.legal-bar {
  position: sticky; top: 0; display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  background: rgba(245, 245, 247, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 rgba(0, 0, 0, .1);
}
.legal-logo { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.legal-logo img { border-radius: 22.5%; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); }
/* The site's top bar, as on the home page: the logo; How it works · For Agents · Pricing in the middle; Sign In and
   Start Free. On a phone: a menu (a <details>, no script) on the left, the logo centred, Start Free on the right. */
.legal-links { flex: 1; display: flex; justify-content: center; gap: 28px; font-size: 15px; }
.legal-navlink { color: #424245; text-decoration: none; white-space: nowrap; }
.legal-navlink:hover, .legal-navlink[aria-current="page"] { color: #1d1d1f; }
.legal-navlink[aria-current="page"] { font-weight: 600; }
.site-menu { display: none; position: relative; }
.site-menu summary { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: -8px; cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu-icon, .site-menu-icon::before, .site-menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.site-menu-icon { position: relative; }
.site-menu-icon::before, .site-menu-icon::after { content: ''; position: absolute; left: 0; }
.site-menu-icon::before { top: -6px; }
.site-menu-icon::after { top: 6px; }
.site-menu[open] .site-menu-icon { background: transparent; }
.site-menu[open] .site-menu-icon::before { top: 0; transform: rotate(45deg); }
.site-menu[open] .site-menu-icon::after { top: 0; transform: rotate(-45deg); }
.site-menu-panel { position: absolute; top: 44px; left: -8px; z-index: 10; display: flex; flex-direction: column; min-width: 220px; padding: 6px 0; border-radius: 14px;
  background: rgba(250, 250, 252, .96); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 12px 32px rgba(0, 0, 0, .14); }
.site-menu-panel a { padding: 11px 18px; color: #1d1d1f; text-decoration: none; font-size: 17px; }
.site-menu-panel a + a { border-top: .5px solid rgba(0, 0, 0, .1); }
.site-menu-panel a[aria-current="page"] { font-weight: 600; }
/* Sign In and Start Free, as on the home page: a blue link and a filled blue button. */
.legal-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.legal-signin { color: #007aff; text-decoration: none; white-space: nowrap; }
.legal-getstarted { padding: 7px 16px; border-radius: 980px; background: #007aff; color: #fff; text-decoration: none; white-space: nowrap; }
.legal-getstarted:active { filter: brightness(.85); }
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 24px; }
.legal h1 { margin: 0; font-size: clamp(34px, 6vw, 48px); line-height: 1.1; letter-spacing: -.025em; }
.legal-updated { margin: 8px 0 32px; color: #6e6e73; font-size: 15px; }
.legal h2 { margin: 36px 0 10px; font-size: 21px; letter-spacing: -.01em; }
.legal p, .legal li { color: #333336; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
/* The footer: link groups on a grid (they grow as pages are added), then the brand and the copyright. */
.legal-footer { max-width: 980px; margin: 24px auto 0; padding: 32px 24px 56px; font-size: 13px; color: #86868b; }
.legal-footer-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 24px; padding-bottom: 20px; border-bottom: .5px solid rgba(0, 0, 0, .14); }
.legal-footer-title { margin: 0 0 8px; font-weight: 600; color: #1d1d1f; }
.legal-footer ul { list-style: none; margin: 0; padding: 0; }
.legal-footer li + li { margin-top: 6px; }
.legal-footer a { color: inherit; text-decoration: none; white-space: nowrap; }
.legal-footer a:hover { text-decoration: underline; }
.legal-footer a[aria-current="page"] { color: #1d1d1f; }
.legal-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-top: 16px; }
@media (max-width: 599px) {
  .legal { padding-top: 28px; }
}
@media (max-width: 899px) { /* the menu takes over: five links and the buttons need the room */
  .site-menu { display: block; }
  .legal-bar { position: sticky; }
  .legal-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .legal-links { display: none; }
  .legal-signin { display: none; }
}
@media (prefers-color-scheme: dark) {
  body { color: #f5f5f7; background: repeating-linear-gradient(180deg, #000000 0 3px, #111113 3px 6px); }
  a { color: #2997ff; }
  .legal-bar { background: rgba(0, 0, 0, .72); box-shadow: 0 .5px 0 rgba(255, 255, 255, .12); }
  .legal-signin { color: #0a84ff; }
  .legal-navlink { color: #a1a1a6; }
  .legal-navlink:hover, .legal-navlink[aria-current="page"] { color: #f5f5f7; }
  .site-menu-panel { background: rgba(44, 44, 46, .96); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 12px 32px rgba(0, 0, 0, .5); }
  .site-menu-panel a { color: #f5f5f7; }
  .site-menu-panel a + a { border-top-color: rgba(255, 255, 255, .12); }
  .legal-getstarted { background: #0a84ff; }
  .legal p, .legal li { color: #d2d2d7; }
  .legal-updated { color: #a1a1a6; }
  }
.legal-brand { display: inline-flex; align-items: center; gap: 6px; }
.legal-brand img { border-radius: 22.5%; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); background: #fff; }
.legal-brand b { color: #1d1d1f; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .legal-brand b, .legal-footer-title, .legal-footer a[aria-current="page"] { color: #f5f5f7; }
  .legal-footer-groups { border-bottom-color: rgba(255, 255, 255, .16); }
}
