.legal-page {
  min-height: 100vh;
  background: #f1f4f9;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(16, 24, 39, .08);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

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

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

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

.legal-language {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid #dce2ec;
  border-radius: 9px;
  background: #f7f9fc;
}

.legal-language a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 6px;
  color: #727c8d;
  font-size: 11px;
  font-weight: 700;
}

.legal-language a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
}

.legal-language svg {
  flex: none;
}

.legal-main {
  padding: 62px 0 90px;
}

.legal-document {
  width: min(900px, 100%);
  margin-inline: auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: #596577;
  font-size: 12px;
  font-weight: 700;
}

.legal-back:hover {
  color: var(--blue-dark);
}

.legal-intro {
  max-width: 780px;
  margin-bottom: 34px;
}

.legal-kicker {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-intro h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 70px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .98;
}

.legal-lead {
  max-width: 720px;
  margin-bottom: 18px;
  color: #536074;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
}

.legal-updated {
  display: inline-flex;
  margin: 0;
  padding: 7px 10px;
  border-radius: 7px;
  color: #566175;
  background: #e5eaf3;
  font-size: 10px;
  font-weight: 700;
}

.legal-content {
  overflow: hidden;
  border: 1px solid #e0e5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 39, .08);
}

.legal-section {
  padding: 34px clamp(24px, 6vw, 58px);
}

.legal-section + .legal-section {
  border-top: 1px solid #e7ebf2;
}

.legal-section h2 {
  margin-bottom: 15px;
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.legal-section h3 {
  margin: 24px 0 9px;
  font-size: 14px;
  font-weight: 700;
}

.legal-section p,
.legal-section li {
  color: #566175;
  font-size: 13px;
  line-height: 1.75;
}

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

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-section a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(48, 70, 189, .28);
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 18px;
  padding: 17px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 0 9px 9px 0;
  background: #f0f3ff;
}

.legal-note strong {
  color: var(--ink);
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid #e0e5ee;
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e7ebf2;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.65;
}

.legal-table th {
  color: #434f61;
  background: #f4f6fa;
  font-weight: 700;
}

.legal-table td {
  color: #5c6779;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table code {
  color: #3348bd;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.legal-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(24px, 6vw, 58px);
  color: #fff;
  background: var(--navy);
}

.legal-contact p {
  margin: 0;
  color: #aeb7c6;
  font-size: 12px;
}

.legal-contact a {
  flex: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.legal-footer {
  padding: 22px 0;
  color: #788497;
  background: #e7ebf2;
  font-size: 10px;
}

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

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

.legal-footer a:hover {
  color: var(--blue-dark);
}

@media (max-width: 700px) {
  .legal-header-inner {
    min-height: 64px;
  }

  .legal-brand img {
    width: 96px;
  }

  .legal-main {
    padding: 42px 0 64px;
  }

  .legal-back {
    margin-bottom: 26px;
  }

  .legal-intro h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .legal-content {
    border-radius: 13px;
  }

  .legal-section {
    padding-block: 27px;
  }

  .legal-contact,
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  .legal-page * {
    scroll-behavior: auto !important;
  }
}
