.legal-page {
  padding-bottom: 44px;
}

.legal-main {
  padding: 24px 0 0;
}

.legal-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 14px 18px;
  border: 1px solid rgba(28, 45, 72, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 240, 232, 0.78)),
    rgba(252, 250, 247, 0.9);
  backdrop-filter: blur(22px);
  box-shadow:
    0 18px 44px rgba(20, 32, 52, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.legal-brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 22px;
  background: rgba(21, 32, 54, 0.04);
  box-shadow:
    0 16px 34px rgba(20, 32, 52, 0.14),
    0 0 0 1px rgba(28, 45, 72, 0.08);
}

.legal-brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.legal-brand-copy strong {
  color: var(--navy-950);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.legal-brand-copy small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(28, 45, 72, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(20, 32, 52, 0.06);
}

.legal-language-switch a,
.legal-language-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-language-switch a {
  color: var(--navy-900);
}

.legal-language-switch span,
.legal-language-switch a.is-active {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(28, 45, 72, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(20, 32, 52, 0.06);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(28, 45, 72, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-nav a.is-active {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 18px 32px rgba(28, 45, 72, 0.16);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 42px;
  border: 1px solid rgba(28, 45, 72, 0.08);
  border-radius: 40px;
  background:
    radial-gradient(circle at top left, rgba(185, 115, 81, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 237, 227, 0.98));
  box-shadow: var(--shadow-soft);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.legal-hero h1 {
  margin: 0;
  max-width: 860px;
  color: var(--navy-950);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.legal-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--ink-700);
  font-size: 1.04rem;
  line-height: 1.78;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-meta span,
.legal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(28, 45, 72, 0.06);
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 24px;
  margin-top: 24px;
}

.legal-article,
.legal-aside {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.legal-article {
  padding: 36px;
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(28, 45, 72, 0.08);
}

.legal-section h2,
.legal-section h3 {
  margin: 0 0 14px;
  color: var(--navy-950);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-section h2 {
  font-size: 1.7rem;
}

.legal-section h3 {
  font-size: 1.16rem;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--ink-700);
  line-height: 1.78;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-700);
}

.legal-list li {
  line-height: 1.72;
}

.legal-note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(185, 115, 81, 0.16);
  border-radius: 24px;
  background: rgba(185, 115, 81, 0.08);
}

.legal-note strong,
.legal-aside h2,
.legal-aside h3 {
  color: var(--navy-950);
}

.legal-aside {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
}

.legal-aside h2,
.legal-aside h3 {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-aside p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.72;
}

.legal-aside ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-aside li {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(28, 45, 72, 0.04);
  color: var(--navy-900);
  font-size: 0.92rem;
  line-height: 1.62;
}

.legal-contact {
  display: grid;
  gap: 10px;
}

.legal-contact a {
  color: var(--navy-900);
  font-weight: 700;
}

.legal-footer {
  margin-top: 28px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.legal-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
}

.legal-footer-copy {
  display: grid;
  gap: 12px;
}

.legal-footer-copy h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-footer-copy p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.72;
}

.legal-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(28, 45, 72, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(28, 45, 72, 0.08);
  color: var(--ink-700);
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .legal-grid,
  .legal-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .legal-header-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .legal-nav {
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .legal-hero,
  .legal-article,
  .legal-aside,
  .legal-footer {
    padding: 24px;
  }

  .legal-brand-emblem {
    width: 58px;
    height: 58px;
    border-radius: 19px;
  }

  .legal-footer-links {
    grid-template-columns: 1fr;
  }

  .legal-footer-bottom {
    flex-direction: column;
  }
}
