* { box-sizing: border-box; }
:root {
  --primary: #2563c5;
  --border: #d3d6dc;
  --muted: #f7f8fa;
  --muted-foreground: #595d64;
  --ring: #6e737d;
  --radius: 8px;
}
body { margin: 0; color: #191b1f; background: #fff; font-family: Inter, system-ui, sans-serif; }
a { color: inherit; }
header { max-width: 1240px; margin: auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 1.9rem; font-weight: 650; letter-spacing: -.035em; text-decoration: none; }
.brand span { width: 34px; height: 34px; border-radius: 10px; background: #191b1f; color: #fff; font-size: 1.8rem; line-height: 30px; text-align: center; }
main { max-width: 1024px; margin: auto; padding: 32px 24px 64px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 32px; font-size: .875rem; }
h1, h2, h3 { margin: 0; }
a:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px; background: #fff; }
.skip-link:focus { top: 0; }
@media (min-width: 640px) { main { padding: 48px 40px 64px; } }

.legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-link[aria-current="page"] {
  font-weight: 600;
}
.legal-document {
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-document h1 {
  font-size: clamp(1.875rem, 5vw, 2.625rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.legal-document h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  margin-block: 2.5rem 1rem;
}
.legal-document h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-block: 1.5rem 0.75rem;
}
.legal-document p,
.legal-document ol,
.legal-document ul {
  margin-block: 1rem;
}
.legal-document ol {
  list-style: decimal;
  padding-left: 1.5rem;
}
.legal-document ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.legal-document li + li {
  margin-top: 0.75rem;
}
.legal-document a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-document code {
  font-size: 0.875em;
}
.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
}
.legal-document th,
.legal-document td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}
.legal-document th {
  font-weight: 600;
  background: var(--muted);
}
.legal-document blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
}
.legal-document pre {
  white-space: pre-wrap;
}
.legal-link:focus-visible,
.legal-document a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

@media (width < 640px) {
  .legal-document table,
  .legal-document tbody,
  .legal-document tr,
  .legal-document td {
    display: block;
  }
  .legal-document thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .legal-document tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 1rem;
  }
  .legal-document td {
    border: 0;
    padding: 0;
  }
  .legal-document td + td {
    margin-top: 0.75rem;
  }
  .legal-document td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
}
