:root {
  color: #17263a;
  background: #f8fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fbff;
  color: #17263a;
  line-height: 1.7;
}

a {
  color: #245f99;
  text-underline-offset: 3px;
}

a:hover {
  color: #163a5f;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.legal-header {
  background: #123b5d;
  color: #ffffff;
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.legal-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none;
}

.legal-brand img {
  width: 34px;
  height: 34px;
}

.legal-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.legal-nav a {
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-main {
  padding: 72px 0 88px;
}

.legal-kicker {
  margin: 0 0 8px;
  color: #2f6daa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #163a5f;
  line-height: 1.2;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin: 48px 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
}

p,
li {
  color: #40536a;
}

.legal-summary {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.legal-meta {
  display: inline-flex;
  margin-top: 24px;
  padding: 8px 12px;
  border: 1px solid #bcd7ee;
  border-radius: 999px;
  background: #eaf3ff;
  color: #163a5f;
  font-size: 0.82rem;
  font-weight: 750;
}

.legal-notice {
  margin: 40px 0;
  padding: 22px 24px;
  border-left: 4px solid #2f6daa;
  border-radius: 0 12px 12px 0;
  background: #eaf3ff;
}

.legal-notice p {
  margin: 0;
  color: #213f60;
}

ul {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 8px;
}

.legal-contact {
  margin-top: 52px;
  padding: 28px;
  border: 1px solid #bcd7ee;
  border-radius: 16px;
  background: #ffffff;
}

.legal-contact h2 {
  margin-top: 0;
}

.legal-footer {
  border-top: 1px solid #d7e4f2;
  background: #ffffff;
}

.legal-footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #5f6f82;
  font-size: 0.84rem;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

  .legal-nav {
    justify-content: flex-start;
  }

  .legal-main {
    padding: 52px 0 68px;
  }
}
