/* Data365 Competitor Feature Enhancements */
#why-trust, #how-it-works, #service-areas, #built-for-legal, #free-resources,
#example-use-cases, #engagement-timeline, #what-you-receive, #security-posture, #next-steps {
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;       /* reduced from 1.5rem */
  margin-top: 1.5rem;
}

/* Remove excess space at top of cards */
.card > :first-child {
  margin-top: 0;
}

/* Specifically tighten Next Steps heading */
#next-steps h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

#service-areas div {
  background: #fafafa;
}

#next-steps a {
  font-weight: bold;
}

/* --- Start Intake (navcta) text color override --- */
.navcta{
  color:#000000 !important;
}
.navcta:hover,
.navcta:focus,
.navcta:active{
  color:#000000 !important;
  text-decoration:none;
}

.location-line { font-size: 0.9em; white-space: nowrap; }

/* iPhone: allow the location line to wrap instead of forcing horizontal scroll */
@media (max-width: 430px){
  .location-line{ white-space: normal; }
}

/* Responsive YouTube embeds */
.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}
.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Footer compacting (v1) === */
footer.site{
  padding-top: 10px;
  padding-bottom: 10px;
}
footer.site .wrap{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
footer.site p{
  margin: 4px 0 !important;
  line-height: 1.25;
}
footer.site .small,
footer.site .small.muted{
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  line-height: 1.2;
}
footer.site .d365-disclaimer{
  margin: 0 !important;
}
footer.site br{
  line-height: 1.1;
}

/* === Legal-website reading layout (site-wide) === */
.site-main{
  padding: 28px 0 56px;
}

.legal-prose{
  max-width: 920px;
}

.legal-prose h1{ margin: 0 0 .75rem; letter-spacing: .1px; }
.legal-prose h2{ margin: 2rem 0 .75rem; }
.legal-prose h3{ margin: 1.5rem 0 .5rem; }
.legal-prose p,
.legal-prose li{ line-height: 1.65; }
.legal-prose p{ margin: .85rem 0; }

.legal-prose a{
  color: var(--accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: from-font;
}
.legal-prose a:hover{
  text-decoration-thickness: 2px;
}
.legal-prose a:visited{
  opacity: .92;
}
.legal-prose a:focus-visible{
  outline: 2px solid rgba(99,91,255,.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.legal-prose .resource-list,
.legal-prose ul.resource-list{
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}
.legal-prose .resource-list li{
  padding: .65rem .75rem;
  border: 1px solid var(--border, rgba(15,23,42,.12));
  border-radius: 12px;
  margin: .6rem 0;
  background: var(--card, rgba(255,255,255,.75));
}
.legal-prose .resource-list li a{
  font-weight: 700;
}

/* WCAG: Skip link */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  padding:0.6rem 0.9rem;
  background:#fff;
  color:#000;
  z-index:9999;
  border:2px solid currentColor;
  border-radius:0.5rem;
}
.skip-link:focus{
  left:0.75rem;
  top:0.75rem;
}

.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}