:root {
  color-scheme: light;
  --ink: #16181c;
  --muted: #606773;
  --line: #dfe3e8;
  --soft: #f5f6f8;
  --accent: #d71920;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: #aeb4bc;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.legal-nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
}

.legal-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.legal-main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  font-weight: 780;
}

.legal-meta {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-intro {
  max-width: 760px;
  margin: 40px 0 52px;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: #363b43;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

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

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
}

.legal-section h3 {
  margin: 24px 0 10px;
  font-size: 17px;
}

.legal-section p,
.legal-section li {
  color: #414750;
  font-size: 15px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 12px 0;
  padding-left: 22px;
}

.legal-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 10px;
  padding: 0 17px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.legal-contact:hover {
  color: #fff;
  background: var(--accent);
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.legal-footer-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .legal-nav,
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .legal-main {
    padding-top: 44px;
  }

  .legal-links {
    flex-wrap: wrap;
  }
}
