:root {
  --mrl-void: #04070e;
  --mrl-abyss: #070d18;
  --mrl-panel: #0a1322;
  --mrl-line: #15263c;
  --mrl-ice: #dde9f6;
  --mrl-read: #b9cbdd;
  --mrl-mute: #7b93ac;
  --mrl-cyan: #2ab6ff;
  --mrl-beam: #8ce6ff;
  --mrl-ember: #ff8a2b;
  --mrl-mint: #3ee8a8;
}

html { scroll-behavior: smooth; }

body.mrl-legal-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--mrl-void);
  color: var(--mrl-ice);
  font-family: "Syne", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.mrl-legal-page::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(42, 182, 255, 0.15) 1px, transparent 1.4px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.24;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 110% 60% at 40% 0%, #000 4%, transparent 62%);
  mask-image: radial-gradient(ellipse 110% 60% at 40% 0%, #000 4%, transparent 62%);
}

body.mrl-legal-page > .public-shell {
  position: relative;
  z-index: 1;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mrl-wrap {
  position: relative;
  z-index: 2;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.mrl-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--mrl-line);
  background:
    radial-gradient(circle at 80% 45%, rgba(42, 182, 255, 0.07), transparent 34%),
    linear-gradient(145deg, rgba(7, 13, 24, 0.72), rgba(4, 7, 14, 0.96));
}

.mrl-hero::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, var(--mrl-void) 3%, rgba(4, 7, 14, 0.9) 48%, transparent 82%),
    linear-gradient(0deg, var(--mrl-void) 1%, transparent 30%);
  content: "";
  pointer-events: none;
}

.mrl-hero-figure {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -7%;
  bottom: 0;
  width: 48%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mrl-hero-figure img {
  width: auto;
  max-width: none;
  height: 122%;
  opacity: 0.3;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 48%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 48%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 80%, transparent 100%);
  mask-composite: intersect;
  animation: mrlFigureIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mrlFigureIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 0.3; transform: scale(1); }
}

.mrl-hero-inner {
  position: relative;
  z-index: 4;
  padding-block: clamp(72px, 8vw, 118px);
  animation: mrlFade 900ms ease 100ms both;
}

@keyframes mrlFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mrl-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mrl-cyan);
  font: 500 11px/1.4 "DM Mono", monospace;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mrl-eyebrow::before {
  width: 26px;
  height: 1px;
  flex: none;
  background: var(--mrl-ember);
  content: "";
}

.mrl-hero h1 {
  max-width: 16ch;
  margin: 20px 0 0;
  color: var(--mrl-ice);
  font-family: "Syne", sans-serif;
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.mrl-grad {
  background: linear-gradient(96deg, var(--mrl-ember), #ffc46b 42%, var(--mrl-beam) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mrl-lede {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--mrl-mute);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
}

.mrl-meta {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--mrl-line);
  background: var(--mrl-line);
}

.mrl-meta > div {
  min-width: 170px;
  padding: 14px 20px;
  background: rgba(4, 7, 14, 0.96);
}

.mrl-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--mrl-mute);
  font: 500 9px/1.4 "DM Mono", monospace;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.mrl-meta b {
  color: var(--mrl-beam);
  font: 400 12px/1.4 "DM Mono", monospace;
}

.mrl-meta .mrl-mint { color: var(--mrl-mint); }

.mrl-document {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(44px, 7vw, 120px);
  padding-block: clamp(64px, 7vw, 110px);
}

.mrl-index {
  position: sticky;
  top: 104px;
  align-self: start;
}

.mrl-index h2 {
  margin: 0 0 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mrl-line);
  color: var(--mrl-mute);
  font: 500 10px/1.4 "DM Mono", monospace;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mrl-index a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  color: var(--mrl-mute);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.mrl-index a em {
  flex: none;
  color: #3d5670;
  font: 400 10px/1.4 "DM Mono", monospace;
  letter-spacing: 0.14em;
  transition: color 180ms ease;
}

.mrl-index a:hover,
.mrl-index a.is-active { color: var(--mrl-beam); }
.mrl-index a.is-active em { color: var(--mrl-ember); }

.mrl-article {
  width: min(100%, 930px);
}

.mrl-article section {
  margin-bottom: clamp(48px, 5vw, 76px);
  padding-bottom: clamp(48px, 5vw, 76px);
  border-bottom: 1px solid var(--mrl-line);
  scroll-margin-top: 106px;
}

.mrl-article section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.mrl-number {
  color: var(--mrl-ember);
  font: 500 10px/1.4 "DM Mono", monospace;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mrl-article h2 {
  margin: 14px 0 20px;
  color: var(--mrl-ice);
  font-family: "Syne", sans-serif;
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
}

.mrl-article p {
  margin: 0 0 18px;
  color: var(--mrl-read);
  font-size: 17px;
  line-height: 1.78;
}

.mrl-article p:last-child { margin-bottom: 0; }

.mrl-article ul {
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--mrl-line);
  list-style: none;
}

.mrl-article li {
  position: relative;
  padding: 15px 0 15px 24px;
  border-bottom: 1px solid rgba(21, 38, 60, 0.65);
  color: var(--mrl-read);
  font-size: 16px;
  line-height: 1.66;
}

.mrl-article li::before {
  position: absolute;
  top: 25px;
  left: 2px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--mrl-cyan);
  background: rgba(42, 182, 255, 0.18);
  content: "";
  transform: rotate(45deg);
}

.mrl-article li.mrl-prohibited::before {
  border-color: var(--mrl-ember);
  background: rgba(255, 138, 43, 0.18);
}

.mrl-lead-in {
  margin-top: 22px;
  color: var(--mrl-mute);
  font: 500 10px/1.4 "DM Mono", monospace;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.mrl-mail {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--mrl-line);
  background: rgba(10, 19, 34, 0.6);
  color: inherit;
  text-decoration: none;
}

.mrl-mail span {
  color: var(--mrl-mute);
  font: 500 10px/1.4 "DM Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mrl-mail b {
  color: var(--mrl-beam);
  font: 400 clamp(15px, 1.5vw, 19px)/1.4 "DM Mono", monospace;
  word-break: break-all;
}

.mrl-request {
  margin-top: 28px;
  border: 1px solid var(--mrl-line);
  background: rgba(10, 19, 34, 0.6);
}

.mrl-request-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--mrl-line);
  color: var(--mrl-mute);
  font: 500 10px/1.4 "DM Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mrl-request-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mrl-mint);
  box-shadow: 0 0 10px var(--mrl-mint);
}

.mrl-request-body > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) 1fr;
  gap: 22px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(21, 38, 60, 0.62);
}

.mrl-request-body span {
  color: var(--mrl-mute);
  font: 400 10px/1.5 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mrl-request-body b,
.mrl-request-body a {
  color: var(--mrl-read);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}

.mrl-request-body .mrl-request-address {
  border-bottom: 0;
  background: rgba(42, 182, 255, 0.04);
}

.mrl-request-address a { color: var(--mrl-beam); }

.mrl-callout {
  padding: 22px 24px;
  border: 1px solid rgba(255, 138, 43, 0.38);
  border-left: 3px solid var(--mrl-ember);
  background: linear-gradient(90deg, rgba(255, 138, 43, 0.09), rgba(10, 19, 34, 0.7));
}

.mrl-related {
  border-top: 1px solid var(--mrl-line);
  background: rgba(7, 13, 24, 0.68);
}

.mrl-related-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(44px, 5vw, 70px);
}

.mrl-related h2 {
  margin: 0;
  color: var(--mrl-ice);
  font-family: "Syne", sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  text-transform: uppercase;
}

.mrl-related p {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--mrl-mute);
  font-size: 15px;
}

.mrl-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mrl-related-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--mrl-line);
  color: var(--mrl-ice);
  font: 500 10px/1.3 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.mrl-related-links a:hover {
  border-color: var(--mrl-cyan);
  color: var(--mrl-beam);
}

.mrl-legal-page .public-footer {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .mrl-document {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .mrl-index {
    position: static;
    padding: 20px 22px;
    border: 1px solid var(--mrl-line);
    background: rgba(10, 19, 34, 0.58);
  }

  .mrl-hero-figure {
    right: -18%;
    width: 72%;
  }
}

@media (max-width: 640px) {
  .mrl-hero { min-height: auto; }
  .mrl-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .mrl-meta { width: 100%; }
  .mrl-meta > div { flex: 1 1 100%; }
  .mrl-article p { font-size: 16px; }
  .mrl-related-inner { align-items: flex-start; flex-direction: column; }
  .mrl-request-body > div { grid-template-columns: 1fr; gap: 6px; }
  .mrl-related-links { width: 100%; }
  .mrl-related-links a { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mrl-hero-figure img,
  .mrl-hero-inner { animation: none; }
}
