:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #090909;
  --muted: #73706a;
  --line: #e6e2da;
  --accent: #ff4a3d;
  --display-font: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
}

body.legal-page {
  background: var(--bg);
}

a {
  color: inherit;
}

.doc-header,
.doc-shell,
.doc-footer {
  width: min(1088px, calc(100% - 48px));
  margin: 0 auto;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.doc-logo,
.doc-back {
  display: inline-flex;
  align-items: center;
}

.doc-logo {
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 820;
  text-decoration: none;
}

.doc-logo img {
  width: 29px;
  height: 24px;
}

.doc-back {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
  text-decoration: none;
}

.doc-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 68px 0 88px;
}

.doc-toc {
  position: sticky;
  top: 28px;
  align-self: start;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.doc-toc strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-toc a {
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--ink);
}

.doc-card {
  max-width: 820px;
}

.doc-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doc-card h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

.doc-updated {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 620;
}

.doc-callout {
  margin: 34px 0 42px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #57534c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.doc-card section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.doc-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.05;
}

.doc-card h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 19px;
}

.doc-card p,
.doc-card li {
  color: #5f5b55;
  font-size: 17px;
  font-weight: 540;
  line-height: 1.65;
}

.doc-card p {
  margin: 0 0 14px;
}

.doc-card ul,
.doc-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.doc-card table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.doc-card th,
.doc-card td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: #5f5b55;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.doc-card th {
  color: var(--ink);
  font-weight: 800;
}

.doc-card tr:last-child td {
  border-bottom: 0;
}

.legal-shell {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: 142px 0 88px;
}

.legal-document h1 {
  margin: 0 0 30px;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.legal-note {
  color: var(--muted);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.6;
}

.legal-note {
  margin: 0 0 46px;
}

.legal-document section {
  padding: 38px 0 4px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
}

.legal-document h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.legal-document p,
.legal-document li {
  color: #5f5b55;
  font-size: 17px;
  font-weight: 540;
  line-height: 1.68;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document a,
.legal-footer a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer .footer-primary-action {
  border-color: rgba(255, 255, 255, 0.82);
  color: #fffefa;
}

.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.doc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.doc-footer a {
  text-decoration: none;
}

@media (max-width: 860px) {
  .doc-header,
  .doc-shell,
  .legal-shell,
  .doc-footer {
    width: min(100% - 32px, 680px);
  }

  .doc-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 46px 0 64px;
  }

  .legal-shell {
    padding: 118px 0 64px;
  }

  .legal-document h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .legal-document p,
  .legal-document li {
    font-size: 16px;
  }

  .doc-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }

  .doc-toc strong {
    grid-column: 1 / -1;
  }

  .doc-card table,
  .doc-card thead,
  .doc-card tbody,
  .doc-card tr,
  .doc-card th,
  .doc-card td {
    display: block;
  }

  .doc-card th {
    border-bottom: 0;
  }

  .doc-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep the simplified legal header easy to use by touch and keyboard. */
.legal-page .site-header .brand,
.legal-page .site-header .sign-in {
  min-height: 44px;
}

.legal-page.home-page .site-header .sign-in,
.legal-page.home-page .site-header.is-scrolled .sign-in {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.legal-page .site-header .brand:focus-visible,
.legal-page .site-header .sign-in:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 8px;
}
