/* ═══════════════════════════════════════════════════════════════
   LEGAL & SUPPORT PAGES
   Used by resources/views/legal/{index,show}.blade.php

   Same palette as the rest of the site (gold #C9920A on near-black),
   Jost for headings, Arial for body. Deliberately plain: long-form
   policy text wants generous line-height and a narrow measure, not
   decoration.
═══════════════════════════════════════════════════════════════ */

:root {
  --legal-gold: #C9920A;
  --legal-gold-deep: #8a6608;   /* AA contrast on white */
  --legal-dark: #0F1012;
  --legal-offwhite: #F8F7F5;
  --legal-border: #E8E7E4;
  --legal-text: #333;
  --legal-muted: #6a6a6a;
}

/* ── Page header band ── */
.legal-hero {
  background: var(--legal-dark);
  background-image:
    radial-gradient(ellipse 60% 90% at 12% 60%, rgba(201,146,10,0.16) 0%, transparent 70%);
  padding: 52px 0 46px;
  border-bottom: 3px solid var(--legal-gold);
}
.legal-hero-eyebrow {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--legal-gold);
  margin-bottom: 10px;
}
.legal-hero h1 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.legal-hero-date {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 12px 0 0;
}

/* ── Breadcrumb ── */
.legal-crumb {
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  color: var(--legal-muted);
  padding: 14px 0;
}
.legal-crumb a { color: var(--legal-muted); text-decoration: none; }
.legal-crumb a:hover { color: var(--legal-gold-deep); text-decoration: underline; }
.legal-crumb .sep { margin: 0 7px; color: #c9c9c9; }

/* ── Layout ── */
.legal-body { padding: var(--sec-y-sm) 0 var(--sec-y); }

/* ── Article ──
   Full page width, no sidebar. The theme's .container already caps the
   line length on wide screens, so the article just fills it. */
.legal-article {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--legal-border);
  border-radius: 12px;
  padding: 40px 46px 46px;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: var(--legal-text);
  font-size: 15px;
  line-height: 1.8;
}
.legal-article > p:first-child {
  font-size: 15.5px;
  color: #444;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--legal-border);
}
.legal-article p { margin: 0 0 15px; }

.legal-h2 {
  font-family: 'Jost', sans-serif;
  font-size: 1.0625rem !important;   /* 17px — beats the global h2 rule */
  font-weight: 800;
  color: var(--legal-dark);
  line-height: 1.35;
  margin: 30px 0 12px;
  padding-left: 13px;
  border-left: 3px solid var(--legal-gold);
  scroll-margin-top: 100px;          /* so #anchors clear the sticky header */
}
.legal-article > .legal-h2:first-of-type { margin-top: 6px; }

.legal-list { margin: 0 0 16px; padding-left: 0; list-style: none; }
.legal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
}
.legal-list li::before {
  content: '';
  position: absolute; left: 3px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--legal-gold);
}

.legal-meta { color: var(--legal-muted); font-size: 13.5px; }

.legal-link { color: var(--legal-gold-deep); text-decoration: underline; }
.legal-link:hover { color: var(--legal-gold); }

/* ── FAQ blocks (Help Center) ── */
.legal-faq {
  border: 1px solid var(--legal-border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #FDFDFC;
  transition: border-color 0.18s;
}
.legal-faq:hover { border-color: var(--legal-gold); }
.legal-faq-q {
  font-family: 'Jost', sans-serif;
  font-size: 15px; font-weight: 800;
  color: var(--legal-dark);
  margin: 0 0 6px !important;
}
.legal-faq-a { margin: 0 !important; color: #4a4a4a; font-size: 14.5px; }

/* ── Contact callout under every policy ── */
.legal-contact {
  margin-top: 30px;
  border: 1.5px solid var(--legal-border);
  border-left: 4px solid var(--legal-gold);
  border-radius: 10px;
  background: var(--legal-offwhite);
  padding: 20px 22px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}
.legal-contact strong {
  font-family: 'Jost', sans-serif;
  display: block;
  color: var(--legal-dark);
  margin-bottom: 5px;
  font-size: 15px;
}

/* ── Index page cards ── */
.legal-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1.5px solid var(--legal-border);
  border-radius: 12px;
  padding: 22px 22px 24px;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.legal-card:hover {
  border-color: var(--legal-gold);
  box-shadow: 0 10px 28px rgba(201,146,10,0.13);
  transform: translateY(-3px);
}
.legal-card-title {
  font-family: 'Jost', sans-serif;
  font-size: 15.5px; font-weight: 800;
  color: var(--legal-dark);
  margin-bottom: 7px;
  line-height: 1.35;
}
.legal-card-sub {
  font-family: Arial, sans-serif;
  font-size: 13.5px; color: #666; line-height: 1.6;
  margin-bottom: 12px;
}
.legal-card-cta {
  font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--legal-gold-deep);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.legal-card:hover .legal-card-cta { gap: 10px; }

/* ═══════════ RESPONSIVE ═══════════
   Breakpoints match assets/css/responsive.css */
@media (max-width: 991.98px) {
  .legal-hero { padding: 38px 0 34px; }
  .legal-article { padding: 28px 26px 32px; }
}
@media (max-width: 575.98px) {
  .legal-hero { padding: 30px 0 26px; }
  .legal-article {
    padding: 22px 18px 26px;
    font-size: 14.5px;
    line-height: 1.75;
    border-radius: 10px;
  }
  .legal-h2 { font-size: 1rem !important; margin: 24px 0 10px; padding-left: 11px; }
  .legal-faq { padding: 14px 14px; }
  .legal-faq-q { font-size: 14px; }
  .legal-contact { padding: 16px 16px; }
}
