/* Dilly Privacy site, shared styles
   UI matches the marketing site (features.html / feature-internships.html):
   light theme, Quicksand, navy #293F95, bold sans headers, gradient-top cards. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #0d0d0d;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(41, 63, 149,0.08);
}
.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.nav-home:hover { opacity: 0.78; }
.nav-home img {
  height: clamp(48px, 11vw, 76px);
  width: auto;
  max-width: min(260px, 78vw);
  object-fit: contain;
}
.nav-home .nav-tag {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #293F95;
  opacity: 0.55;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.5vw, 1.4rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(0, 27, 68, 0.88);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #001b44;
  background: rgba(0, 40, 104, 0.06);
}
.nav-links a[aria-current="page"] { font-weight: 700; }

@media (max-width: 720px) {
  .nav { gap: 0.6rem; padding: 0.85rem 1rem; }
  .nav-links { gap: 0.5rem; }
  .nav-links a {
    font-size: 0.72rem;
    color: #293F95;
    font-weight: 700;
  }
  .nav-home .nav-tag { display: none; }
}

/* ── HERO (page header) ── */
.page-hero {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #293F95;
  opacity: 0.55;
  margin-bottom: 1.1rem;
}
.page-hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #0d0d0d;
  margin-bottom: 1.2rem;
}
.page-hero h1 em {
  font-style: normal;
  color: #293F95;
  font-weight: 800;
}
.page-hero .lead {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: #293F95;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.page-hero .subhead {
  font-size: clamp(0.93rem, 1.3vw, 1.05rem);
  line-height: 1.8;
  color: #555;
  max-width: 56ch;
  margin: 0 auto;
}

/* ── SECTION ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.section-alt {
  background: #f8f9fc;
}
.section h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0d0d0d;
  margin-bottom: 0.9rem;
}
.section h2 em {
  font-style: normal;
  color: #293F95;
}
.section .lede {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #555;
  max-width: 60ch;
}
.section-eyebrow {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #293F95;
  opacity: 0.5;
  margin-bottom: 0.8rem;
  display: block;
}

/* ── BUTTONS ── */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  background: #293F95;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn-solid:hover {
  opacity: 0.87;
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  background: transparent;
  color: #293F95;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid rgba(41, 63, 149,0.2);
  transition: border-color 0.2s ease;
}
.btn-ghost:hover { border-color: #293F95; }

/* ── INLINE LINK ── */
.ilink {
  color: #293F95;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(41, 63, 149,0.3);
  text-underline-offset: 3px;
}
.ilink:hover { text-decoration-color: #293F95; }

/* ── PAGE-NEXT (cross-link cards at the bottom of subpages) ── */
.page-next {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.page-next a {
  display: block;
  padding: 1.6rem 1.8rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(41, 63, 149,0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.page-next a:hover {
  border-color: rgba(41, 63, 149,0.24);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(41, 63, 149,0.06);
}
.page-next .label {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #293F95;
  opacity: 0.55;
  margin-bottom: 0.5rem;
}
.page-next .title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  margin-bottom: 0.4rem;
}
.page-next .desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.65;
}

/* ── FOOTER ── */
.foot {
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid rgba(41, 63, 149,0.08);
  color: #999;
  font-size: 0.78rem;
  line-height: 1.7;
}
.foot a {
  color: #293F95;
  margin: 0 0.5rem;
  font-weight: 600;
}
.foot a:hover { opacity: 0.78; }

/* Split nav: logo links to main site, tag links to subsite home */
.nav-home-logo, .nav-home-tag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.nav-home-logo:hover, .nav-home-tag:hover { opacity: 0.78; }

/* Truly-centered nav links: grid with 1fr | auto | 1fr columns */
.nav {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav .nav-home { grid-column: 1; justify-self: start; }
.nav .nav-links { grid-column: 2; justify-self: center; margin: 0 !important; }
