body.legal-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 140, 255, 0.28), transparent 32rem),
    radial-gradient(circle at 82% 18%, rgba(123, 124, 255, 0.2), transparent 30rem),
    var(--bg);
}

body.legal-page .legal-hero {
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.legal-page .legal-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 78%);
  content: "";
}

body.legal-page .legal-hero-inner {
  position: relative;
  z-index: 1;
}

body.legal-page .legal-hero h1 {
  margin: 0;
  color: #f7fbff;
}

body.legal-page .legal-hero p:not(.eyebrow) {
  color: #b8c8dc;
}

body.legal-page .legal-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

body.legal-page .legal-contact-card,
body.legal-page .contact-channel-card,
body.legal-page .contact-form-card,
body.legal-page .faq-list article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

body.legal-page .legal-contact-card {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
}

body.legal-page .legal-contact-card span,
body.legal-page .contact-channel-card span {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.legal-page .legal-contact-card h2,
body.legal-page .contact-channel-card h2,
body.legal-page .legal-copy h2,
body.legal-page .faq-list h2 {
  color: #f7fbff;
}

body.legal-page .legal-contact-card a {
  color: #f7fbff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.legal-page .legal-copy,
body.legal-page .faq-list {
  display: grid;
}

body.legal-page .legal-updated {
  color: var(--teal) !important;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.legal-page .contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.legal-page .contact-channel-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
}

body.legal-page .contact-form-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.legal-page .contact-form-card label {
  display: grid;
  gap: 8px;
  color: #dce8f7;
  font-size: 0.82rem;
  font-weight: 800;
}

body.legal-page .contact-form-card input,
body.legal-page .contact-form-card select,
body.legal-page .contact-form-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(4, 12, 24, 0.7);
  color: #f7fbff;
  font: inherit;
}

body.legal-page .contact-form-card textarea {
  min-height: 136px;
  resize: vertical;
}

body.legal-page .contact-form-card .field-wide {
  grid-column: 1 / -1;
}

body.legal-page .whatsapp-submit {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #f7fbff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

body.legal-page .site-footer-expanded {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, auto) minmax(120px, 0.4fr);
  align-items: center;
  gap: 24px;
}

body.legal-page .footer-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.legal-page .site-footer-expanded .footer-brand-block img {
  flex: 0 0 auto;
  width: 132px;
}

body.legal-page .site-footer-expanded .footer-brand-block p,
body.legal-page .site-footer-expanded > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: left;
}

body.legal-page .site-footer-expanded > p {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

body.legal-page .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

body.legal-page .footer-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dbe8ff;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

body.legal-page .footer-links a:hover,
body.legal-page .footer-links a:focus-visible {
  border-color: rgba(79, 140, 255, 0.58);
  background: rgba(79, 140, 255, 0.12);
}

body.legal-page .legal-hero {
  min-height: 38vh !important;
  padding: 118px 0 42px !important;
}

body.legal-page .legal-hero h1 {
  max-width: 760px !important;
  font-size: clamp(1.95rem, 3.6vw, 3.4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

body.legal-page .legal-hero p:not(.eyebrow) {
  max-width: 640px !important;
  margin-top: 15px !important;
  font-size: clamp(0.92rem, 1.05vw, 1rem) !important;
  line-height: 1.58 !important;
}

body.legal-page .legal-layout {
  gap: 24px !important;
  padding: 54px 0 74px !important;
}

body.legal-page .legal-contact-card {
  gap: 12px !important;
  padding: 20px !important;
}

body.legal-page .legal-contact-card h2 {
  font-size: 1.05rem !important;
  line-height: 1.22 !important;
}

body.legal-page .legal-contact-card p,
body.legal-page .legal-copy p,
body.legal-page .faq-list p {
  font-size: 0.92rem !important;
  line-height: 1.62 !important;
}

body.legal-page .legal-copy h2,
body.legal-page .faq-list h2 {
  margin-bottom: 8px !important;
  font-size: clamp(1.02rem, 1.25vw, 1.22rem) !important;
  line-height: 1.22 !important;
}

body.legal-page .legal-copy h2 {
  padding-top: 12px !important;
}

body.legal-page .faq-list {
  gap: 12px !important;
}

body.legal-page .faq-list article {
  padding: 20px !important;
}

body.legal-page .contact-channel-section {
  padding-top: 54px !important;
}

body.legal-page .contact-channel-card {
  min-height: 190px !important;
  padding: 20px !important;
}

body.legal-page .contact-channel-card h2 {
  font-size: clamp(1.05rem, 1.45vw, 1.36rem) !important;
  line-height: 1.18 !important;
}

body.legal-page .contact-channel-card p {
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

@media (max-width: 680px) {
  body.legal-page .legal-hero {
    min-height: auto !important;
    padding: 112px 0 38px !important;
  }

  body.legal-page .legal-hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.75rem) !important;
  }

  body.legal-page .legal-layout {
    grid-template-columns: 1fr !important;
    padding: 38px 0 58px !important;
  }

  body.legal-page .legal-contact-card {
    position: relative !important;
    top: auto !important;
  }

  body.legal-page .contact-channel-grid,
  body.legal-page .contact-form-card {
    grid-template-columns: 1fr !important;
  }

  body.legal-page .site-footer-expanded {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 18px !important;
  }

  body.legal-page .footer-links {
    justify-content: flex-start !important;
  }

  body.legal-page .footer-brand-block {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.legal-page .site-footer-expanded > p {
    justify-self: start !important;
    text-align: left !important;
  }
}
