@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --crays-navy: #061a2a;
  --crays-deep: #081f31;
  --crays-paper: #f4f7fb;
  --crays-text: #102337;
  --crays-muted: #5a6c81;
  --crays-accent: #f31248;
  --crays-accent-strong: #ff0f57;
  --crays-border: rgba(16, 35, 55, 0.12);
  --crays-card-shadow: 0 34px 74px rgba(4, 14, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 6% -8%, rgba(243, 18, 72, 0.09), transparent 34%),
    radial-gradient(circle at 92% -12%, rgba(4, 102, 200, 0.12), transparent 40%),
    var(--crays-paper);
  color: var(--crays-text);
  font-family: "Montserrat", sans-serif;
}

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(16, 35, 55, 0.08);
  backdrop-filter: blur(12px);
}

.legal-header-inner {
  width: min(1220px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.legal-brand img {
  width: 124px;
  height: 31px;
  display: block;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 18px;
}

.legal-nav a {
  color: #13273b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

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

.legal-header-actions {
  margin-left: auto;
}

.legal-investor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(243, 18, 72, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #fff6f9 100%);
  color: #13273b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    color 170ms ease;
}

.legal-investor-button:hover,
.legal-investor-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--crays-accent);
  color: var(--crays-accent);
  box-shadow: 0 14px 28px rgba(243, 18, 72, 0.18);
}

.legal-main {
  flex: 1 1 auto;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 6vw, 76px);
}

.legal-hero {
  margin-bottom: 30px;
}

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

.legal-title {
  margin: 0;
  color: #0c2238;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.legal-subtitle {
  margin: 18px 0 0;
  max-width: 740px;
  color: var(--crays-muted);
  font-size: 17px;
  line-height: 1.55;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--crays-border);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--crays-card-shadow);
}

.legal-content {
  color: #1a3149;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin: 0;
  color: #0d2338;
  letter-spacing: -0.01em;
  font-weight: 750;
}

.legal-content h1 + p,
.legal-content h2 + p,
.legal-content h3 + p,
.legal-content h4 + p {
  margin-top: 10px;
}

.legal-content h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 20px;
}

.legal-content h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 30px;
  margin-bottom: 10px;
}

.legal-content h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-content h4 {
  font-size: 17px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal-content h5 {
  margin: 0;
  color: #273f56;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.legal-content h5 + h5,
.legal-content p + h5 {
  margin-top: 8px;
}

.legal-content p {
  margin: 0;
  color: #2f4a63;
  font-size: 17px;
  line-height: 1.75;
}

.legal-content p + p,
.legal-content p + h2,
.legal-content p + h3,
.legal-content p + h4 {
  margin-top: 14px;
}

.legal-content strong {
  color: #10263b;
}

.legal-content a {
  color: #d71247;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(215, 18, 71, 0.52);
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: #9f0c33;
  border-bottom-color: rgba(159, 12, 51, 0.65);
}

.legal-footer {
  margin-top: auto;
  background:
    radial-gradient(circle at 20% 120%, rgba(30, 136, 229, 0.35), transparent 55%),
    radial-gradient(circle at 95% 10%, rgba(243, 18, 72, 0.16), transparent 48%),
    linear-gradient(180deg, #031321 0%, #061b2e 100%);
  color: #d9e2f3;
}

.legal-footer-inner {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) 0 clamp(18px, 3vw, 26px);
}

.legal-footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(217, 226, 243, 0.2);
  padding-bottom: 20px;
}

.legal-footer-title {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal-footer-logo-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.legal-footer-logo {
  display: block;
  width: clamp(122px, 12vw, 148px);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
}

.legal-footer-tagline {
  margin: 8px 0 0;
  color: #8fa3bd;
  font-size: 14px;
  line-height: 1.5;
}

.legal-footer-bottom {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.legal-footer-links a {
  color: #d9e2f3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  transition: color 180ms ease, opacity 180ms ease;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible {
  color: #fff;
  opacity: 1;
}

.legal-footer-copy {
  color: rgba(217, 226, 243, 0.76);
  font-size: 13px;
  letter-spacing: 0.01em;
}

@media (max-width: 1080px) {
  .legal-nav {
    display: none;
  }
}

@media (max-width: 740px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner {
    width: calc(100% - 28px);
  }

  .legal-main {
    padding-top: 26px;
  }

  .legal-card {
    border-radius: 20px;
    padding: 20px 16px;
  }

  .legal-content p,
  .legal-content h5 {
    font-size: 15px;
    line-height: 1.65;
  }

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