@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color: #111936;
  background: #fafbfe;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #111936;
  --muted: #68718a;
  --blue: #344ce1;
  --line: #dfe3ee;
  --panel: #ffffff;
  --navy: #0d1738;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 4%, rgba(93, 217, 189, 0.12), transparent 25%),
    radial-gradient(circle at 8% 40%, rgba(120, 87, 237, 0.08), transparent 28%),
    #fafbfe;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.legal-header,
.legal-footer {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
}

.legal-header {
  backdrop-filter: blur(16px);
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-header img,
.legal-footer img {
  display: block;
  height: auto;
  object-fit: contain;
  object-position: left center;
  width: 172px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.legal-nav a {
  color: #47506a;
  font-size: 0.93rem;
  font-weight: 600;
}

.legal-nav a:hover,
.legal-document a:hover {
  color: #7857ed;
}

.legal-shell {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.legal-document {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(16, 28, 69, 0.1);
  margin: 0 auto;
  max-width: 1060px;
  padding: clamp(24px, 5vw, 54px);
}

.eyebrow {
  color: var(--blue);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin: 0 0 12px;
}

h2 {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.35rem;
  font-family: "Manrope", sans-serif;
  margin: 30px 0 12px;
  padding-top: 24px;
}

h3 {
  color: var(--ink);
  font-size: 1.05rem;
  font-family: "Manrope", sans-serif;
  margin: 18px 0 8px;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

ul,
ol {
  padding-left: 22px;
}

.summary {
  color: #33445f;
  font-size: 1.08rem;
  max-width: 860px;
}

.notice {
  background: #eef1ff;
  border: 1px solid #d8ddfb;
  border-radius: 12px;
  color: #31425f;
  margin: 24px 0;
  padding: 16px;
}

.legal-meta {
  color: #64748b;
  font-size: 0.94rem;
  margin-bottom: 26px;
}

.legal-footer {
  background: var(--navy);
  border-bottom: 0;
  border-top: 1px solid #2b365d;
  min-height: 120px;
}

.legal-footer img {
  filter: brightness(0) invert(1);
}

.legal-footer p {
  color: #9ea8c7;
  margin: 0;
}

@media (max-width: 720px) {
  .legal-header,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header {
    height: auto;
    padding-bottom: 18px;
    padding-top: 18px;
    position: static;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .legal-header img,
  .legal-footer img {
    height: 34px;
    width: 150px;
  }
}
