/* ============================================
   footer-pages.css — Shared styles for all
   footer linked pages (Privacy, Terms,
   Cookies, Help Centre, Refund Policy)
   Maggie Communications
   ============================================ */

/* ── Page wrapper ── */
.fp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Page hero banner ── */
.fp-hero {
  background: var(--black);
  padding: 7rem 6% 4rem;
  position: relative;
  overflow: hidden;
}

.fp-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,95,0,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.fp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.fp-breadcrumb a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s;
}

.fp-breadcrumb a:hover { opacity: 0.75; }

.fp-breadcrumb span { color: rgba(255,255,255,0.25); }

.fp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: none;
}

.fp-hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.fp-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  line-height: 1.6;
}

.fp-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.fp-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.fp-meta-item strong { color: rgba(255,255,255,0.7); }

/* ── Main content area ── */
.fp-content {
  flex: 1;
  padding: 4rem 6%;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ── Table of Contents ── */
.fp-toc {
  background: var(--orange-pale);
  border: 1px solid var(--orange-mid);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.fp-toc h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 1rem;
}

.fp-toc ol {
  list-style: decimal;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fp-toc ol li a {
  font-size: 0.85rem;
  color: var(--orange-deep);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.fp-toc ol li a:hover { opacity: 0.7; text-decoration: underline; }

/* ── Content sections ── */
.fp-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.fp-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--orange-pale);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fp-section h2 .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.fp-section p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--grey);
  margin-bottom: 0.9rem;
}

.fp-section p:last-child { margin-bottom: 0; }

.fp-section ul, .fp-section ol {
  padding-left: 1.4rem;
  margin: 0.6rem 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fp-section li {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--grey);
}

.fp-section strong { color: var(--black); font-weight: 600; }

/* Highlight box */
.fp-highlight {
  background: var(--orange-pale);
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.4rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: var(--orange-deep);
  line-height: 1.6;
}

/* Info box */
.fp-info {
  background: #F0F7FF;
  border-left: 3px solid #0A84FF;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.4rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: #0055B3;
  line-height: 1.6;
}

/* Contact card */
.fp-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.fp-contact-card {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1.4rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-contact-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(249,95,0,0.1);
}

.fp-contact-card .cc-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.fp-contact-card .cc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--black);
  margin-bottom: 0.3rem;
}
.fp-contact-card .cc-val {
  font-size: 0.8rem;
  color: var(--orange-deep);
  font-weight: 500;
}
.fp-contact-card .cc-sub { font-size: 0.72rem; color: var(--grey); }

/* Table styles (used in help centre FAQ) */
.fp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.fp-table th {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
}

.fp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--grey);
  vertical-align: top;
}

.fp-table tr:last-child td { border-bottom: none; }
.fp-table tr:hover td { background: var(--orange-pale); }

/* FAQ accordion */
.faq-item {
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--orange); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  user-select: none;
  gap: 1rem;
}

.faq-q:hover { color: var(--orange); }

.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
}

.faq-item.open .faq-icon {
  background: var(--orange);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--grey);
  padding: 0 1.2rem;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 1.2rem 1.2rem;
}

/* ── Shared footer nav bar on pages ── */
.fp-footer-nav {
  background: var(--dark);
  padding: 2rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.fp-footer-nav .fn-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}

.fp-footer-nav .fn-brand span { color: var(--orange); }

.fp-footer-nav .fn-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fp-footer-nav .fn-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.fp-footer-nav .fn-links a:hover { color: var(--orange); }

.fp-footer-nav .fn-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .fp-hero { padding: 5rem 5% 3rem; }
  .fp-content { padding: 3rem 5%; }
  .fp-meta { flex-direction: column; gap: 0.5rem; }
  .fp-footer-nav { flex-direction: column; text-align: center; }
  .fp-footer-nav .fn-links { justify-content: center; }
}
