/* ==========================================================================
   Flightsaverz — legal pages (privacy, terms, cookies)
   ========================================================================== */

.legal-head {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px var(--gutter);
}

.legal-head__inner { max-width: 820px; }

.legal-head__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 12px 0;
  color: var(--navy);
}

.legal-head__lede {
  margin: 0;
  max-width: 680px;
  font-size: 17px;
  color: var(--ink);
}

.legal-head__date { margin-top: 16px; font-size: 13px; color: var(--muted); }

.legal-body {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
}

/* --- table of contents --------------------------------------------------- */

.toc {
  position: sticky;
  top: 110px;
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
}

.toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.toc__nav a { transition: color .2s var(--ease), transform .2s var(--ease); }
.toc__nav a:hover { transform: translateX(2px); }

/* --- prose --------------------------------------------------------------- */

.prose {
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  line-height: 1.6;
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 44px 0 14px;
  scroll-margin-top: 120px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.005em;
  color: var(--navy);
  margin: 28px 0 10px;
}

.prose p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.7;
}

.prose li { margin-bottom: 8px; }

.prose strong { color: var(--navy); }

/* --- cookie category cards ----------------------------------------------- */

.cookie-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.cookie-card {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 20px;
  scroll-margin-top: 120px;
  transition: transform .25s var(--ease);
}

.cookie-card:hover { transform: translateY(-3px); }

.cookie-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cookie-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--white);
  background: var(--blue);
  flex: none;
}

.cookie-card__icon--red { background: var(--red); }
.cookie-card__icon--navy { background: var(--navy); }

.cookie-card__name { font-size: 15px; }

.cookie-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* --- contact strip ------------------------------------------------------- */

.contact-strip {
  margin-top: 44px;
  padding: 22px 24px;
  background: var(--cream);
  border-radius: var(--r-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-strip__title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
}

.contact-strip__note { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .cookie-cards { grid-template-columns: 1fr; }
  .legal-body { padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .prose { padding: 28px 22px; }
  .legal-head { padding: 24px var(--gutter); }
}
