.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--espresso);
}
.legal-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(21, 15, 11, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.legal-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 3.2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.legal-brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.legal-brand img {
  height: 40px;
}
.legal-language {
  display: inline-flex;
  align-items: stretch;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(21, 15, 11, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}
.legal-language button {
  position: relative;
  z-index: 1;
  min-width: 1.9rem;
  padding: 0.34rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-faint);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}
.legal-language button.active {
  color: var(--espresso);
  background: var(--gold);
}
.legal-language .lang-thumb {
  display: none;
}
.legal-content {
  width: min(760px, calc(100% - 6.4rem));
  margin: 0 auto;
  padding: 8rem 0 7rem;
  flex: 1;
}
.legal-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.legal-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 680px;
}
.legal-intro {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--cream-dim);
  font-weight: 300;
  margin-top: 1.5rem;
  max-width: 680px;
}
.legal-sections {
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}
.legal-section h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.65rem;
}
.legal-section p {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--cream-dim);
  font-weight: 300;
}
.legal-updated {
  font-size: 0.75rem;
  color: var(--cream-faint);
  margin-top: 3rem;
}
.legal-footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 3.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cream-faint);
  font-size: 0.75rem;
}
.legal-footer-links {
  display: flex;
  gap: 1.25rem;
}
.legal-footer a,
.legal-section a[href^="mailto:"] {
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .legal-footer a:hover,
  .legal-section a[href^="mailto:"]:hover {
    color: var(--gold);
  }
}
@media (max-width: 768px) {
  .legal-header-inner {
    padding: 0.95rem 1.25rem;
    gap: 1rem;
  }
  .legal-brand img {
    height: 36px;
  }
  .legal-language {
    position: relative;
    height: 40px;
    padding: 0.18rem;
    box-sizing: border-box;
  }
  .legal-language button {
    min-width: 2.15rem;
    min-height: 1.85rem;
    padding: 0.3rem 0.4rem;
  }
  .legal-language button.active {
    color: var(--espresso);
    background: transparent;
  }
  .legal-language .lang-thumb {
    position: absolute;
    z-index: 0;
    top: 0.18rem;
    right: 50%;
    bottom: 0.18rem;
    left: 0.18rem;
    display: block;
    background: var(--gold);
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(199, 160, 89, 0.28);
    transition: transform 220ms var(--ease-out);
    pointer-events: none;
  }
  .legal-language:has(button[data-language="fi"].active) .lang-thumb {
    transform: translateX(100%);
  }
  .legal-content {
    width: calc(100% - 2.5rem);
    padding: 3rem 0 4.5rem;
  }
  .legal-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .legal-intro {
    font-size: 0.95rem;
    line-height: 1.75;
  }
  .legal-sections {
    gap: 2.2rem;
    margin-top: 3rem;
  }
  .legal-section h2 {
    font-size: 1.3rem;
  }
  .legal-section p {
    font-size: 0.88rem;
    line-height: 1.8;
  }
  .legal-footer {
    padding: 1.4rem 1.25rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
