/* =============================================================
   legal.css — shared styles for /terms, /privacy, /faq
   ============================================================= */

:root {
  --navy:      #1a3a5c;
  --navy-dark: #122840;
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --blue-600:  #2563eb;
  --radius:    10px;
  --transition: 0.18s ease;
  --grid-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
}

/* ── Hero ── */
.legal-hero {
  position: relative;
  background: var(--navy-dark);
  padding: 56px 0;
  text-align: center;
  overflow: hidden;
}
.legal-hero-bg { position: absolute; inset: 0; background-image: var(--grid-svg); pointer-events: none; }
.legal-hero-inner { position: relative; z-index: 1; }
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.legal-hero-date {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.legal-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}
.legal-hero-sub a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}

/* ── Document body ── */
.legal-body {
  padding: 64px 0 80px;
  background: var(--white);
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Sections ── */
.legal-section {
  margin-bottom: 40px;
}
.legal-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.legal-section p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 10px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
  padding-left: 22px;
  margin: 8px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-section a {
  color: var(--blue-600);
  text-decoration: none;
}
.legal-section a:hover { text-decoration: underline; }
.legal-section strong { font-weight: 600; color: var(--gray-700); }

/* Cookie prefs inline button */
.cookie-prefs-inline {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue-600);
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  line-height: inherit;
}
.cookie-prefs-inline:hover { text-decoration: none; }

/* ── FAQ accordion ── */
.faq-list {
  border-top: 1px solid var(--gray-200);
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--navy);
  transition: transform var(--transition);
}
.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
  padding-bottom: 20px;
  display: none;
}
.faq-answer.open { display: block; }

/* ── FAQ CTA band ── */
.faq-cta {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 64px 0;
  text-align: center;
}
.faq-cta h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.faq-cta p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 28px;
}
