:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #13201b;
  --muted: #65736d;
  --line: #d9e3df;
  --green: #0f8f4d;
  --blue: #00438c;
  --red: #ff2636;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-weight: 650;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
li,
span,
a,
address {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
}

.legal-header img {
  display: block;
  width: min(240px, 62vw);
  height: auto;
}

.legal-header a:last-child {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  padding: 0 16px;
  text-decoration: none;
}

.legal-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 54px clamp(18px, 5vw, 42px) 70px;
}

.legal-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(20, 34, 29, .08);
  padding: clamp(24px, 5vw, 48px);
}

.legal-card > * {
  min-width: 0;
}

.legal-kicker {
  display: inline-flex;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 12px;
  color: var(--blue);
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.02;
}

h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.company-box {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfa;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.company-box b {
  color: var(--blue);
}

.company-box a {
  color: var(--blue);
  font-weight: 900;
}

.legal-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  padding: 24px clamp(18px, 4vw, 54px);
  text-align: center;
}

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

.legal-footer a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

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

  .legal-header a:last-child {
    width: 100%;
    justify-content: center;
  }

  .legal-page {
    padding-top: 34px;
  }

  .legal-card {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(28px, 10vw, 38px);
    line-height: 1.06;
  }

  h2 {
    font-size: 21px;
  }
}
