/* css/legal.css
 * Shared theme for every "utility" page that isn't part of the main
 * template pipeline: 404.html, privacy-policy.html, terms-of-service.html,
 * refund-policy.html.
 *
 * This file is the ONLY place these pages get their styling from — before,
 * each page carried its own copy-pasted <style> block (old choc/gold serif
 * theme, out of sync with the actual site) which is how they drifted from
 * the real Woh Wali look in the first place. Tokens below are copied from
 * index.html's :root so this file stays visually locked to the main theme;
 * if the brand palette ever changes, update it in both places (or, longer
 * term, move index.html's inline <style> into an external file too so both
 * pull from one real single source).
 */

:root {
  --ink:      #4A2A20;
  --choc:     #4A1F35;
  --espresso: #6B4030;
  --caramel:  #EC6F91;
  --gold:     #F6C667;
  --cream:    #FDF6EC;
  --warm:     #FCE8ED;
  --rust:     #E2557B;
  --white:    #FFFFFF;
  --dark:     #2A1810;
  --radius:      20px;
  --radius-sm:   12px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Noto Sans Devanagari', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}
a { color: var(--caramel); }
strong { color: var(--ink); }

/* ── NAV ── */
.legal-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  background: rgba(253, 246, 236, .95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(236, 111, 145, .18);
}
.legal-nav a.brand {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.4rem); color: var(--ink); text-decoration: none;
}
.legal-nav a.brand em { font-style: normal; color: var(--caramel); font-weight: 800; }
.legal-nav a.back {
  font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--espresso);
  border: 1.5px solid var(--caramel); border-radius: var(--radius-pill);
  padding: .5rem 1.1rem; transition: background .2s, color .2s;
  white-space: nowrap;
}
.legal-nav a.back:hover { background: var(--caramel); color: #fff; }

/* ── CONTENT ── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 1.5rem 6rem; }
.legal-chip {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rust); background: var(--warm);
  border-radius: var(--radius-pill); padding: .4rem 1rem; margin-bottom: 1.2rem;
}
h1 {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.7rem); color: var(--choc); margin-bottom: .5rem; line-height: 1.1;
}
.legal-updated { font-size: .85rem; color: var(--rust); font-weight: 600; margin-bottom: 2.5rem; }
h2 {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 1.3rem; color: var(--choc); margin: 2.2rem 0 .8rem;
}
p, li { font-size: .97rem; margin-bottom: .9rem; color: var(--espresso); }
ul, ol { padding-left: 1.4rem; margin-bottom: .9rem; }

table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; overflow: hidden; border-radius: var(--radius-sm); }
th, td { border: 1px solid rgba(236, 111, 145, .25); padding: .65rem .85rem; text-align: left; }
th { background: var(--warm); color: var(--choc); font-weight: 800; }

.legal-box {
  background: var(--warm); border-left: 4px solid var(--caramel);
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin: 1.5rem 0;
}
.legal-contact {
  background: var(--choc); color: var(--cream);
  border-radius: var(--radius); padding: 1.8rem; margin-top: 3rem;
}
.legal-contact h2 { color: var(--gold); margin-top: 0; }
.legal-contact p { color: var(--cream); }
.legal-contact a { color: var(--gold); }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--choc); color: rgba(253, 246, 236, .65);
  text-align: center; padding: 1.8rem 1.5rem; font-size: .82rem;
}
footer.site-footer a { color: rgba(253, 246, 236, .85); text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); text-decoration: underline; }
footer.site-footer .legal-foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; margin-bottom: .6rem; }
footer.site-footer .legal-foot-links span { opacity: .4; }

/* ── FLOAT WHATSAPP (matches main site's .float-wa) ── */
.float-wa {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .4);
  transition: transform .3s;
  animation: pulse-wa 3.5s infinite;
}
.float-wa:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, .4); }
  50%      { box-shadow: 0 6px 24px rgba(37, 211, 102, .7), 0 0 0 8px rgba(37, 211, 102, .12); }
}
@media (max-width: 640px) {
  .float-wa { width: 48px; height: 48px; font-size: 1.3rem; bottom: 1.2rem; right: 1rem; }
}

/* ── 404 PAGE ONLY ── */
.err-hero { text-align: center; padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem); }
.err-emoji { font-size: clamp(3.2rem, 9vw, 5.5rem); display: block; margin-bottom: 1.1rem; animation: err-bob 3s ease-in-out infinite; }
@keyframes err-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.err-hero h1 { margin-bottom: .7rem; }
.err-hero h1 em { font-style: normal; color: var(--caramel); }
.err-sub { font-size: .95rem; color: var(--espresso); max-width: 400px; margin: 0 auto 2rem; }
.err-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-bottom: .5rem; }
.err-actions a {
  font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-decoration: none;
  padding: .95rem 1.9rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: .5rem; transition: filter .2s, transform .2s;
}
.err-actions a:hover { transform: translateY(-2px); }
.err-btn-wa { background: #25D366; color: #fff; }
.err-btn-home { background: var(--caramel); color: #fff; }

.err-rescue { background: var(--white); padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 4rem); }
.err-rescue-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); text-align: center; display: block; margin-bottom: 1.6rem; }
.err-rescue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }
.err-rescue-card {
  background: var(--cream); border-radius: var(--radius); padding: 1.2rem 1rem; text-align: center;
  display: block; color: var(--ink); text-decoration: none; border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
}
.err-rescue-card:hover { border-color: var(--caramel); transform: translateY(-3px); }
.err-rescue-icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
.err-rescue-name { font-family: 'Baloo 2', cursive; font-size: .88rem; font-weight: 700; display: block; margin-bottom: .3rem; line-height: 1.3; }
.err-rescue-price { font-size: .75rem; font-weight: 800; color: var(--rust); letter-spacing: .03em; }

.err-quick { padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem); text-align: center; }
.err-quick-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin-bottom: 1rem; display: block; }
.err-quick-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.err-quick-links a {
  font-size: .78rem; font-weight: 700; color: var(--espresso); text-decoration: none;
  border: 1.5px solid rgba(236, 111, 145, .35); border-radius: var(--radius-pill); padding: .5rem 1rem;
  transition: all .2s;
}
.err-quick-links a:hover { border-color: var(--caramel); color: var(--caramel); background: var(--warm); }
