body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #111216;
  background: #f7f7f4;
}

.legal-header,
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e5e7ec;
  backdrop-filter: blur(18px);
}

.legal-header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.legal-header nav,
.legal-footer {
  display: flex;
  gap: 14px;
}

.legal-header a,
.legal-footer a {
  color: #111216;
  font-weight: 850;
  text-decoration: none;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 70px) clamp(18px, 5vw, 42px);
}

.legal-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff;
  border: 1px solid #e5e7ec;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(17, 18, 22, 0.1);
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.legal-card h2 {
  margin: 18px 0 0;
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: #545965;
  line-height: 1.62;
}

.legal-card strong {
  color: #111216;
}

.legal-note {
  padding: 12px 14px;
  color: #9a6a00;
  background: rgba(154, 106, 0, 0.09);
  border: 1px solid rgba(154, 106, 0, 0.18);
  border-radius: 8px;
  font-weight: 800;
}

.legal-footer {
  justify-content: center;
  border-top: 1px solid #e5e7ec;
  border-bottom: 0;
}

.site-legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 22px clamp(18px, 5vw, 70px);
  color: #666a73;
  background: #fff;
  border-top: 1px solid #e5e7ec;
  font-size: 13px;
  font-weight: 800;
}

.site-legal-footer a {
  color: #111216;
  text-decoration: none;
}

.privacy-banner {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 150;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  color: #111216;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7ec;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(17, 18, 22, 0.18);
  backdrop-filter: blur(18px);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner p {
  margin: 0;
  color: #545965;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 750;
}

.privacy-banner a {
  color: #b3192a;
  font-weight: 900;
}

.privacy-banner button {
  min-height: 40px;
  color: #fff;
  background: #111216;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
