/* ── Legal / Policy Pages — Readers Bookshop ─────────── */

.legal-hero,
.legal-body {
  font-family: "DM Sans", system-ui, sans-serif;
}

.legal-body {
  background: #f0ede8;
  padding: clamp(2.5rem, 5vw, 4rem) var(--layout-gutter, clamp(0.9375rem, 2.85vw, 1.875rem)) clamp(3.5rem, 7vw, 5rem);
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.legal-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #152238 0%, #1e3255 55%, #0e1a2e 100%);
  padding: clamp(3rem, 7vw, 5.5rem) var(--layout-gutter, clamp(0.9375rem, 2.85vw, 1.875rem));
  text-align: center;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 100% 60%, rgba(196,30,58,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 80% at 0% 0%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: rgba(196,30,58,0.18);
  border: 1px solid rgba(196,30,58,0.3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f97b8e;
  margin-bottom: 1.25rem;
}

.legal-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1rem;
}

.legal-hero__title em {
  font-style: italic;
  color: #f4c2c9;
}

.legal-hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin: 0 auto;
  max-width: 620px;
}

.legal-hero__updated {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════════════════════
   DOCUMENT LAYOUT
══════════════════════════════════════════════════════ */
.legal-body__grid {
  max-width: 820px;
  margin: 0 auto;
}

.legal-body__grid--with-sidebar {
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .legal-body__grid--with-sidebar {
    grid-template-columns: 1fr 280px;
  }
}

.legal-document {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(21,34,56,0.06);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.legal-section + .legal-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ebe6df;
}

.legal-section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #152238;
  margin: 0 0 0.85rem;
}

.legal-section__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #3d4a5c;
}

.legal-section__body p {
  margin: 0 0 0.85rem;
}

.legal-section__body p:last-child {
  margin-bottom: 0;
}

.legal-section__body strong {
  color: #152238;
  font-weight: 700;
}

.legal-section__body a {
  color: #c41e3a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section__body a:hover {
  color: #9a1830;
}

/* ── Sidebar ─────────────────────────────────────────── */
.legal-sidebar__card {
  background: #152238;
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
  position: sticky;
  top: 1.5rem;
}

.legal-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(196,30,58,0.25);
  color: #f97b8e;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.legal-sidebar__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.legal-sidebar__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.25rem;
}

.legal-sidebar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: #c41e3a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.legal-sidebar__cta:hover {
  background: #a81832;
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   SITE MAP
══════════════════════════════════════════════════════ */
.sitemap-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.sitemap-group {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(21,34,56,0.05);
  padding: 1.35rem 1.35rem 1.15rem;
}

.sitemap-group__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #152238;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #c41e3a;
}

.sitemap-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-group__list li + li {
  margin-top: 0.35rem;
}

.sitemap-group__list a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #3d4a5c;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sitemap-group__list a:hover {
  color: #c41e3a;
}
