.regulation-consent {
  display: grid;
  gap: 7px;
}

.regulation-consent__action,
.regulation-aside-trigger {
  width: max-content;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.regulation-consent__action {
  margin-left: 32px;
  font-size: .68rem;
}

.registration-aside .regulation-aside-trigger { color: #a5def2; text-align: left; }
.regulation-consent__action:hover,
.regulation-consent__action:focus-visible { color: var(--navy); }
.registration-aside .regulation-aside-trigger:hover,
.registration-aside .regulation-aside-trigger:focus-visible { color: var(--white); }

body.has-regulation-dialog { overflow: hidden; }

.regulation-dialog {
  width: min(920px, calc(100% - 42px));
  max-width: none;
  height: min(86vh, 900px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 35px 100px rgba(0, 20, 35, .45);
}

.regulation-dialog:not([open]) { display: none; }
.regulation-dialog::backdrop { background: rgba(0, 20, 35, .78); backdrop-filter: blur(3px); }
.regulation-dialog.is-fallback-open { position: fixed; z-index: 1000; inset: 0; }
.regulation-dialog.is-fallback-open::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgba(0, 20, 35, .78);
  content: '';
}

.regulation-dialog__surface { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.regulation-dialog__header,
.regulation-dialog__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 26px;
  background: var(--white);
}
.regulation-dialog__header { border-bottom: 1px solid var(--line); }
.regulation-dialog__footer { border-top: 1px solid var(--line); }
.regulation-dialog__eyebrow { margin: 0 0 3px; color: var(--blue); font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.regulation-dialog__header h2 { margin: 0; color: var(--navy); font-family: var(--display); font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1; }
.regulation-dialog__close {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  background: var(--ice);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.regulation-dialog__close:hover,
.regulation-dialog__close:focus-visible { border-color: var(--blue); color: var(--blue); }
.regulation-dialog__body { overflow-y: auto; padding: 32px clamp(22px, 5vw, 58px) 42px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.regulation-dialog__footer p { margin: 0; color: var(--muted); font-size: .68rem; }
.regulation-dialog__done {
  flex: 0 0 auto;
  min-height: 45px;
  padding: 9px 20px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}
.regulation-dialog__done:hover,
.regulation-dialog__done:focus-visible { background: var(--navy); }

.regulation-document { max-width: 760px; margin-inline: auto; font-size: .76rem; line-height: 1.7; }
.regulation-document__intro { margin-bottom: 27px; padding-bottom: 22px; border-bottom: 3px solid var(--navy); }
.regulation-document__overline { margin: 0 0 4px; color: var(--blue); font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.regulation-document__intro h3 { margin: 0; color: var(--navy); font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: -.025em; line-height: 1.05; text-transform: uppercase; }
.regulation-preamble { margin-bottom: 35px; padding: 23px 25px; border-left: 4px solid var(--blue); background: var(--ice); }
.regulation-preamble h3 { margin: 0 0 12px; color: var(--navy); font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }
.regulation-preamble p,
.regulation-article > p { margin: 0; }
.regulation-preamble p + p,
.regulation-article > p + p { margin-top: 12px; }
.regulation-article { margin-top: 31px; padding-top: 27px; border-top: 1px solid var(--line); }
.regulation-article > header { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 15px; }
.regulation-article > header > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--white); background: var(--blue); font-size: .58rem; font-weight: 800; }
.regulation-article h3 { margin: 0; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.regulation-article h3 small { display: block; margin-top: 2px; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 650; }
.regulation-article > ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.regulation-article li::marker { color: var(--blue); }
.regulation-article strong { color: var(--navy); }
.regulation-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.regulation-table-wrap:focus-visible { outline-offset: 3px; }
.regulation-table-wrap table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .68rem; line-height: 1.5; }
.regulation-table-wrap th,
.regulation-table-wrap td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.regulation-table-wrap thead th { color: var(--white); background: var(--navy); font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; }
.regulation-table-wrap tbody th { width: 18%; color: var(--navy); background: var(--ice); }
.regulation-table-wrap tbody tr:last-child > * { border-bottom: 0; }
.regulation-table-wrap ul { margin: 0; padding-left: 17px; }
.regulation-document__approval { margin: 38px 0 0; padding-top: 20px; border-top: 3px solid var(--navy); color: var(--navy); font-size: .66rem; font-weight: 750; text-align: center; }

@media (max-width: 680px) {
  .regulation-dialog { width: calc(100% - 18px); height: calc(100dvh - 18px); border-radius: 7px; }
  .regulation-dialog__header { padding: 15px 16px; }
  .regulation-dialog__footer { align-items: stretch; flex-direction: column; padding: 13px 16px 15px; }
  .regulation-dialog__footer p { display: none; }
  .regulation-dialog__done { width: 100%; }
  .regulation-dialog__body { padding: 24px 17px 32px; }
  .regulation-preamble { padding: 19px 17px; }
  .regulation-document { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .regulation-dialog::backdrop { backdrop-filter: none; }
}
