.legal-page {
  min-height: 100vh;
  background: var(--rk-light);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 66px;
  background: var(--rk-dark);
  color: var(--rk-white);
}

.legal-hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 143, 46, .28) 0%, rgba(31, 143, 46, 0) 70%);
}

.legal-hero-inner {
  position: relative;
  animation: rkHeroIn .8s cubic-bezier(.22, .61, .36, 1) .12s both;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, .64);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}

.legal-back:hover {
  color: var(--rk-white);
}

.legal-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 8vw, 80px);
  line-height: .92;
}

.legal-hero p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
}

.legal-content {
  padding: 64px 0 90px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: start;
}

.legal-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal-card,
.legal-side-card {
  border: 1px solid var(--rk-line);
  border-radius: 20px;
  background: var(--rk-white);
  box-shadow: 0 1px 2px rgba(20, 22, 12, .04);
}

.legal-card {
  padding: 34px;
}

.legal-card-feature {
  padding-bottom: 32px;
}

.legal-card-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.legal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef7e9;
  color: var(--rk-green);
  font-size: 18px;
  font-weight: 900;
}

.legal-card h2,
.legal-contact-card h2,
.legal-side-card h2 {
  margin: 0;
  font-family: var(--rk-font-display);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.legal-card-heading h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.legal-card p {
  margin: 0;
  color: var(--rk-muted);
  font-size: 15px;
  line-height: 1.72;
}

.legal-card strong,
.legal-company {
  color: var(--rk-text);
  font-weight: 800;
}

.legal-company {
  margin-bottom: 4px;
  font-size: 18px;
}

.legal-sidebar {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal-contact-card {
  padding: 30px;
  border-radius: 20px;
  background: var(--rk-dark-soft);
  color: var(--rk-white);
  box-shadow: 0 12px 36px rgba(20, 22, 12, .12);
}

.legal-contact-card h2,
.legal-side-card h2 {
  margin-bottom: 22px;
  font-size: 23px;
}

.legal-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-contact-list a,
.legal-contact-list div {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.legal-contact-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(92, 194, 58, .16);
  color: var(--rk-green-bright);
  font-size: 18px;
  font-weight: 900;
}

.legal-contact-list span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.legal-contact-list small,
.legal-side-card small {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.legal-contact-list strong {
  color: var(--rk-white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.legal-side-card {
  padding: 30px;
}

.legal-side-card h2 {
  color: var(--rk-text);
}

.legal-side-card small {
  display: block;
  color: #7a7d72;
  margin-bottom: 5px;
}

.legal-side-card strong {
  color: var(--rk-text);
  font-size: 18px;
  font-weight: 800;
}

.legal-side-card p {
  margin: 0 0 12px;
  color: var(--rk-muted);
  font-size: 14px;
  line-height: 1.65;
}

.legal-side-card p:last-child {
  margin: 14px 0 0;
  color: #7a7d72;
  font-size: 13.5px;
}

.text-link {
  color: var(--rk-green);
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.legal-mail-button {
  width: 100%;
  color: var(--rk-white);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding-top: 122px;
  }

  .legal-card,
  .legal-contact-card,
  .legal-side-card {
    padding: 24px;
  }
}
