:root {
  --indigo: #363966;
  --deep: #1f2c35;
  --blue: #187dee;
  --paper: #f4f6f8;
  --ink: #172033;
  --muted: #626b78;
  --line: #dbe1e8;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Poppins, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.legal-header {
  min-height: 92px;
  padding: 16px max(24px, calc((100% - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--deep);
}

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

.legal-brand img {
  width: 84px;
  height: auto;
  padding: 4px;
  background: #fff;
}

.legal-brand span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-header > a:last-child {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.legal-main {
  width: min(100% - 32px, 900px);
  margin: 64px auto;
  padding: clamp(30px, 6vw, 70px);
  background: #fff;
  border-top: 5px solid var(--blue);
  box-shadow: 0 18px 55px rgba(27, 40, 65, 0.09);
}

.legal-main h1 {
  margin: 0 0 18px;
  color: var(--indigo);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.legal-main h2 {
  margin: 38px 0 12px;
  font-size: 1.25rem;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-main a {
  color: #0b67cf;
  font-weight: 600;
}

.legal-main .button {
  min-height: 50px;
  margin-top: 24px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  text-decoration: none;
}

.legal-footer {
  padding: 28px 24px;
  color: #dfe4e9;
  background: var(--deep);
  text-align: center;
  font-size: 0.75rem;
}

:focus-visible {
  outline: 3px solid #ffb347;
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-main { margin: 28px auto; }
}
