.legal-page {
  min-height: 100vh;
  padding: 24px 0 48px;
}

.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.legal-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.legal-lang {
  display: flex;
  gap: 6px;
}

.legal-lang button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.legal-lang button.active {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #eff6ff;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--ink);
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-family: Sora, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.15;
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-doc section {
  margin-bottom: 24px;
}

.legal-doc h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 10px;
  color: #3f3a34;
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal-doc a {
  color: #1d4ed8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-legal a:hover {
  color: var(--ink);
}

.footer-inner {
  flex-wrap: wrap;
}

.workspace-legal-links {
  margin-bottom: 10px;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 28px rgba(15, 17, 21, 0.08);
  backdrop-filter: blur(10px);
}

.cookie-consent-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px 16px;
}

.cookie-consent p {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #3f3a34;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.cookie-consent-actions button,
.cookie-consent-actions a {
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-consent-accept {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.cookie-consent-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.cookie-consent-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent-close:hover {
  background: #f4f4f5;
  color: var(--ink);
}

@media (max-width: 720px) {
  .cookie-consent {
    align-items: flex-start;
    padding: 10px 10px 10px 14px;
  }

  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cookie-consent-actions {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
