/* ==========================================================================
   911Accidents.com — Policy / Compliance Page Stylesheet
   Shared by: privacy-policy, terms-of-use, disclaimer, cookie-policy,
              do-not-sell, accessibility (and Spanish equivalents)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B1F3A;
  --navy-light: #102848;
  --gold: #C8A75D;
  --gold-light: #d9bc7d;
  --red: #D92D20;
  --red-dark: #b82318;
  --offwhite: #F8F9FB;
  --white: #ffffff;
  --charcoal: #1A1A1A;
  --gray: #4A5568;
  --gray-light: #E2E8F0;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(11,31,58,0.08);
  --shadow-md: 0 8px 32px rgba(11,31,58,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--charcoal); background: var(--offwhite); line-height: 1.65; overflow-x: hidden; }
a { color: var(--red); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--navy); border-bottom: 2px solid rgba(200,167,93,0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 68px; max-width: 1280px; margin: 0 auto; gap: 32px; }
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-badge { font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem; color: var(--red); letter-spacing: -0.5px; line-height: 1; }
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem; color: #fff; letter-spacing: -0.3px; }
nav { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; }
nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.88rem; font-weight: 500; padding: 6px 14px; border-radius: 5px; transition: color .2s, background .2s; white-space: nowrap; }
nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
nav a.active { color: var(--gold); }
.header-phone { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.phone-link { color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.phone-link svg { color: var(--gold); flex-shrink: 0; }
.nav-call-btn { background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.88rem; padding: 10px 22px; border-radius: 5px; transition: all .2s; white-space: nowrap; box-shadow: 0 3px 14px rgba(217,45,32,0.45); }
.nav-call-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; }

/* Mobile nav drawer */
.mobile-nav { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--navy); z-index: 1100; padding: 80px 24px 24px; flex-direction: column; gap: 8px; box-shadow: -8px 0 32px rgba(0,0,0,0.4); }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; text-decoration: none; padding: 14px 18px; border-radius: 6px; font-weight: 600; font-size: 1rem; }
.mobile-nav a:hover { background: rgba(255,255,255,0.06); }
.mobile-nav-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 8px; }

/* ===== PAGE HERO (smaller than landing hero) ===== */
.policy-hero { background: var(--navy); color: #fff; padding: 130px 0 60px; position: relative; overflow: hidden; }
.policy-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 100%, rgba(200,167,93,0.08) 0%, transparent 60%), radial-gradient(ellipse at 100% 0%, rgba(217,45,32,0.06) 0%, transparent 50%); pointer-events: none; }
.policy-hero-inner { position: relative; z-index: 1; }
.policy-breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-bottom: 14px; }
.policy-breadcrumb a { color: var(--gold); text-decoration: none; }
.policy-breadcrumb a:hover { text-decoration: underline; }
.policy-hero h1 { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.policy-hero .policy-meta { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.policy-hero .policy-meta strong { color: var(--gold); font-weight: 700; }

/* ===== POLICY BODY ===== */
.policy-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.policy-toc { position: sticky; top: 90px; }
.policy-toc h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.policy-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.policy-toc a { color: var(--gray); text-decoration: none; font-size: 0.88rem; padding: 6px 10px; border-radius: 4px; display: block; transition: all .2s; border-left: 2px solid transparent; line-height: 1.4; }
.policy-toc a:hover { color: var(--navy); background: var(--white); border-left-color: var(--gold); }

.policy-body { background: #fff; border-radius: 12px; padding: 40px 44px; border: 1px solid var(--gray-light); box-shadow: var(--shadow-sm); }
.policy-body > p:first-child { color: var(--gray); font-style: italic; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--gray-light); }
.policy-body h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 36px 0 14px; padding-top: 12px; scroll-margin-top: 90px; }
.policy-body h2:first-of-type { margin-top: 0; padding-top: 0; }
.policy-body h3 { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
.policy-body p { color: var(--charcoal); font-size: 0.95rem; line-height: 1.75; margin-bottom: 14px; }
.policy-body ul, .policy-body ol { margin: 8px 0 18px 24px; }
.policy-body li { color: var(--charcoal); font-size: 0.95rem; line-height: 1.75; margin-bottom: 6px; }
.policy-body strong { color: var(--navy); font-weight: 700; }
.policy-body a { color: var(--red); font-weight: 600; }
.policy-body a:hover { text-decoration: underline; }
.policy-body .callout { background: rgba(200,167,93,0.08); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 0 6px 6px 0; margin: 20px 0; font-size: 0.92rem; line-height: 1.7; }
.policy-body .callout strong { color: var(--navy); }
.policy-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.88rem; }
.policy-body th, .policy-body td { text-align: left; padding: 10px 14px; border: 1px solid var(--gray-light); vertical-align: top; }
.policy-body th { background: var(--offwhite); font-weight: 700; color: var(--navy); }

/* DNS request form (for do-not-sell page) */
.dns-form { background: var(--offwhite); border: 1px solid var(--gray-light); border-radius: 10px; padding: 28px; margin-top: 24px; }
.dns-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.dns-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.dns-form input, .dns-form select, .dns-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--gray-light); border-radius: 6px; font-family: var(--font-sans); font-size: 0.95rem; background: #fff; color: var(--charcoal); }
.dns-form input:focus, .dns-form select:focus, .dns-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,167,93,0.15); }
.dns-form button { background: var(--red); color: #fff; border: none; padding: 14px 28px; border-radius: 6px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all .2s; }
.dns-form button:hover { background: var(--red-dark); }

/* ===== FOOTER (same as updated site footer) ===== */
footer { background: #07111f; padding: 52px 0 28px; border-top: 1px solid rgba(200,167,93,0.12); }
.footer-grid { display: grid; grid-template-columns: 240px 1fr 1fr 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.footer-brand .logo-badge, .footer-brand .logo-text { font-size: 1.25rem; }
.footer-desc { color: rgba(255,255,255,0.38); font-size: 0.82rem; line-height: 1.7; margin: 12px 0 14px; }
.footer-phone a { color: var(--gold); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.footer-phone a:hover { color: var(--gold-light); }
.footer-address { color: rgba(255,255,255,0.32); font-size: 0.78rem; line-height: 1.65; margin-top: 14px; }
.footer-address a { color: var(--gold); text-decoration: none; word-break: break-all; }
.footer-address a:hover { text-decoration: underline; }
.footer-col h4 { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; white-space: nowrap; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.86rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.disclaimer { color: rgba(255,255,255,0.32); font-size: 0.72rem; line-height: 1.7; margin: 24px 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.disclaimer strong { color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.disclaimer a { color: var(--gold); text-decoration: none; }
.disclaimer a:hover { text-decoration: underline; }
.footer-bottom { padding-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.footer-legal-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
.footer-legal-links a:hover { color: var(--gold); }
.footer-legal-links .dns-link strong { color: var(--gold); }
.footer-legal-links .dns-link:hover strong { color: var(--gold-light); }

/* ===== COOKIE BANNER ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000; background: var(--navy); border-top: 2px solid var(--gold); box-shadow: 0 -8px 32px rgba(0,0,0,0.4); padding: 20px 24px; transform: translateY(100%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 280px; color: rgba(255,255,255,0.78); font-size: 0.85rem; line-height: 1.55; }
.cookie-banner-text strong { color: #fff; display: block; margin-bottom: 4px; font-size: 0.95rem; font-family: var(--font-serif); font-weight: 700; }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 11px 22px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; font-size: 0.88rem; font-family: var(--font-sans); transition: all .2s; }
.cookie-btn-reject { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); }
.cookie-btn-reject:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.cookie-btn-accept { background: var(--gold); color: var(--navy); }
.cookie-btn-accept:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 220px repeat(4, 1fr); gap: 24px; }
  .policy-wrap { grid-template-columns: 200px 1fr; gap: 36px; }
}
@media (max-width: 880px) {
  .policy-wrap { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 60px; }
  .policy-toc { position: static; background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; padding: 18px 20px; }
  .policy-body { padding: 30px 24px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .phone-link span { display: none; }
  .phone-link svg { width: 22px; height: 22px; }
  .nav-call-btn { display: none; }
  .header-inner { padding: 0 20px; gap: 12px; }
  .header-phone { gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .cookie-banner { padding: 16px 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-btn { padding: 12px 14px; font-size: 0.82rem; }
  .dns-form .form-row { grid-template-columns: 1fr; }
}
