/* Advisor Growth Lab — cookie consent UI (banner + preferences dialog)
   Styled to the site's own system: Schibsted Grotesk, ink #0F172A on paper,
   indigo accent #4338CA, 10px control radius, soft editorial shadows. */

.agl-cc-banner {
  position: fixed;
  z-index: 2147482000;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .34s cubic-bezier(.21,.86,.36,1), transform .34s cubic-bezier(.21,.86,.36,1);
}
.agl-cc-banner.is-in { opacity: 1; transform: none; }
.agl-cc-card {
  pointer-events: auto;
  max-width: 560px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 30px 70px -38px rgba(2,6,23,.55), 0 2px 8px rgba(15,23,42,.08);
}
.agl-cc-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.agl-cc-body {
  margin: 0;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.55;
}
.agl-cc-body a { color: #4338CA; text-decoration: underline; text-underline-offset: 2px; }
.agl-cc-gpc {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(67,56,202,.07);
  color: #3730A3;
  font-size: 12.5px;
  line-height: 1.5;
}
.agl-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.agl-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background .22s, border-color .22s, color .22s;
}
.agl-cc-btn--primary {
  background: #4338CA;
  color: #F8FAFF;
  box-shadow: 0 10px 26px -10px rgba(67,56,202,.55);
}
.agl-cc-btn--primary:hover { background: #3730A3; }
.agl-cc-btn--ghost {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(15,23,42,.16);
}
.agl-cc-btn--ghost:hover { border-color: rgba(67,56,202,.4); color: #4338CA; }
.agl-cc-btn--link {
  background: none;
  color: #4338CA;
  padding: 10px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agl-cc-btn--link:hover { color: #3730A3; }

/* ------------------------------------------------------------- dialog */
.agl-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11,15,40,.56);
  opacity: 0;
  transition: opacity .26s ease;
}
.agl-cc-overlay.is-in { opacity: 1; }
.agl-cc-dialog {
  width: min(660px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 40px 90px -40px rgba(2,6,23,.8);
  outline: none;
  transform: translateY(10px) scale(.985);
  transition: transform .26s cubic-bezier(.21,.86,.36,1);
}
.agl-cc-overlay.is-in .agl-cc-dialog { transform: none; }
.agl-cc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.agl-cc-dialog__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.agl-cc-x {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 9px;
  background: #FFFFFF;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.agl-cc-x:hover { color: #4338CA; border-color: rgba(67,56,202,.4); }
.agl-cc-dialog__body {
  padding: 18px 24px;
  overflow-y: auto;
}
.agl-cc-dialog__body > p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.6;
}
.agl-cc-dialog__body > p a { color: #4338CA; text-decoration: underline; text-underline-offset: 2px; }
.agl-cc-row {
  padding: 16px 0;
  border-top: 1px solid rgba(15,23,42,.07);
}
.agl-cc-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.agl-cc-row__head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.agl-cc-row__head p {
  margin: 0;
  max-width: 52ch;
  color: #617087;
  font-size: 12.8px;
  line-height: 1.5;
}
.agl-cc-row__head .agl-cc-gpc { margin-top: 8px; }
.agl-cc-always {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(67,56,202,.08);
  color: #3730A3;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.agl-cc-switch {
  position: relative;
  flex: none;
  display: inline-block;
  width: 46px;
  height: 26px;
  cursor: pointer;
}
.agl-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.agl-cc-switch span[aria-hidden] {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.18);
  transition: background .2s;
}
.agl-cc-switch span[aria-hidden]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15,23,42,.35);
  transition: transform .2s cubic-bezier(.21,.86,.36,1);
}
.agl-cc-switch input:checked + span[aria-hidden] { background: #4338CA; }
.agl-cc-switch input:checked + span[aria-hidden]::after { transform: translateX(20px); }
.agl-cc-switch input:focus-visible + span[aria-hidden] { outline: 2px solid #4338CA; outline-offset: 2px; }
.agl-cc-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.agl-cc-none {
  margin: 10px 0 0;
  color: #94A0B4;
  font-size: 12.5px;
  font-style: italic;
}
.agl-cc-script {
  margin: 10px 0 0;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 10px;
  background: #FAFBFD;
}
.agl-cc-script summary {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style-position: inside;
}
.agl-cc-script summary span { color: #617087; font-weight: 500; font-size: 12px; }
.agl-cc-script p {
  margin: 0 0 10px;
  padding: 0 14px;
  color: #334155;
  font-size: 12.8px;
  line-height: 1.55;
}
.agl-cc-table {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  border-collapse: collapse;
  font-size: 12px;
}
.agl-cc-table th, .agl-cc-table td {
  padding: 6px 8px;
  border: 1px solid rgba(15,23,42,.09);
  text-align: left;
  vertical-align: top;
}
.agl-cc-table th {
  background: rgba(15,23,42,.04);
  font-weight: 700;
}
.agl-cc-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(15,23,42,.08);
}

/* --------------------------------------------- shared legal small print */
.agl-form-legal {
  margin: 14px 0 0;
  color: #617087;
  font-size: 11.5px;
  line-height: 1.55;
}
.agl-form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.agl-form-legal a:hover { color: #4338CA; }
/* On dark panels (drawer result, ink sections) */
.agl-assess-drawer .agl-form-legal,
.section--ink .agl-form-legal,
[data-assessment-research-result] .agl-form-legal { color: rgba(148,160,180,.9); }

/* Footer legal block (injected on every page) */
.agl-foot-legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,160,180,.22);
}
.agl-foot-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 14px;
  padding: 0;
  font-size: 12.5px;
}
.agl-foot-legal__links a,
.agl-foot-legal__links button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.agl-foot-legal__links a:hover,
.agl-foot-legal__links button:hover { opacity: 1; }
.agl-foot-legal p {
  margin: 0 0 10px;
  font-size: 11.5px;
  line-height: 1.6;
  opacity: .75;
}
.agl-foot-legal p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .agl-cc-banner { left: 10px; right: 10px; bottom: 10px; }
  .agl-cc-card { max-width: none; padding: 18px 16px 16px; }
  .agl-cc-actions .agl-cc-btn { flex: 1 1 auto; }
  .agl-cc-dialog__head, .agl-cc-dialog__body, .agl-cc-dialog__foot { padding-left: 16px; padding-right: 16px; }
}
