:root {
  color-scheme: light;
  --green: #0e6b3b;
  --green-dark: #0a5530;
  --surface: #ffffff;
  --bg: #f4f6f8;
  --text: #1a1f1b;
  --muted: #5d6b61;
  --border: #e2e7e3;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding: 32px 20px 56px;
}

.legal-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 40px rgba(20, 40, 30, 0.08);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.back:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
}

.brand-logo {
  height: 56px;
}

.legal-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.15;
}

.legal-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-status {
  padding: 24px 0;
  color: var(--muted);
  font-size: 1rem;
}

.legal-status.is-error {
  color: var(--danger);
}

.legal-content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-content :where(h2, h3) {
  margin: 1.35em 0 0.65em;
  font-weight: 600;
}

.legal-content :where(h2):first-child,
.legal-content :where(h3):first-child {
  margin-top: 0;
}

.legal-content :where(p) {
  margin: 0 0 1em;
}

.legal-content :where(ul, ol) {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.retry {
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.retry:hover {
  background: var(--green-dark);
}
