/* ==========================================================================
   ChillPlay — shared chrome for the content pages
   (privacy.html · terms.html · accessibility.html)

   chillplay.html and activities.html still carry their own inline styles.
   Merging all five onto this file is a task in TASKS.md.
   ========================================================================== */

:root {
  --sg-cream: #FFF7E6;
  --sg-sand: #FFE5A2;
  --sg-yellow: #FFC86B;
  --sg-yellow-strong: #A06A18;
  --sg-green: #A8D68F;
  --sg-teal: #77C4A8;
  --sg-coral: #FF9F7F;
  --sg-coral-strong: #CC4219;
  --sg-coral-hover: #A83512;
  --sg-heading: #4A3B2A;
  --sg-body: #4F483B;
  --sg-white: #FFFFFF;

  --heading-font: "Fredoka", sans-serif;
  --body-font: "Assistant", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--sg-body);
  background: var(--sg-cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--sg-heading);
  font-weight: 600;
  line-height: 1.3;
}

p { color: var(--sg-body); }
a { color: inherit; text-decoration: none; transition: .25s ease-in-out; }
a:hover { color: var(--sg-coral-strong); }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.2rem; }
.section { padding: 4.5rem 0; }
.display-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.lead-2 { font-size: 1.12rem; }
.text-muted-2 { color: #7a7263; }

/* ---------- Buttons ---------- */
.btn-cp {
  display: inline-block; padding: .8rem 2rem; border-radius: 50px;
  font-family: var(--heading-font); font-weight: 600; letter-spacing: .3px;
  border: 2px solid transparent; transition: .25s ease-in-out; cursor: pointer;
}
.btn-cp-primary { background: var(--sg-coral-strong); color: #fff; }
.btn-cp-primary:hover { background: var(--sg-coral-hover); color: #fff; transform: translateY(-2px); }
.btn-cp-outline { background: transparent; color: var(--sg-coral-strong); border-color: var(--sg-coral-strong); }
.btn-cp-outline:hover { background: var(--sg-coral-strong); color: #fff; }
.btn-wa { background: #167c3c; color: #fff; }
.btn-wa:hover { background: #10602e; color: #fff; transform: translateY(-2px); }

.hero-badge {
  display: inline-block; background: var(--sg-yellow); color: var(--sg-heading);
  font-family: var(--heading-font); font-weight: 600; font-size: .85rem;
  padding: .35rem 1.1rem; border-radius: 50px; margin-bottom: 1rem;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--sg-heading); color: #fff; font-size: .9rem; padding: .5rem 0; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--sg-yellow); }
.topbar .sep { opacity: .35; }

/* ---------- Navbar ---------- */
.navbar-cp {
  background: rgba(255,247,230,.94); backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(74,59,42,.07);
  position: sticky; top: 0; z-index: 1030; padding: .9rem 0;
}
.navbar-cp .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-brand img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.nav-brand b { font-family: var(--heading-font); font-size: 1.45rem; color: #8B5E3C; display: block; line-height: 1; }
.nav-brand i { font-style: normal; font-size: .72rem; color: #3f8a72; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.nav-links a { font-family: var(--heading-font); font-weight: 500; color: var(--sg-heading); padding: .4rem .9rem; border-radius: 50px; }
.nav-links a:hover { color: var(--sg-coral-strong); background: rgba(232,106,69,.08); }
.nav-links a.btn-cp { color: #fff; padding: .5rem 1.3rem; }

/* ---------- Legal / content article ---------- */
.page-head-sm {
  background: linear-gradient(120deg, var(--sg-yellow) 0%, var(--sg-coral) 100%);
  padding: 3.2rem 0 2.8rem; color: var(--sg-heading);
}
.page-head-sm h1 { margin: 0; font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; }
.page-head-sm p { margin: .5rem 0 0; font-size: 1.1rem; }

.legal {
  background: #fff; border-radius: 28px; padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 16px 44px rgba(74,59,42,.08); max-width: 900px; margin: 0 auto;
}
.legal h2 {
  font-size: 1.4rem; margin: 2.4rem 0 .7rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--sg-sand);
}
.legal h2:first-of-type { margin-top: .5rem; }
.legal h3 { font-size: 1.12rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { font-size: 1.02rem; }
.legal ul, .legal ol { padding-inline-start: 1.4rem; }
.legal li { margin-bottom: .45rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.legal th, .legal td { border: 1px solid #e6ddc9; padding: .7rem .8rem; text-align: right; font-size: .96rem; }
.legal th { background: var(--sg-sand); font-family: var(--heading-font); color: var(--sg-heading); }
.legal .updated {
  background: var(--sg-cream); border-inline-start: 5px solid var(--sg-teal);
  border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 2rem; font-size: .95rem;
}
.legal .callout {
  background: #FFF3E2; border-inline-start: 5px solid var(--sg-yellow-strong);
  border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0;
}
.legal .toc { background: var(--sg-cream); border-radius: 16px; padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.legal .toc h2 { border: 0; margin: 0 0 .5rem; font-size: 1.1rem; padding: 0; }
.legal .toc ol { margin: 0; }
.legal .toc a { text-decoration: underline; color: #1f4b8f; }

/* ---------- Footer ---------- */
.footer-cp { background: var(--sg-heading); color: #f2e9da; padding-top: 3.5rem; }
.footer-cp a { color: #f2e9da; text-decoration: none; }
.footer-cp a:hover { color: var(--sg-yellow); text-decoration: underline; }
.footer-cp .brand-name { font-family: var(--heading-font); font-weight: 700; font-size: 1.5rem; color: #fff; }
.footer-cp .container { text-align: center; padding-bottom: 2.5rem; }
/* .footer-legal lives in chillplay-ui.css — it is shared by all five pages */
.footer-contact { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.footer-contact li { margin-bottom: .35rem; }
.footer-bottom { background: rgba(0,0,0,.18); }
.footer-bottom .container { padding-top: .9rem; padding-bottom: .9rem; font-size: .9rem; }

/* ---------- Float WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 1050;
  width: 58px; height: 58px; border-radius: 50%; background: #167c3c; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
.wa-float:hover { background: #10602e; color: #fff; }

@media (max-width: 991px) { .section { padding: 3rem 0; } }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
}
