/*
 * Shared presentation for commercial deal directories and legal/policy pages.
 * Requires the variables and base components from content-pages.css.
 */

.dhg-deals-page,
.dhg-legal-page {
  color: var(--dhg-copy);
  background: #fff;
  overflow-wrap: break-word;
}

.dhg-deals-page main,
.dhg-legal-page main {
  min-width: 0;
}

/* Page heroes */
.dhg-deals-hero,
.dhg-legal-hero {
  padding-bottom: 94px;
}

.dhg-deals-hero .dhg-breadcrumbs,
.dhg-legal-hero .dhg-breadcrumbs {
  margin-bottom: 42px;
}

.dhg-deals-hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(22, 143, 243, 0.25), transparent 34%),
    radial-gradient(circle at 20% 92%, rgba(184, 220, 49, 0.1), transparent 32%),
    linear-gradient(135deg, #171338 0%, #302064 50%, #25194f 100%);
}

.dhg-legal-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(22, 143, 243, 0.17), transparent 31%),
    linear-gradient(135deg, #171338 0%, #2b2058 55%, #251b4e 100%);
}

.dhg-deals-hero__grid,
.dhg-legal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
}

.dhg-deals-hero__content,
.dhg-deals-hero__visual,
.dhg-legal-hero__content,
.dhg-legal-hero__visual {
  min-width: 0;
}

.dhg-deals-hero__visual,
.dhg-legal-hero__visual {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 30px 84px rgba(8, 7, 31, 0.35);
  backdrop-filter: blur(9px);
}

.dhg-deals-hero__visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dhg-deals-hero__visual > span {
  display: grid;
  padding: 22px 15px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.dhg-deals-hero__visual > span:first-child {
  border-color: rgba(184, 220, 49, 0.42);
  background: rgba(184, 220, 49, 0.12);
  color: #d9f270;
}

.dhg-legal-hero__visual {
  gap: 12px;
}

.dhg-legal-hero__visual > div {
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
}

.dhg-legal-hero__visual small,
.dhg-legal-hero__visual strong {
  display: block;
}

.dhg-legal-hero__visual small {
  margin-bottom: 4px;
  color: #c8eb49;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dhg-legal-hero__visual strong {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.45;
}

.dhg-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.dhg-page-meta li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.3;
  backdrop-filter: blur(7px);
}

.dhg-page-meta strong,
.dhg-page-meta time {
  color: #fff;
  font-weight: 850;
}

/* Deal summary strip */
.dhg-deal-summary-strip {
  padding: 32px 0 0;
  background: #fff;
}

.dhg-deal-summary-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--dhg-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(22, 25, 47, 0.085);
}

.dhg-deal-summary-strip__grid > div {
  min-width: 0;
  padding: 24px 25px;
}

.dhg-deal-summary-strip__grid > div + div {
  border-left: 1px solid var(--dhg-line);
}

.dhg-deal-summary-strip strong,
.dhg-deal-summary-strip span {
  display: block;
}

.dhg-deal-summary-strip strong {
  margin-bottom: 6px;
  color: var(--dhg-ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.dhg-deal-summary-strip span {
  color: #747b8e;
  font-size: 0.72rem;
  line-height: 1.48;
}

/* Deal filtering and directory controls */
.dhg-deal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 25px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dhg-deal-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dhg-deal-filter {
  padding: 9px 14px;
  border: 1px solid #dfe3ec;
  border-radius: 999px;
  background: #fff;
  color: #656d80;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dhg-deal-filter:hover {
  border-color: rgba(22, 143, 243, 0.36);
  color: #1477c8;
}

.dhg-deal-filter.is-active,
.dhg-deal-filter[aria-pressed="true"] {
  border-color: var(--dhg-royal);
  background: var(--dhg-royal);
  color: #fff;
}

.dhg-deal-toolbar__status {
  margin: 0;
  color: #72798c;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.4;
}

/* Deal cards */
.dhg-deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dhg-deal-grid > * {
  min-width: 0;
}

.dhg-deal-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--dhg-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 30, 56, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dhg-deal-card::after {
  position: absolute;
  right: -54px;
  bottom: -62px;
  width: 155px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 143, 243, 0.09), transparent 68%);
  content: "";
  pointer-events: none;
}

.dhg-deal-card:hover {
  border-color: rgba(22, 143, 243, 0.32);
  box-shadow: 0 20px 48px rgba(24, 30, 56, 0.1);
  transform: translateY(-3px);
}

.dhg-deal-card--featured {
  border-color: rgba(184, 220, 49, 0.78);
  box-shadow: 0 18px 45px rgba(79, 103, 20, 0.1);
}

.dhg-deal-card--featured::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dhg-lime), var(--dhg-blue));
  content: "";
}

.dhg-deal-card--muted {
  background: #f8f9fc;
  box-shadow: none;
}

.dhg-deal-card--muted:hover {
  border-color: var(--dhg-line);
  box-shadow: none;
  transform: none;
}

.dhg-deal-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 21px;
}

.dhg-deal-card__identity {
  display: flex;
  min-width: 0;
  gap: 13px;
  align-items: center;
}

.dhg-deal-card__logo,
.dhg-deal-card__monogram {
  flex: 0 0 auto;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 13px;
}

.dhg-deal-card__logo {
  padding: 7px;
  border: 1px solid #e5e8ef;
  background: #fff;
  object-fit: contain;
}

.dhg-deal-card__monogram {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf5ff, #f0ebff);
  color: var(--dhg-royal);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1;
}

.dhg-deal-card__name {
  min-width: 0;
}

.dhg-deal-card__name small,
.dhg-deal-card__name strong {
  display: block;
}

.dhg-deal-card__name small {
  margin-bottom: 3px;
  color: #7b8294;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.dhg-deal-card__name strong {
  color: var(--dhg-ink);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dhg-deal-card__badge,
.dhg-deal-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1477c8;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dhg-deal-card__badge {
  flex: 0 0 auto;
}

.dhg-deal-card--featured .dhg-deal-card__badge {
  background: #eef5d7;
  color: #5a7317;
}

.dhg-deal-card__title {
  position: relative;
  z-index: 1;
  margin-bottom: 11px;
  color: var(--dhg-ink);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dhg-deal-card__summary {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #697084;
  font-size: 0.84rem;
  line-height: 1.64;
}

.dhg-deal-card__pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.dhg-deal-pill {
  background: #f1f2f7;
  color: #6c7386;
  letter-spacing: 0.025em;
  text-transform: none;
}

.dhg-deal-card__features {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.dhg-deal-card__features li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid #edf0f5;
  color: #656d80;
  font-size: 0.76rem;
  line-height: 1.48;
}

.dhg-deal-card__features li::before {
  position: absolute;
  top: 12px;
  left: 1px;
  display: grid;
  width: 16px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(184, 220, 49, 0.24);
  color: #607817;
  content: "\2713";
  font-size: 0.57rem;
  font-weight: 900;
  line-height: 1;
}

.dhg-deal-card__facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 23px;
}

.dhg-deal-card__facts > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e7eaf1;
  border-radius: 10px;
  background: #f9fafc;
}

.dhg-deal-card__facts dt,
.dhg-deal-card__facts dd {
  margin: 0;
}

.dhg-deal-card__facts dt {
  margin-bottom: 3px;
  color: #7d8395;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.dhg-deal-card__facts dd {
  color: var(--dhg-ink);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.dhg-deal-card__price {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 21px;
}

.dhg-deal-card__price strong {
  color: var(--dhg-royal);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dhg-deal-card__price span {
  color: #7c8395;
  font-size: 0.68rem;
  line-height: 1.4;
}

.dhg-deal-code {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 13px 14px;
  border: 1px dashed rgba(87, 67, 159, 0.34);
  border-radius: 12px;
  background: #f7f5ff;
}

.dhg-deal-code span,
.dhg-deal-code small,
.dhg-deal-code strong {
  display: block;
  min-width: 0;
}

.dhg-deal-code small {
  margin-bottom: 2px;
  color: #7d8395;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.dhg-deal-code strong {
  color: var(--dhg-royal);
  font-size: 0.9rem;
  letter-spacing: 0.015em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dhg-deal-code button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(22, 143, 243, 0.28);
  border-radius: 8px;
  background: #fff;
  color: #1477c8;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1.3;
  cursor: pointer;
}

.dhg-deal-card__actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin-top: auto;
}

.dhg-deal-card__actions .btn {
  width: 100%;
  margin: 0;
}

.dhg-deal-card__secondary {
  display: block;
  padding: 9px 4px 0;
  color: #1477c8;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dhg-deal-card__terms {
  position: relative;
  z-index: 1;
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid #edf0f5;
  color: #858b9c;
  font-size: 0.64rem;
  line-height: 1.5;
}

/* Disclosures and decision caveats */
.dhg-caveat-panel {
  display: flex;
  min-width: 0;
  gap: 15px;
  padding: 20px 22px;
  border: 1px solid rgba(22, 143, 243, 0.18);
  border-left: 4px solid var(--dhg-blue);
  border-radius: 14px;
  background: #eef7ff;
  color: #596276;
  font-size: 0.79rem;
  line-height: 1.62;
}

.dhg-caveat-panel + .dhg-caveat-panel {
  margin-top: 14px;
}

.dhg-caveat-panel__icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 10px;
  background: rgba(22, 143, 243, 0.12);
  color: #1477c8;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.dhg-caveat-panel__content {
  min-width: 0;
}

.dhg-caveat-panel__content > :first-child {
  margin-top: 0;
}

.dhg-caveat-panel__content > :last-child {
  margin-bottom: 0;
}

.dhg-caveat-panel strong,
.dhg-caveat-panel h2,
.dhg-caveat-panel h3 {
  color: var(--dhg-ink);
}

.dhg-caveat-panel a {
  color: #126fbf;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dhg-caveat-panel--affiliate {
  border-color: rgba(87, 67, 159, 0.2);
  border-left-color: var(--dhg-royal);
  background: #f5f2ff;
}

.dhg-caveat-panel--affiliate .dhg-caveat-panel__icon {
  background: rgba(87, 67, 159, 0.12);
  color: var(--dhg-royal);
}

.dhg-caveat-panel--pricing {
  border-color: rgba(113, 146, 20, 0.24);
  border-left-color: #7e9e20;
  background: #f5f9e7;
}

.dhg-caveat-panel--pricing .dhg-caveat-panel__icon {
  background: rgba(184, 220, 49, 0.24);
  color: #5d751a;
}

.dhg-caveat-panel--important {
  border-color: rgba(194, 127, 27, 0.22);
  border-left-color: #c27f1b;
  background: #fff8eb;
}

.dhg-caveat-panel--important .dhg-caveat-panel__icon {
  background: rgba(194, 127, 27, 0.12);
  color: #9b6212;
}

/* Shared scroll region for comparison and policy tables */
.dhg-responsive-table,
.dhg-responsive-table__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe3ec;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(24, 30, 56, 0.045);
  scrollbar-color: #aeb5c5 #eef0f5;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.dhg-responsive-table:focus-visible,
.dhg-responsive-table__scroll:focus-visible {
  outline: 3px solid rgba(22, 143, 243, 0.48);
  outline-offset: 4px;
}

.dhg-responsive-table::-webkit-scrollbar,
.dhg-responsive-table__scroll::-webkit-scrollbar {
  height: 10px;
}

.dhg-responsive-table::-webkit-scrollbar-track,
.dhg-responsive-table__scroll::-webkit-scrollbar-track {
  background: #eef0f5;
}

.dhg-responsive-table::-webkit-scrollbar-thumb,
.dhg-responsive-table__scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef0f5;
  border-radius: 999px;
  background: #aeb5c5;
}

.dhg-comparison-table,
.dhg-policy-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--dhg-copy);
  font-size: 0.78rem;
}

.dhg-comparison-table caption,
.dhg-policy-table caption {
  padding: 15px 17px;
  border-bottom: 1px solid #e4e7ef;
  background: #f8f9fc;
  color: #666d80;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.dhg-comparison-table th,
.dhg-comparison-table td,
.dhg-policy-table th,
.dhg-policy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecf2;
  text-align: left;
  vertical-align: top;
}

.dhg-comparison-table thead th,
.dhg-policy-table thead th {
  background: #f4f6fa;
  color: #60677a;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.dhg-comparison-table tbody th,
.dhg-policy-table tbody th {
  color: var(--dhg-ink);
  font-weight: 850;
}

.dhg-comparison-table tbody tr:last-child th,
.dhg-comparison-table tbody tr:last-child td,
.dhg-policy-table tbody tr:last-child th,
.dhg-policy-table tbody tr:last-child td {
  border-bottom: 0;
}

.dhg-comparison-table tbody tr:hover th,
.dhg-comparison-table tbody tr:hover td,
.dhg-policy-table tbody tr:hover th,
.dhg-policy-table tbody tr:hover td {
  background: #fbfcfe;
}

.dhg-comparison-table a,
.dhg-policy-table a {
  color: #1477c8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dhg-comparison-table__amount {
  color: var(--dhg-ink);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dhg-comparison-table__unknown {
  color: #858b9c;
  font-style: italic;
  white-space: nowrap;
}

/* Legal document layout */
.dhg-legal-section {
  background: #f6f7fb;
}

.dhg-legal-shell {
  display: grid;
  grid-template-columns: minmax(225px, 285px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

.dhg-legal-shell > * {
  min-width: 0;
}

.dhg-legal-toc {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 1px solid var(--dhg-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 30, 56, 0.055);
}

.dhg-legal-toc__title,
.dhg-legal-toc > h2,
.dhg-legal-toc > h3 {
  margin-bottom: 14px;
  color: var(--dhg-ink);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dhg-legal-toc ul,
.dhg-legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dhg-legal-toc li + li {
  border-top: 1px solid #edf0f5;
}

.dhg-legal-toc a {
  position: relative;
  display: block;
  padding: 10px 0 10px 17px;
  color: #687084;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.45;
  text-decoration: none;
}

.dhg-legal-toc a::before {
  position: absolute;
  top: 16px;
  left: 1px;
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c6cbd7;
  content: "";
}

.dhg-legal-toc a:hover,
.dhg-legal-toc a[aria-current="true"] {
  color: #1477c8;
}

.dhg-legal-toc a[aria-current="true"]::before {
  background: var(--dhg-blue);
  box-shadow: 0 0 0 4px rgba(22, 143, 243, 0.11);
}

.dhg-legal-toc details {
  padding: 0;
}

.dhg-legal-toc summary,
details.dhg-legal-toc > summary {
  display: none;
  padding: 17px 20px;
  color: var(--dhg-ink);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.dhg-legal-toc summary::-webkit-details-marker,
details.dhg-legal-toc > summary::-webkit-details-marker {
  display: none;
}

.dhg-legal-content {
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--dhg-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24, 30, 56, 0.06);
}

.dhg-legal-content > :first-child {
  margin-top: 0;
}

.dhg-legal-content > :last-child {
  margin-bottom: 0;
}

.dhg-legal-content h2,
.dhg-legal-content h3,
.dhg-legal-content h4 {
  max-width: 32ch;
  color: var(--dhg-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 112px;
}

.dhg-legal-content h2 {
  margin: 2.15em 0 0.75em;
  padding-top: 1.15em;
  border-top: 1px solid #e5e8ef;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.dhg-legal-content h2:first-child,
.dhg-legal-content header + h2,
.dhg-legal-content .dhg-policy-intro + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.dhg-legal-content h3 {
  margin: 1.75em 0 0.65em;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.dhg-legal-content h4 {
  margin: 1.5em 0 0.6em;
  font-size: 1rem;
}

.dhg-legal-content p,
.dhg-legal-content li,
.dhg-legal-content dd {
  max-width: 76ch;
  font-size: 0.94rem;
  line-height: 1.78;
}

.dhg-legal-content p {
  margin-bottom: 18px;
}

.dhg-legal-content ul,
.dhg-legal-content ol {
  margin: 0 0 22px;
  padding-left: 1.35rem;
}

.dhg-legal-content li + li {
  margin-top: 8px;
}

.dhg-legal-content a {
  color: #1477c8;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dhg-legal-content blockquote {
  max-width: 74ch;
  margin: 27px 0;
  padding: 20px 23px;
  border-left: 4px solid var(--dhg-blue);
  border-radius: 0 13px 13px 0;
  background: #f1f7fd;
  color: #596276;
}

.dhg-legal-content blockquote > :last-child {
  margin-bottom: 0;
}

.dhg-policy-intro {
  margin-bottom: 35px;
  padding-bottom: 29px;
  border-bottom: 1px solid #e5e8ef;
}

.dhg-policy-intro > p:first-of-type {
  max-width: 66ch;
  color: #4f576c;
  font-size: 1.05rem;
  line-height: 1.75;
}

.dhg-policy-intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.dhg-policy-intro__meta li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f2f7;
  color: #6b7285;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.35;
}

.dhg-policy-intro__meta strong,
.dhg-policy-intro__meta time {
  color: var(--dhg-ink);
  font-weight: 850;
}

.dhg-policy-section {
  scroll-margin-top: 108px;
}

.dhg-policy-section:target {
  border-radius: 14px;
  outline: 4px solid rgba(22, 143, 243, 0.1);
  outline-offset: 9px;
}

/* Policy callouts */
.dhg-policy-callout {
  position: relative;
  max-width: 76ch;
  margin: 25px 0;
  padding: 20px 22px 20px 54px;
  border: 1px solid rgba(22, 143, 243, 0.18);
  border-radius: 14px;
  background: #eef7ff;
  color: #596276;
  font-size: 0.84rem;
  line-height: 1.65;
}

.dhg-policy-callout::before {
  position: absolute;
  top: 20px;
  left: 19px;
  display: grid;
  width: 24px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 143, 243, 0.15);
  color: #1477c8;
  content: "i";
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.dhg-policy-callout > :first-child {
  margin-top: 0;
}

.dhg-policy-callout > :last-child {
  margin-bottom: 0;
}

.dhg-policy-callout strong,
.dhg-policy-callout h3,
.dhg-policy-callout h4 {
  color: var(--dhg-ink);
}

.dhg-policy-callout--important {
  border-color: rgba(87, 67, 159, 0.2);
  background: #f5f2ff;
}

.dhg-policy-callout--important::before {
  background: rgba(87, 67, 159, 0.13);
  color: var(--dhg-royal);
  content: "!";
}

.dhg-policy-callout--caution {
  border-color: rgba(194, 127, 27, 0.22);
  background: #fff8eb;
}

.dhg-policy-callout--caution::before {
  background: rgba(194, 127, 27, 0.13);
  color: #9b6212;
  content: "!";
}

.dhg-policy-callout--contact {
  border-color: rgba(113, 146, 20, 0.24);
  background: #f5f9e7;
}

.dhg-policy-callout--contact::before {
  background: rgba(184, 220, 49, 0.25);
  color: #5d751a;
  content: "@";
}

/* Definitions and policy facts */
.dhg-definition-grid,
.dhg-policy-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  max-width: 920px;
  margin: 25px 0;
}

.dhg-definition-card,
.dhg-policy-fact-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--dhg-line);
  border-radius: 14px;
  background: #fff;
}

.dhg-definition-card dt,
.dhg-definition-card h3,
.dhg-policy-fact-card strong,
.dhg-policy-fact-card h3 {
  display: block;
  margin: 0 0 7px;
  color: var(--dhg-ink);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dhg-definition-card dd,
.dhg-definition-card p,
.dhg-policy-fact-card p,
.dhg-policy-fact-card span {
  display: block;
  margin: 0;
  color: #70778a;
  font-size: 0.76rem;
  line-height: 1.58;
}

.dhg-policy-fact-card {
  position: relative;
  padding-left: 52px;
  background: #fafbfd;
}

.dhg-policy-fact-card::before {
  position: absolute;
  top: 19px;
  left: 18px;
  display: grid;
  width: 23px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: #eaf5ff;
  color: #1477c8;
  content: "\2713";
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.dhg-policy-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 920px;
  margin-top: 30px;
  padding: 25px;
  border: 1px solid rgba(87, 67, 159, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 94% 10%, rgba(22, 143, 243, 0.1), transparent 31%),
    #f7f5ff;
}

.dhg-policy-contact h2,
.dhg-policy-contact h3 {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  color: var(--dhg-ink);
  font-size: 1.15rem;
}

.dhg-policy-contact p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.58;
}

.dhg-policy-contact .btn {
  margin: 0;
  white-space: nowrap;
}

.dhg-policy-footer {
  max-width: 76ch;
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid #e5e8ef;
  color: #7b8193;
  font-size: 0.74rem;
  line-height: 1.6;
}

/* Compact process cards used inside deal-page dark sections. */
.dhg-deal-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dhg-deal-steps li {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
}

.dhg-deal-steps span {
  display: inline-grid;
  width: 28px;
  aspect-ratio: 1;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 8px;
  background: rgba(184, 220, 49, 0.17);
  color: #d8ef79;
  font-size: 0.64rem;
  font-weight: 900;
}

.dhg-deal-steps h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.38;
}

.dhg-deal-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  line-height: 1.56;
}

/* Keyboard focus */
.dhg-deal-filter:focus-visible,
.dhg-deal-code button:focus-visible,
.dhg-deal-card a:focus-visible,
.dhg-caveat-panel a:focus-visible,
.dhg-legal-toc a:focus-visible,
.dhg-legal-toc summary:focus-visible,
.dhg-legal-content a:focus-visible,
.dhg-policy-contact a:focus-visible {
  outline: 3px solid rgba(22, 143, 243, 0.48);
  outline-offset: 3px;
}

@media (max-width: 1199.98px) {
  .dhg-deals-hero__grid,
  .dhg-legal-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 0.75fr);
    gap: 42px;
  }

  .dhg-deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dhg-legal-shell {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 991.98px) {
  .dhg-deals-hero,
  .dhg-legal-hero {
    padding-bottom: 84px;
  }

  .dhg-deals-hero__grid,
  .dhg-legal-hero__grid,
  .dhg-legal-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-deals-hero__visual,
  .dhg-legal-hero__visual {
    width: min(100%, 720px);
  }

  .dhg-deal-summary-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dhg-deal-summary-strip__grid > div:nth-child(3) {
    border-left: 0;
  }

  .dhg-deal-summary-strip__grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--dhg-line);
  }

  .dhg-legal-toc {
    position: static;
  }

  details.dhg-legal-toc {
    padding: 0;
  }

  .dhg-legal-toc summary,
  details.dhg-legal-toc > summary {
    display: block;
  }

  details.dhg-legal-toc > nav,
  .dhg-legal-toc details > nav,
  .dhg-legal-toc details > div {
    padding: 0 20px 18px;
  }

  details.dhg-legal-toc:not([open]) > nav,
  .dhg-legal-toc details:not([open]) > nav,
  .dhg-legal-toc details:not([open]) > div {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .dhg-deals-hero,
  .dhg-legal-hero {
    padding-bottom: 72px;
  }

  .dhg-deals-hero .dhg-breadcrumbs,
  .dhg-legal-hero .dhg-breadcrumbs {
    margin-bottom: 34px;
  }

  .dhg-deals-hero__grid,
  .dhg-legal-hero__grid,
  .dhg-legal-shell {
    gap: 32px;
  }

  .dhg-deal-grid {
    gap: 16px;
  }

  .dhg-deal-toolbar {
    display: block;
  }

  .dhg-deal-toolbar__status {
    margin-top: 14px;
  }

  .dhg-definition-grid,
  .dhg-policy-fact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-policy-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-policy-contact .btn {
    justify-self: start;
  }
}

@media (max-width: 575.98px) {
  .dhg-deals-hero__visual {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
    border-radius: 19px;
  }

  .dhg-legal-hero__visual {
    padding: 22px;
    border-radius: 19px;
  }

  .dhg-page-meta li {
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .dhg-deal-summary-strip__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-deal-summary-strip__grid > div + div,
  .dhg-deal-summary-strip__grid > div:nth-child(3) {
    border-top: 1px solid var(--dhg-line);
    border-left: 0;
  }

  .dhg-deal-summary-strip__grid > div {
    padding: 18px 20px;
  }

  .dhg-deal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-deal-card {
    padding: 23px 20px;
    border-radius: 17px;
  }

  .dhg-deal-card__top {
    display: block;
  }

  .dhg-deal-card__badge {
    margin-top: 12px;
  }

  .dhg-deal-card__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-deal-code {
    align-items: stretch;
    flex-direction: column;
  }

  .dhg-deal-code button {
    width: 100%;
  }

  .dhg-deal-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhg-caveat-panel {
    display: block;
    padding: 18px;
  }

  .dhg-caveat-panel__icon {
    margin-bottom: 11px;
  }

  .dhg-responsive-table,
  .dhg-responsive-table__scroll {
    border-radius: 13px;
  }

  .dhg-comparison-table,
  .dhg-policy-table {
    min-width: 700px;
  }

  .dhg-legal-toc {
    border-radius: 14px;
  }

  .dhg-legal-content {
    padding: 27px 20px;
    border-radius: 17px;
  }

  .dhg-legal-content p,
  .dhg-legal-content li,
  .dhg-legal-content dd {
    font-size: 0.9rem;
  }

  .dhg-policy-callout {
    padding: 50px 18px 18px;
  }

  .dhg-policy-callout::before {
    top: 17px;
    left: 18px;
  }

  .dhg-definition-card,
  .dhg-policy-fact-card {
    padding: 17px;
  }

  .dhg-policy-fact-card {
    padding-left: 48px;
  }

  .dhg-policy-fact-card::before {
    top: 17px;
    left: 16px;
  }

  .dhg-policy-contact {
    padding: 21px 18px;
  }

  .dhg-policy-contact .btn {
    width: 100%;
  }
}

@media (max-width: 389.98px) {
  .dhg-deals-hero__visual,
  .dhg-legal-hero__visual,
  .dhg-deal-card,
  .dhg-legal-content {
    padding-right: 17px;
    padding-left: 17px;
  }

  .dhg-deal-filter {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.69rem;
  }

  .dhg-deal-card__identity {
    align-items: flex-start;
  }

  .dhg-deal-card__logo,
  .dhg-deal-card__monogram {
    width: 48px;
  }

  .dhg-policy-callout,
  .dhg-policy-contact {
    padding-right: 15px;
    padding-left: 15px;
  }

  .dhg-policy-callout {
    padding-top: 49px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhg-deal-filter,
  .dhg-deal-card {
    transition: none;
  }

  .dhg-deal-card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .dhg-deal-card,
  .dhg-caveat-panel,
  .dhg-responsive-table,
  .dhg-responsive-table__scroll,
  .dhg-legal-toc,
  .dhg-legal-content,
  .dhg-policy-callout,
  .dhg-definition-card,
  .dhg-policy-fact-card,
  .dhg-policy-contact {
    border: 1px solid CanvasText;
  }

  .dhg-deal-card__features li::before,
  .dhg-policy-callout::before,
  .dhg-policy-fact-card::before {
    border: 1px solid ButtonText;
  }
}
