.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.legal-header,
.legal-nav,
.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header {
  padding: 12px 0 22px;
}

.legal-language {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.legal-language select,
.delete-signin-form input {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.legal-nav {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.legal-nav a,
.legal-footer a {
  color: var(--primary, #fd267d);
  font-weight: 600;
}

.legal-document {
  margin: 24px 0;
  padding: clamp(20px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.legal-document h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 40px);
}

.legal-document h2 {
  margin-top: 28px;
}

.legal-document p {
  line-height: 1.75;
}

.legal-updated,
.legal-loading,
.legal-contact {
  color: var(--muted);
}

.legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.legal-section p {
  margin: 8px 0;
  line-height: 1.75;
}

.legal-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.deletion-document {
  max-width: 720px;
  margin: 28px auto;
}

.deletion-warning {
  padding: 14px;
  border-inline-start: 4px solid #d82d49;
  border-radius: 8px;
  background: rgba(216, 45, 73, 0.08);
}

.delete-signin-form {
  display: grid;
  gap: 14px;
  margin: 20px 0 12px;
}

.delete-signin-form label {
  display: grid;
  gap: 8px;
}

.delete-signin-form input {
  width: 100%;
}

.btn-danger {
  border: 0;
  background: #c6283d;
  color: white;
}

.delete-status {
  min-height: 1.5em;
  white-space: pre-wrap;
}

.legal-error {
  margin: 24px 0;
  color: #b42335;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
