/* =====================================================
   LXX — LEGAL PAGES
===================================================== */

:root {
  --legal-text: rgba(44, 38, 32, 0.88);
  --legal-muted: rgba(44, 38, 32, 0.58);
  --legal-line: rgba(180, 90, 63, 0.22);
  --legal-card: rgba(250, 247, 243, 0.86);
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  margin: 0;
  color: var(--legal-text);
  background:
    linear-gradient(rgba(246, 240, 232, 0.78), rgba(246, 240, 232, 0.78)), var(--leo-map-url, none),
    #f6f0e8;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size:
    cover,
    140% auto,
    auto;
  background-position:
    center,
    center top,
    center;
}

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

.legal-topbar {
  padding: 1.35rem 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.legal-back,
.legal-back:link,
.legal-back:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.legal-back:hover {
  color: var(--color-accent);
  transform: translateX(-1px);
}

.legal-back::before {
  content: "←";
  font-size: 0.95rem;
  line-height: 1;
}

.legal-meta {
  color: rgba(0, 0, 0, 0.46);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.legal-topbar__end,
.legal-language {
  display: flex;
  align-items: center;
}

.legal-topbar__end {
  gap: 1rem;
}

.legal-language {
  gap: 0.3rem;
  color: rgba(0, 0, 0, 0.42);
}

.legal-language button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.52);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.legal-language button[aria-pressed="true"] {
  color: var(--color-accent);
  font-weight: 600;
}

.legal-main {
  width: min(920px, calc(100% - 2.4rem));
  margin: 2.4rem auto 4rem;
  padding: 2.4rem clamp(1.15rem, 2vw, 2.3rem);
  border: 1px solid rgba(180, 90, 63, 0.14);
  border-radius: 28px;
  background: var(--legal-card);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.legal-kicker {
  margin: 0 0 0.8rem;
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.9);
}

.legal-intro {
  margin: 1rem 0 0;
  max-width: 52rem;
  color: var(--legal-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-divider {
  height: 1px;
  margin: 1.8rem 0 2rem;
  background: linear-gradient(
    90deg,
    rgba(180, 90, 63, 0),
    rgba(180, 90, 63, 0.38),
    rgba(180, 90, 63, 0)
  );
  border: 0;
}

.legal-section + .legal-section {
  margin-top: 2rem;
}

.legal-section h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.84);
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--legal-text);
}

.legal-section p {
  margin: 0 0 1rem;
}

.legal-section ul {
  margin: 0.4rem 0 1rem 1.15rem;
  padding: 0;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.legal-section strong {
  color: rgba(0, 0, 0, 0.88);
  font-weight: 600;
}

.legal-section a,
.legal-section a:link,
.legal-section a:visited {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 90, 63, 0.32);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.legal-section a:hover {
  border-bottom-color: rgba(180, 90, 63, 0.62);
  opacity: 0.84;
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-footer {
  width: min(920px, calc(100% - 2.4rem));
  margin: 0 auto 2.5rem;
  text-align: center;
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.legal-footer a,
.legal-footer a:link,
.legal-footer a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.legal-footer a:hover {
  color: var(--color-accent);
  border-bottom-color: rgba(180, 90, 63, 0.45);
}

@media (max-width: 768px) {
  .legal-topbar {
    padding: 1.1rem 1rem 0;
  }

  .legal-meta {
    display: none;
  }

  .legal-main {
    width: min(100% - 1.2rem, 920px);
    margin: 1.6rem auto 3rem;
    padding: 1.5rem 1rem 1.8rem;
    border-radius: 22px;
  }

  .legal-intro,
  .legal-section p,
  .legal-section li {
    font-size: 1rem;
    line-height: 1.72;
  }

  .legal-footer {
    width: calc(100% - 1.2rem);
    margin-bottom: 2rem;
    font-size: 0.78rem;
  }
}
.legal-intro + .legal-intro {
  margin-top: 0.4rem;
}

.legal-section br {
  line-height: 1.9;
}

.legal-kicker {
  color: var(--lxx-editorial-label-color);
}
