/* Toolavio editorial pages — premium legal and trust centre */

.legal-premium {
  min-height: 70vh;
  overflow: clip;
  background:
    radial-gradient(circle at 18% 4%, rgba(75, 130, 255, .16), transparent 31rem),
    radial-gradient(circle at 88% 18%, rgba(24, 133, 90, .08), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0, #fff 46rem);
}

.legal-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 36px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.legal-hero-glow {
  position: absolute;
  z-index: -1;
  inset: 24px 50% auto auto;
  width: 440px;
  height: 260px;
  transform: translateX(50%);
  border-radius: 50%;
  background: rgba(75, 130, 255, .12);
  filter: blur(54px);
}

.legal-hero .eyebrow,
.legal-section .eyebrow,
.legal-contact .eyebrow,
.legal-feature .eyebrow,
.legal-callout .eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(44px, 8vw, 84px);
  line-height: .98;
  letter-spacing: -.065em;
}

.legal-lede {
  max-width: 760px;
  margin: 26px auto 0;
  color: #526477;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.62;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.legal-meta time,
.legal-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(180, 195, 214, .75);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.legal-meta a:hover { color: var(--blue); border-color: rgba(37, 99, 235, .42); }

.legal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 42px auto 0;
}

.legal-metrics article {
  min-height: 116px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 20px;
  border: 1px solid rgba(190, 204, 222, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 52px rgba(18, 42, 72, .08);
  backdrop-filter: blur(14px);
}

.legal-metrics strong {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.legal-metrics span { color: #55677b; font-size: 13px; font-weight: 820; }

.legal-page-nav {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  margin: 34px auto 0;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid rgba(190, 204, 222, .78);
  border-radius: 15px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(18, 42, 72, .08);
  scrollbar-width: none;
}

.legal-page-nav::-webkit-scrollbar { display: none; }
.legal-page-nav a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 10px;
  color: #56687b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.legal-page-nav a:hover { color: var(--navy); background: #f1f5fb; }
.legal-page-nav a.is-current { color: #fff; background: var(--navy); box-shadow: 0 7px 18px rgba(10, 27, 49, .2); }

.legal-content {
  width: min(1060px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 20px 0 clamp(72px, 10vw, 124px);
}

.legal-feature,
.legal-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin: 28px 0 72px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(190, 204, 222, .76);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f3f7ff);
  box-shadow: 0 28px 78px rgba(18, 42, 72, .1);
}

.legal-feature h2,
.legal-callout h2,
.legal-section-heading h2,
.legal-contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.legal-feature p:not(.eyebrow),
.legal-callout p:not(.eyebrow),
.legal-section-heading p:not(.eyebrow),
.legal-contact p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: #5b6d80;
  font-size: 17px;
  line-height: 1.72;
}

.legal-feature-mark {
  width: clamp(88px, 13vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-bright), #1749bd);
  box-shadow: 0 24px 52px rgba(37, 99, 235, .28);
  font-size: clamp(46px, 8vw, 72px);
  font-weight: 950;
  letter-spacing: -.06em;
  transform: rotate(-4deg);
}
.legal-code-mark { font-size: clamp(25px, 5vw, 42px); letter-spacing: -.08em; transform: none; }

.legal-callout { grid-template-columns: auto minmax(0, 1fr); }
.legal-callout-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #23a974, #147550);
  box-shadow: 0 18px 38px rgba(24, 133, 90, .24);
  font-size: 34px;
  font-weight: 950;
}
.legal-callout-warm { background: linear-gradient(145deg, #fff, #fff8ea); }
.legal-callout-warm .legal-callout-icon { background: linear-gradient(145deg, #ffb23e, #d77a00); box-shadow: 0 18px 38px rgba(215, 122, 0, .2); }

.legal-section { margin-top: 72px; }
.legal-section-heading { max-width: 780px; margin-bottom: 28px; }

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.legal-card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.legal-card-grid > article,
.legal-license-grid > article {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(194, 206, 222, .82);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(18, 42, 72, .07);
}

.legal-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  color: var(--blue);
  background: #edf3ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.legal-card-grid h3,
.legal-license-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.legal-card-grid p,
.legal-license-grid p {
  margin: 13px 0 0;
  color: #607184;
  line-height: 1.7;
}
.legal-card-grid a,
.legal-license-grid a { color: var(--blue); font-weight: 760; }

.legal-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  padding: 24px;
  border-top: 3px solid var(--blue);
  border-radius: 4px 4px 20px 20px;
  background: #f7f9fc;
}
.legal-steps li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.legal-steps strong { display: block; padding-top: 5px; font-size: 16px; }
.legal-steps p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.legal-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.legal-license-grid .license-pill {
  display: inline-flex;
  margin-top: 17px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #315fae;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 850;
}
.license-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.license-actions a {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid #cdd9e8;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
}
.license-actions a:hover { border-color: var(--blue); background: #f5f8ff; }

.legal-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 78px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #091a30, #153c68);
  box-shadow: 0 30px 70px rgba(10, 27, 49, .2);
}
.legal-contact .eyebrow { color: #91b8ff; }
.legal-contact h2 { color: #fff; }
.legal-contact p:not(.eyebrow) { color: #b9c9dc; }
.legal-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  border-radius: 13px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}
.legal-contact-link:hover { color: var(--blue); transform: translateY(-1px); }

[dir="rtl"] .legal-feature-mark { transform: rotate(4deg); }
[dir="rtl"] .legal-code-mark { transform: none; }

@media (max-width: 800px) {
  .legal-hero { width: min(100% - 28px, 680px); padding-top: 52px; }
  .legal-content { width: min(100% - 28px, 680px); }
  .legal-metrics { grid-template-columns: 1fr; max-width: 440px; }
  .legal-metrics article { min-height: 92px; grid-template-columns: auto 1fr; align-items: center; justify-content: start; text-align: start; }
  .legal-page-nav { display: flex; width: 100%; justify-content: flex-start; }
  .legal-feature,
  .legal-callout,
  .legal-contact { grid-template-columns: 1fr; }
  .legal-feature-mark { order: -1; width: 84px; border-radius: 22px; }
  .legal-callout-icon { width: 60px; height: 60px; border-radius: 18px; font-size: 28px; }
  .legal-card-grid,
  .legal-card-grid-two,
  .legal-steps,
  .legal-license-grid { grid-template-columns: 1fr; }
  .legal-contact-link { justify-content: center; width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 460px) {
  .legal-hero { padding-top: 40px; }
  .legal-hero h1 { font-size: clamp(39px, 15vw, 58px); }
  .legal-lede { font-size: 17px; }
  .legal-feature,
  .legal-callout,
  .legal-card-grid > article,
  .legal-license-grid > article,
  .legal-contact { padding: 24px; border-radius: 22px; }
  .legal-metrics article { padding: 17px 20px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-contact-link { transition: none; }
}
