:root {
  --bg: #d7d7d7;
  --ink: #121212;
  --muted: #3f3f3f;
  --rule: #bbbbbb;
  --footer: #000000;
  --footer-ink: #ece7dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.legal-page {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 18px 18px 34px;
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.legal-back,
.legal-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  text-underline-offset: 2px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.04em;
}

.lang-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.lang-link[data-active="true"] {
  font-size: 0.72rem;
  font-weight: 700;
}

.lang-link[data-active="false"] {
  font-size: 0.62rem;
  font-weight: 400;
}

.lang-divider {
  font-size: 0.68rem;
  line-height: 1;
}

.legal-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.legal-nav a[aria-current="page"] {
  font-weight: 700;
}

.legal-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.legal-kicker {
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.legal-subtitle {
  margin: 14px 0 0;
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.6;
}

.legal-sections {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.legal-section p,
.legal-section li {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-section li + li,
.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 10px;
}

.legal-footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.legal-site-footer {
  background: var(--footer);
  color: var(--footer-ink);
}

.legal-site-footer-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.legal-site-footer p {
  margin: 0;
  font-size: 0.8rem;
}

@media (min-width: 700px) {
  body {
    padding: 28px 24px 24px;
    background:
      radial-gradient(circle at top left, rgba(137, 168, 135, 0.22), transparent 30%),
      radial-gradient(circle at top right, rgba(209, 160, 108, 0.2), transparent 28%),
      linear-gradient(180deg, #e6e1d8 0%, #d7d7d7 44%, #cdcdcd 100%);
  }

  .legal-page {
    padding: 24px 28px 40px;
    border: 1px solid rgba(18, 18, 18, 0.08);
    border-radius: 32px;
    background: rgba(245, 241, 235, 0.58);
    box-shadow: 0 24px 70px rgba(18, 18, 18, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .legal-title {
    font-size: 2.4rem;
  }

  .legal-site-footer {
    width: min(100%, 980px);
    margin: 28px auto 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  }

  .legal-site-footer-inner {
    padding: 18px 28px;
  }
}
