:root {
  color-scheme: dark;
  --legal-bg: #03090d;
  --legal-surface: #081820;
  --legal-surface-soft: #0c222c;
  --legal-text: #f2f6f8;
  --legal-muted: #b7c5cc;
  --legal-accent: #65a4c1;
  --legal-line: rgba(158, 194, 210, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--legal-text);
  background:
    radial-gradient(ellipse at 82% 8%, rgba(63, 137, 170, 0.1), transparent 36%),
    linear-gradient(145deg, var(--legal-bg), var(--legal-surface) 54%, #02070a);
  font-family:
    Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 4px;
}

.legal-header {
  display: flex;
  width: min(1120px, calc(100% - 64px));
  min-height: 104px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

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

.legal-brand span {
  display: flex;
  padding-left: 14px;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(131, 169, 187, 0.34);
}

.legal-brand strong,
.legal-brand small {
  line-height: 1;
  text-transform: uppercase;
}

.legal-brand strong {
  font-size: 18px;
  letter-spacing: 0.13em;
}

.legal-brand small {
  color: #a4b6be;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.21em;
}

.legal-return {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  border: 1px solid rgba(143, 187, 206, 0.28);
  border-radius: 999px;
  color: #d9e3e7;
  background: rgba(154, 193, 210, 0.055);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.legal-main {
  width: min(860px, calc(100% - 64px));
  margin: 0 auto;
  padding: 92px 0 112px;
}

.legal-kicker {
  margin: 0 0 18px;
  color: var(--legal-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 470;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.legal-intro {
  max-width: 720px;
  margin: 28px 0 64px;
  color: #c7d4d9;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

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

.legal-section h2 {
  margin: 0 0 16px;
  color: #e7eef1;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li,
.legal-data dt,
.legal-data dd {
  color: var(--legal-muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.legal-section p:last-child {
  margin-bottom: 0;
}

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

.legal-data {
  display: grid;
  margin: 0;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 10px 24px;
}

.legal-data dt {
  color: #8fa8b3;
  font-weight: 650;
}

.legal-data dd {
  margin: 0;
  color: #e0e8eb;
  overflow-wrap: anywhere;
}

.legal-email {
  color: #dbe9ee;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(101, 164, 193, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.legal-email:hover,
.legal-email:focus-visible {
  color: var(--legal-accent);
}

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

.legal-footer__inner {
  display: flex;
  width: min(1120px, calc(100% - 64px));
  min-height: 112px;
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.legal-footer p {
  margin: 0;
  color: #82949c;
  font-size: 11px;
  line-height: 1.5;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.legal-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #aebdc3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .legal-header,
  .legal-main,
  .legal-footer__inner {
    width: calc(100% - 40px);
  }

  .legal-header {
    min-height: 88px;
  }

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

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

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

  .legal-return {
    padding: 0 13px;
    font-size: 10px;
  }

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

  .legal-intro {
    margin-bottom: 48px;
  }

  .legal-section {
    padding: 28px 0;
  }

  .legal-data {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal-data dd {
    margin-bottom: 10px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
