:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0a1d2e;
  background: #f5fafd;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 7%, rgba(66, 105, 216, 0.1), transparent 25rem),
    linear-gradient(180deg, #f8fcfe 0%, #edf7fb 45%, #f7fbfd 100%);
  color: #0a1d2e;
  line-height: 1.75;
}

a {
  color: #0b7891;
}

a:hover {
  color: #075e73;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: #063347;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  color: #fff;
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(28, 75, 96, 0.12);
  background: rgba(248, 252, 254, 0.9);
  backdrop-filter: blur(18px);
}

.legal-header__inner,
.legal-main,
.legal-footer__inner {
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
}

.legal-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #0a1d2e;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.legal-brand span span {
  color: #226ee0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #53697a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: #226ee0;
}

.legal-main {
  padding: 4.5rem 0 6rem;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid #d7e5ec;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 93% 10%, rgba(40, 199, 232, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(31, 67, 84, 0.09);
}

.legal-eyebrow {
  margin: 0 0 1.2rem;
  color: #0b7891;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.legal-lead {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: #53697a;
  font-size: 1.05rem;
}

.legal-meta {
  margin: 1.5rem 0 0;
  color: #667c8c;
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-notice {
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(34, 110, 224, 0.18);
  border-radius: 1rem;
  background: rgba(34, 110, 224, 0.055);
  color: #345568;
}

.legal-notice strong {
  color: #0a1d2e;
}

.legal-content {
  width: min(100%, 880px);
  margin: 0 auto;
}

.legal-section {
  padding: 2.6rem 0 0;
  margin-top: 2.6rem;
  border-top: 1px solid #d7e5ec;
}

.legal-section:first-child {
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-section h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: #445f71;
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.6rem;
}

.legal-section address {
  color: #445f71;
  font-style: normal;
}

.legal-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(27, 103, 132, 0.12);
  background: #e5f1f6;
}

.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #53697a;
  font-size: 0.85rem;
}

.legal-footer__links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

@media (max-width: 640px) {
  .legal-header__inner {
    min-height: 68px;
  }

  .legal-brand {
    gap: 0.65rem;
    font-size: 1.12rem;
  }

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

  .back-link span {
    display: none;
  }

  .legal-main {
    padding: 2rem 0 4rem;
  }

  .legal-hero {
    border-radius: 1.4rem;
  }

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