:root {
  color-scheme: light;
  --ink: #111318;
  --canvas: #f7f8fa;
  --line: #dfe3ea;
  --action: #2563eb;
  --muted: #64748b;
  --surface: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(#eef0f4 1px, transparent 1px),
    linear-gradient(90deg, #eef0f4 1px, transparent 1px);
  background-size: 36px 36px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--action);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #1d4ed8;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.nav-inner,
.footer-inner {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

.nav-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.375rem;
  color: #ffffff;
  background: var(--ink);
  font-size: 0.875rem;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-actions a {
  padding: 0.55rem 0.8rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.site-actions .primary-action {
  border-radius: 0.375rem;
  color: #ffffff;
  background: var(--action);
  padding-inline: 1rem;
}

.site-actions .primary-action:hover {
  background: #1d4ed8;
}

.legal-layout {
  width: min(100% - 2rem, 55rem);
  margin-inline: auto;
  padding: 4.5rem 0 6rem;
}

.legal-hero {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #cbd5e1;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--action);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-sections {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
}

.legal-sections section,
.legal-sections > div {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.legal-sections > div {
  background: #f1f5f9;
}

.legal-sections div:empty,
.legal-sections li > svg {
  display: none;
}

.legal-sections section > div:has(> h2) {
  display: contents;
}

.legal-sections h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-sections h3 {
  margin: 1.35rem 0 0.45rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.4;
}

.legal-sections p {
  margin: 0.75rem 0 0;
  color: #475569;
}

.legal-sections h2 + p,
.legal-sections h3 + p,
.legal-sections > div > p:first-child {
  margin-top: 0;
}

.legal-sections ul {
  margin: 0.8rem 0 0;
  padding-left: 1.35rem;
  color: #475569;
}

.legal-sections li + li {
  margin-top: 0.45rem;
}

.rights-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.rights-list li {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem 0.75rem 2rem;
  background: #f8fafc;
}

.rights-list li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0.9rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--action);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.service-list > div {
  border: 1px solid var(--line);
  padding: 0.85rem;
  background: #f8fafc;
}

.service-list dt {
  color: var(--ink);
  font-weight: 650;
}

.service-list dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-sections strong {
  color: var(--ink);
  font-weight: 650;
}

.legal-sections section > a {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  padding: 0.65rem 0.9rem;
  background: #eff6ff;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
}

.footer-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 40rem) {
  .site-actions a:first-child {
    display: none;
  }

  .legal-layout {
    width: min(100% - 1.25rem, 55rem);
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .rights-list,
  .service-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.5rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
