/* Legal documents — Registration Agreement / Privacy Policy (mobile reference UI) */
:root {
  --legal-bg: #d8ecf8;
  --legal-wave: rgba(72, 130, 175, 0.12);
  --legal-text: #0a1628;
  --legal-max: 480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.legal-doc {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--legal-text);
  background-color: var(--legal-bg);
  background-image:
    repeating-linear-gradient(
      -52deg,
      transparent,
      transparent 28px,
      var(--legal-wave) 28px,
      var(--legal-wave) 56px
    ),
    linear-gradient(165deg, #e8f4fc 0%, #d0e8f6 45%, #c8e4f4 100%);
}

.legal-shell {
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: 0 0 32px;
}

.legal-page {
  width: min(var(--legal-max), 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 14px 12px 10px;
  background: linear-gradient(180deg, rgba(216, 236, 248, 0.98) 70%, rgba(216, 236, 248, 0));
  backdrop-filter: blur(4px);
}

.legal-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--legal-text);
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
}

.legal-back:hover {
  opacity: 0.7;
}

.legal-body {
  flex: 1;
  padding: 4px 20px 24px;
  font-size: 15px;
  line-height: 1.65;
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body strong {
  font-weight: 700;
}

.legal-body h2 {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.legal-body ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-body ol li {
  margin-bottom: 10px;
}

.legal-body ol li::marker {
  font-weight: 700;
}

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

.legal-body ul li {
  margin-bottom: 8px;
}
