:root {
  color: #17242d;
  background: #f3f6f8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f3f6f8;
}

a {
  color: #145fc0;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid rgb(36 99 235 / 25%);
  outline-offset: 3px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 10px max(20px, calc((100% - 880px) / 2));
  border-bottom: 1px solid #d7e0e5;
  background: #ffffff;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17242d;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-brand img {
  border-radius: 8px;
}

.legal-topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-topbar nav a {
  padding: 8px 0;
  color: #53636d;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-topbar nav a[aria-current="page"] {
  border-bottom: 2px solid #0f766e;
  color: #0b625c;
}

.legal-shell {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 42px 0 64px;
}

.legal-shell article {
  color: #263741;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-shell h1,
.legal-shell h2 {
  color: #17242d;
}

.legal-shell h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
}

.legal-shell h2 {
  margin: 34px 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.legal-shell p,
.legal-shell ul {
  margin: 10px 0;
}

.legal-shell li + li {
  margin-top: 7px;
}

.legal-shell code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #124b47;
  background: #e5f1ef;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
}

@media (max-width: 560px) {
  .legal-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
  }

  .legal-topbar nav {
    width: 100%;
  }

  .legal-shell {
    width: min(100% - 28px, 820px);
    padding-top: 28px;
  }

  .legal-shell h1 {
    font-size: 1.65rem;
  }
}
