/* Shared layout for placeholder legal pages (privacy-policy.html, cookie-policy.html). */

/* ============ PAGE HERO (same component as about.css) ============ */
.page-hero {
  background: var(--navy);
  padding: 128px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero { padding: 168px 24px 96px; }
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(170,14,65,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 740px; margin: 0 auto; }
.page-hero-inner .hero-eyebrow { margin: 0 auto 28px; }
.page-hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
}

/* ============ PLACEHOLDER NOTICE ============ */
.legal-placeholder-notice {
  background: var(--ivory);
  border: 2px dashed var(--crimson);
  border-radius: 16px;
  max-width: 760px;
  margin: -28px auto 0;
  padding: 18px 24px;
  position: relative;
  z-index: 3;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.legal-placeholder-notice strong { color: var(--crimson); }
.legal-notice-date {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--crimson);
}

/* ============ BODY ============ */
.legal-body {
  background: var(--surface);
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.legal-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading);
  margin: 36px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--heading);
  margin: 22px 0 8px;
}
.legal-body p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
}
.legal-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal-body li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 6px;
}
.legal-body a { color: var(--crimson); }
.legal-body blockquote {
  margin: 0 0 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--crimson);
  background: var(--ivory);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
}
.legal-body blockquote p { margin: 0; }
.legal-fillin {
  color: var(--crimson);
  font-style: italic;
  background: rgba(170,14,65,0.1);
  padding: 1px 5px;
  border-radius: 4px;
}
.legal-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.legal-table th {
  background: var(--ivory);
  color: var(--heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.legal-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.legal-pref-row:last-of-type { border-bottom: none; }
.legal-pref-row p { margin: 0; }

.legal-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.legal-toggle input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; z-index: 1;
}
.legal-toggle-track {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.15s ease;
}
.legal-toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.legal-toggle input:checked ~ .legal-toggle-track { background: var(--crimson); }
.legal-toggle input:checked ~ .legal-toggle-track .legal-toggle-knob { transform: translateX(20px); }
.legal-toggle input:focus-visible ~ .legal-toggle-track { outline: 2px solid var(--crimson); outline-offset: 2px; }
.legal-toggle input:disabled { cursor: not-allowed; }
.legal-toggle input:disabled ~ .legal-toggle-track { opacity: 0.6; }

.legal-btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--crimson);
  color: var(--white);
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}
.legal-btn:hover { background: var(--crimson-dark); }
.legal-btn:active { transform: scale(0.98); }
.legal-save-status {
  margin-left: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #16a34a;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.legal-save-status.show { opacity: 1; }

.legal-updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Small "Last updated" stamp moved out of the removed placeholder-notice
   banner. Sits in normal document flow just above the footer rather than
   position:fixed, since a true fixed bottom-right element would sit under
   (or visually collide with) the cookie-consent banner, which already owns
   position:fixed;bottom:0 full-width at z-index 9998. */
.legal-updated-corner {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 24px;
  text-align: right;
  font-size: 11.5px;
  color: var(--muted);
}

/* ============ RICH MULTI-COLUMN FOOTER (overrides main.css footer) ============ */
/* Copied verbatim from about.css -- legal.css never had this component at all,
   which is why the footer on these 6 pages rendered unstyled (display:block,
   default UA link/list styles) instead of the intended grid layout. Scoped
   patch only: this duplicates the same component about.css/services.css/etc.
   already duplicate per-page. Centralizing it into main.css so this can't
   happen again is a separate, larger task. */
footer { text-align: left; padding: 0; }

.footer-rich { padding: 48px 20px 24px; }
@media (min-width: 560px) {
  .footer-rich { padding: 56px 32px 28px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
}
@media (min-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.2fr; }
}

.footer-brand-logo { height: 26px; width: auto; display: block; margin-bottom: 16px; opacity: 0.95; }

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  max-width: 260px;
}

.footer-trust-line {
  font-size: 12px;
  font-weight: 600;
  color: #86efac;
  margin-bottom: 18px;
}

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--crimson); border-color: var(--crimson); }

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 4px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-col a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-contact-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(170,14,65,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}
.footer-contact-text {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1160px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 559px) {
  .footer-bottom { flex-direction: column; }
}

/* ============ MOBILE — hero background matches bhucheq-mobile-mockup.html's
   Legal frames (.hero has no background, no glow), shared by all 6 legal
   pages that load this file. Navy card + glow here was a live-only
   addition with no mockup basis; same fix already applied to about.css.
   Scoped to max-width:640px only, desktop untouched. ============ */
@media (max-width: 640px) {
  /* Padding: mockup's Legal frame is 24px 20px 4px, plus 76px measured
     clearance for .topbar-wrap (position:fixed, top:12px + 64px height)
     since the mockup's topbar is sticky/in-flow and needs no compensation.
     text-align/h1 size match the same shared .hero component already
     confirmed against the mockup on about.css/bhumap.css. */
  .page-hero { background: none; padding: 100px 20px 4px; text-align: left; }
  .page-hero::before { display: none; }
  .page-hero h1 { color: var(--heading); font-size: 26px; }
  .page-hero p { color: var(--muted); }
  /* .hero-eyebrow (main.css) is #f4a0bc light-pink text on rgba(170,14,65,0.2)
     — tuned for a navy backdrop. Composited over the now-light hero it's
     pale-on-pale, low contrast. Same fix already applied to about.css and
     services.html. */
  .page-hero .hero-eyebrow {
    background: rgba(170,14,65,0.08);
    color: var(--crimson);
  }
  .page-hero .hero-eyebrow::before { display: none; }
}
