:root {
  --navy: #031329;
  --navy-soft: #082653;
  --blue: #2684ff;
  --ice: #f3f7fc;
  --white: #fff;
  --text: #0a1c36;
  --muted: #5e6d80;
  --line: #dfe7f0;
  --shell: min(940px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ice);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.legal-shell {
  width: var(--shell);
  margin-inline: auto;
}

.legal-header {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
}

.legal-nav {
  width: min(1180px, calc(100vw - 48px));
  height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

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

.legal-brand span {
  display: flex;
  flex-direction: column;
}

.legal-brand strong {
  font: 800 20px/1 "Manrope", Arial, sans-serif;
  letter-spacing: 0.13em;
}

.legal-brand small {
  margin-top: 5px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.back-link {
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.legal-hero {
  min-height: 420px;
  padding: 155px 0 92px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(38, 132, 255, 0.3), transparent 27%),
    linear-gradient(135deg, #020d20, var(--navy-soft));
}

.legal-kicker {
  color: #8fc4ff;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.legal-hero h1 {
  margin: 20px 0 0;
  font: 700 clamp(52px, 8vw, 86px)/0.95 "Manrope", Arial, sans-serif;
  letter-spacing: -0.055em;
}

.legal-hero p {
  max-width: 620px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.7;
}

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

.legal-card {
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(7, 35, 76, 0.08);
}

.legal-card h2 {
  margin: 45px 0 15px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
  font: 700 25px/1.2 "Manrope", Arial, sans-serif;
  letter-spacing: -0.03em;
}

.legal-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-card h3 {
  margin: 28px 0 10px;
  font: 700 18px/1.3 "Manrope", Arial, sans-serif;
}

.legal-card p,
.legal-card li,
.legal-card address {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-card p {
  margin: 0 0 15px;
}

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

.legal-card address {
  font-style: normal;
}

.legal-card a {
  color: #1265d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-bottom: 30px !important;
  padding: 18px 20px;
  color: var(--text) !important;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #eff6ff;
}

.legal-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.58);
  background: var(--navy);
}

.legal-footer .legal-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.legal-links a:hover,
.back-link:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  .legal-nav {
    width: calc(100vw - 28px);
    height: 78px;
  }

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

  .legal-brand strong {
    font-size: 17px;
  }

  .legal-brand small {
    font-size: 6px;
  }

  .back-link {
    padding: 10px 12px;
    font-size: 10px;
  }

  .legal-hero {
    min-height: 340px;
    padding: 125px 0 66px;
  }

  .legal-main {
    padding: 38px 0 70px;
  }

  .legal-card {
    border-radius: 20px;
  }

  .legal-footer .legal-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
