/* Blog list, blog detail, contact — shared redesign */
body.dg-inner-page,
.dg-page {
  --ink: #0a2540;
  --muted: #5a6b7d;
  --blue: #0063fd;
  --sky: #00bfff;
  --mid: #0e4a8c;
}

body.dg-inner-page .side_menu_cls,
body.dg-inner-page .overlay_side_menu_cls,
body.dg-inner-page .menu_rght_arrw,
body.dg-inner-page .identity-scroll-left,
body.dg-inner-page .backtotp_arrw_cls,
body.dg-inner-page .digital_mrketng_sidebr_cls {
  display: none !important;
}

body.dg-inner-page .site-footer {
  margin-top: 0;
}

body.dg-inner-page .dg-page h1::before,
body.dg-inner-page .dg-page h2::before,
body.dg-inner-page .dg-page h3::before {
  display: none !important;
  content: none !important;
}

.dg-page {
  font-family: 'Metropolis-Light', sans-serif;
  color: var(--ink);
  overflow-x: clip;
}

.dg-page h1,
.dg-page h2,
.dg-page h3 {
  font-family: 'Metropolis-Bold', sans-serif;
  letter-spacing: -0.02em;
}

.dg-page__eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.dg-page__title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}

.dg-page__lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Shared page hero */
.dg-page-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.dg-page-hero--tall {
  min-height: calc(100vh - 72px);
  align-items: flex-end;
}

.dg-page-hero__abstract {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(0, 99, 253, 0.4), transparent 60%),
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(0, 191, 255, 0.22), transparent 55%),
    linear-gradient(135deg, #071828 0%, #0a2540 45%, #0e3a66 100%);
}

.dg-page-hero__abstract::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.dg-page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 24, 40, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.dg-page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.dg-page-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  opacity: 1;
  animation: dgPageFadeUp 0.7s ease 0.12s forwards;
}

.dg-page-hero__brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.dg-page-hero__brand span {
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.dg-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1.15;
  max-width: 18ch;
  margin: 0 0 14px;
  color: #fff;
  opacity: 1;
  animation: dgPageFadeUp 0.7s ease 0.3s forwards;
}

.page-contact .dg-page-hero--tall {
  min-height: 520px;
  height: auto;
  align-items: center;
}

.page-contact .dg-page-hero__inner {
  padding-top: 48px;
  padding-bottom: 48px;
}

.page-contact .dg-contact-hero-visual {
  width: min(340px, 34vw);
  height: min(340px, 34vw);
}

.page-contact .dg-page-hero__sub {
  max-width: 52ch;
}

.page-contact .dg-page-hero__abstract::before {
  animation: dgContactGridDrift 28s linear infinite;
}

.page-contact .dg-page-hero__meta,
.page-contact .dg-page-hero h1,
.page-contact .dg-page-hero__sub,
.page-contact .dg-page-hero__cta {
  opacity: 0;
}

.page-contact .dg-page-hero__meta {
  animation: dgContactFadeUp 0.75s ease 0.15s forwards;
}

.page-contact .dg-page-hero h1 {
  animation: dgContactFadeUp 0.8s ease 0.32s forwards;
}

.page-contact .dg-page-hero__sub {
  animation: dgContactFadeUp 0.8s ease 0.48s forwards;
}

.page-contact .dg-page-hero__cta {
  animation: dgContactFadeUp 0.8s ease 0.64s forwards, dgContactCtaPulse 2.8s ease 1.6s infinite;
}

.dg-contact-hero-visual {
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.dg-contact-hero-visual__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.dg-contact-hero-visual__orb--a {
  inset: 12%;
  background: radial-gradient(circle, rgba(0, 99, 253, 0.45) 0%, rgba(0, 191, 255, 0.08) 55%, transparent 70%);
  animation: dgContactOrb 8s ease-in-out infinite;
}

.dg-contact-hero-visual__orb--b {
  width: 38%;
  height: 38%;
  right: 6%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.5) 0%, transparent 70%);
  animation: dgContactOrb 10s ease-in-out 1.2s infinite reverse;
}

.dg-contact-hero-visual__ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(0, 191, 255, 0.28);
  border-radius: 50%;
  animation: dgContactSpin 22s linear infinite;
}

.dg-contact-hero-visual__ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: dgContactSpin 16s linear infinite reverse;
}

.dg-contact-hero-visual__icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #7ecbff;
  background: rgba(7, 24, 40, 0.55);
  border: 1px solid rgba(0, 191, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 99, 253, 0.22);
}

.dg-contact-hero-visual__icon svg {
  width: 34px;
  height: 34px;
}

.dg-contact-hero-visual__icon--mail {
  top: 18%;
  left: 12%;
  animation: dgContactFloat 4.5s ease-in-out infinite;
}

.dg-contact-hero-visual__icon--phone {
  top: 42%;
  right: 8%;
  color: #4da3ff;
  animation: dgContactFloat 5.2s ease-in-out 0.6s infinite;
}

.dg-contact-hero-visual__icon--chat {
  bottom: 16%;
  left: 28%;
  color: #00bfff;
  animation: dgContactFloat 4.8s ease-in-out 1.1s infinite;
}

@keyframes dgContactFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dgContactGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

@keyframes dgContactOrb {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.85; }
  50% { transform: scale(1.12) translate(8px, -10px); opacity: 1; }
}

@keyframes dgContactSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dgContactFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes dgContactCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 99, 253, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(0, 99, 253, 0); }
}

@media (max-width: 900px) {
  .page-contact .dg-page-hero--tall {
    min-height: 420px;
  }

  .dg-contact-hero-visual {
    right: -8%;
    width: 240px;
    height: 240px;
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .dg-page-hero__abstract::before,
  .page-contact .dg-page-hero__meta,
  .page-contact .dg-page-hero h1,
  .page-contact .dg-page-hero__sub,
  .page-contact .dg-page-hero__cta,
  .dg-contact-hero-visual__orb,
  .dg-contact-hero-visual__ring,
  .dg-contact-hero-visual__ring::after,
  .dg-contact-hero-visual__icon {
    animation: none !important;
  }
  .page-contact .dg-page-hero__meta,
  .page-contact .dg-page-hero h1,
  .page-contact .dg-page-hero__sub,
  .page-contact .dg-page-hero__cta {
    opacity: 1;
  }
}

.dg-page-hero__sub {
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
  opacity: 1;
  animation: dgPageFadeUp 0.7s ease 0.45s forwards;
}

.dg-page-hero__sub:last-child {
  margin-bottom: 0;
}

.dg-page-hero__meta {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
  opacity: 1;
  animation: dgPageFadeUp 0.7s ease 0.25s forwards;
}

.dg-page-hero__cta {
  display: inline-flex;
  padding: 14px 28px;
  background: var(--blue);
  color: #fff !important;
  text-decoration: none !important;
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  opacity: 1;
  animation: dgPageFadeUp 0.7s ease 0.6s forwards;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.dg-page-hero__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Shared CTA band */
.dg-page-cta {
  background: linear-gradient(135deg, var(--ink) 0%, var(--mid) 100%);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dg-page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 191, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.dg-page-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.dg-page-cta__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.dg-page-cta__brand img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.dg-page-cta__brand span {
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 1.35rem;
  color: #fff;
}

.dg-page-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.dg-page-cta .sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 32px;
}

.dg-page-cta__btn {
  display: inline-flex;
  padding: 16px 32px;
  background: var(--sky);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.dg-page-cta__btn:hover {
  background: #fff;
  transform: translateY(-2px);
  color: var(--ink) !important;
}

/* ===== Blog list ===== */
.dg-blog-list {
  padding: 88px 0 100px;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(0, 99, 253, 0.07), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.dg-blog-list__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.dg-blog-list__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.dg-blog-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.dg-blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dg-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 99, 253, 0.28);
  border-left-color: var(--sky);
  box-shadow: 0 18px 40px rgba(0, 99, 253, 0.12);
}

.dg-blog-card__media {
  display: none;
}

.dg-blog-card__date {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.dg-blog-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--ink);
}

.dg-blog-card h3::before {
  display: none;
}

.dg-blog-card p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
  flex: 1;
}

.dg-blog-card__more {
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.25s ease;
}

.dg-blog-card:hover .dg-blog-card__more {
  color: var(--sky);
}

/* ===== Blog detail ===== */
.dg-blog-article {
  padding: 72px 0 40px;
  background: #fff;
}

.dg-blog-article__inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.dg-blog-article__body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.dg-blog-article__body > *:first-child {
  margin-top: 0;
}

.dg-blog-article__body h2 {
  font-size: 1.45rem;
  color: var(--ink);
  margin: 2.2em 0 0.7em;
  line-height: 1.25;
}

.dg-blog-article__body h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
  line-height: 1.3;
}

.page-blog .dg-page-hero h1,
.page-blog-post .dg-page-hero h1 {
  max-width: 16em;
}

.dg-blog-article__body p {
  margin: 0 0 1.15em;
}

.dg-blog-article__body ul,
.dg-blog-article__body ol {
  margin: 0 0 1.35em;
  padding-left: 1.25em;
}

.dg-blog-article__body li {
  margin-bottom: 0.45em;
}

.dg-blog-article__body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dg-blog-article__body figure,
.dg-blog-article__body img {
  max-width: 100%;
  height: auto;
  margin: 0 0 1.5em;
  display: block;
}

.dg-blog-article__body .crp_related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(10, 37, 64, 0.1);
}

.dg-blog-article__body .crp_related h3 {
  font-size: 1.1rem;
  margin: 0 0 16px;
  color: var(--ink);
}

.dg-blog-article__body .crp_related ul {
  list-style: none;
  padding: 0;
}

.dg-blog-article__body .crp_related li {
  margin-bottom: 10px;
}

.dg-blog-related {
  padding: 56px 0 80px;
  background: #f4f8fb;
}

.dg-blog-related__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.dg-blog-related__head {
  text-align: center;
  margin-bottom: 40px;
}

.dg-blog-back {
  display: inline-flex;
  margin-bottom: 28px;
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue) !important;
  text-decoration: none !important;
}

/* ===== Contact ===== */
.dg-contact-main {
  padding: 96px 0 100px;
  background:
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(0, 99, 253, 0.07), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.dg-contact-main__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.dg-contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.dg-contact-info > p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 36px;
}

.dg-contact-block {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
}

.dg-contact-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dg-contact-block h3 {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}

.dg-contact-block p,
.dg-contact-block a {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}

.dg-contact-block a:hover {
  color: var(--blue);
}

.dg-contact-form {
  background: #fff;
  padding: 40px 36px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 16px 48px rgba(10, 37, 64, 0.06);
}

.dg-contact-form h2 {
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.dg-contact-form > .lead {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.dg-contact-form label {
  display: block;
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}

.dg-contact-form .field {
  margin-bottom: 18px;
}

.dg-contact-form input,
.dg-contact-form textarea,
.dg-contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(10, 37, 64, 0.18);
  border-radius: 4px;
  font-family: 'Metropolis-Light', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dg-contact-form input:focus,
.dg-contact-form textarea:focus,
.dg-contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 99, 253, 0.12);
  background: #fff;
}

.dg-contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.dg-contact-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dg-contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.dg-contact-form button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.dg-contact-help {
  padding: 88px 0 100px;
  background: #f4f8fb;
}

.dg-contact-help__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.dg-contact-help__head {
  text-align: center;
  margin: 0 auto 48px;
}

.dg-contact-help__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.dg-contact-help__item {
  padding: 8px 4px 28px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.dg-contact-help__item h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.dg-contact-help__item p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 16px;
}

.dg-contact-help__item a {
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue) !important;
  text-decoration: none !important;
}

@keyframes dgPageFadeUp {
  from { opacity: 1; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .dg-blog-list__grid {
    grid-template-columns: 1fr 1fr;
  }

  .dg-contact-main__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dg-contact-help__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dg-page-hero,
  .dg-page-hero--tall {
    min-height: 48vh;
    align-items: center;
  }

  .dg-page-hero__inner {
    padding: 56px 20px 48px;
  }

  .dg-blog-list__grid {
    grid-template-columns: 1fr;
  }

  .dg-contact-form {
    padding: 28px 20px;
  }

  .dg-contact-form .row2 {
    grid-template-columns: 1fr;
  }

  .dg-page-cta {
    padding: 72px 0;
  }
}

/* ===== Legal pages ===== */
.page-legal .dg-page-hero--legal {
  min-height: 280px;
  align-items: center;
}

.page-legal .dg-page-hero__inner {
  padding: 56px 24px;
}

.page-legal .dg-page-hero h1 {
  max-width: 16em;
}

.dg-legal {
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(0, 99, 253, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  padding: 64px 0 96px;
}

.dg-legal__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px 56px;
  align-items: start;
}

.dg-legal__nav {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 20px 16px 18px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.04);
}

.dg-legal__nav-title {
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
  list-style: none;
  cursor: default;
}

.dg-legal__nav-title::-webkit-details-marker,
.dg-legal__nav-title::marker {
  display: none;
  content: none;
}

@media (min-width: 901px) {
  .dg-legal__nav-title {
    pointer-events: none;
  }
}

.dg-legal__nav a {
  display: block;
  padding: 7px 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.35;
  border-radius: 4px;
}

.dg-legal__nav a:hover {
  color: var(--blue);
  background: rgba(0, 99, 253, 0.06);
}

.dg-legal__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.dg-legal__switch a {
  display: inline-flex;
  padding: 8px 14px;
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ink) !important;
  border: 1px solid rgba(10, 37, 64, 0.14);
  border-radius: 4px;
}

.dg-legal__switch a.is-current,
.dg-legal__switch a:hover {
  color: #fff !important;
  background: var(--blue);
  border-color: var(--blue);
}

.dg-legal__body {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 16px 48px rgba(10, 37, 64, 0.05);
  padding: 40px 44px 48px;
}

.dg-legal__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  font-family: 'Metropolis-Bold', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 99, 253, 0.08);
}

.dg-legal__intro {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.dg-legal__intro p:last-child {
  margin-bottom: 0;
}

.dg-legal__body > h2:first-of-type {
  margin-top: 0;
}

.dg-legal__note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.4em;
}

.dg-legal__cookie {
  margin: 0 0 1.1em;
  padding: 14px 16px;
  background: #f7fafc;
  border-left: 3px solid var(--blue);
}

.dg-legal__cookie strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.dg-legal__cookie span {
  display: block;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
}

.dg-legal__body h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 2.1em 0 0.65em;
  padding-top: 8px;
  scroll-margin-top: 96px;
}

.dg-legal__body h3 {
  font-size: 1.08rem;
  color: var(--ink);
  margin: 1.5em 0 0.5em;
}

.dg-legal__body h4 {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 1.3em 0 0.4em;
}

.dg-legal__body p,
.dg-legal__body li {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.dg-legal__body p {
  margin: 0 0 1em;
}

.dg-legal__body ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.dg-legal__body li {
  margin-bottom: 0.4em;
}

.dg-legal__body a {
  color: var(--blue);
}

.dg-legal__contact {
  margin-top: 36px;
  padding: 24px 26px;
  background: #f4f8fb;
  border-left: 3px solid var(--blue);
}

.dg-legal__contact p {
  margin: 0;
}

@media (max-width: 900px) {
  .dg-legal__wrap {
    grid-template-columns: 1fr;
  }

  .dg-legal__nav {
    position: relative;
    top: 0;
    max-height: none;
    border-radius: 12px;
  }

  .dg-legal__nav-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    cursor: pointer;
  }

  .dg-legal__nav-title::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .dg-legal__nav[open] .dg-legal__nav-title::after {
    transform: rotate(225deg);
    margin-top: 6px;
  }

  .dg-legal__nav[open] .dg-legal__nav-title {
    margin-bottom: 14px;
  }

  .dg-legal__body {
    padding: 28px 22px 36px;
  }
}
