.skip-link {
  /* Defined in /static/a11y.css — keep fallback if legal.css loaded alone */
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--btn, #2599ee);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid var(--main, #262728);
  outline-offset: 2px;
}

.legal-page {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

/* Navbar: centered logo + back on opposite side (matches Flutter RegistrationLayout) */
.legal-page .brix-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--border, #e0e0e0);
}

.legal-page .brix-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.legal-page .nav-back {
  position: absolute;
  left: 16px;
  right: auto;
  margin: 0;
}

.legal-main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  font-size: 17px;
}

.legal-title {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  color: var(--main, #262728);
  line-height: 1.25;
}

.legal-updated {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-muted, #767f94);
}

.legal-section {
  margin-top: 32px;
}

.legal-section + .legal-section {
  margin-top: 28px;
}

.legal-section-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--main, #262728);
}

.legal-section-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted, #767f94);
  white-space: pre-line;
}

.legal-section-body a {
  color: var(--btn, #2599ee);
  font-weight: 700;
}
