/* ==========================================================================
   Gaurs Aspire Leisure Park — Legal Pages Stylesheet
   Palette:
     --ink        #1B211D  deep pine-charcoal (header/footer, primary text)
     --pine       #1F3D32  brand green (accents, active states)
     --pine-2     #2C5245  lighter pine (hovers, gradients)
     --brass      #B08D57  brass/gold (dividers, section numerals, links)
     --stone      #F0F1EC  green-tinted off-white (page background)
     --stone-2    #E4E3D9  card / panel background
     --slate      #3A3F3B  body text
   Type:
     Display: 'Fraunces' (italic accent word, same family as main site)
     Body:    'Inter'
     Utility: 'Inter' uppercase, tracked, for eyebrows + numerals
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #1B211D;
  --pine: #1F3D32;
  --pine-2: #2C5245;
  --brass: #B08D57;
  --brass-light: #CBA976;
  --stone: #F0F1EC;
  --stone-2: #E4E3D9;
  --slate: #3A3F3B;
  --slate-soft: #6B7168;
  --border: #D8D6C9;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--slate);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top info bar ---------- */
.topbar {
  background: var(--ink);
  color: #CFD6D0;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { text-decoration: none; color: #E7EBE7; }
.topbar a:hover { color: var(--brass-light); }
.topbar .tag { color: var(--brass-light); letter-spacing: .04em; }

/* ---------- Header / Nav ---------- */
header.site {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #F4F5F1;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 3px;
  background: linear-gradient(150deg, var(--brass) 0%, var(--pine-2) 100%);
  flex-shrink: 0;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
}
.navlinks a {
  text-decoration: none;
  color: #C9CFC9;
  transition: color .15s ease;
}
.navlinks a:hover, .navlinks a.active { color: #fff; }
.navlinks a.active { color: var(--brass-light); }

.nav-cta {
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--brass-light); }

.burger {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  width: 40px; height: 36px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.legal-hero {
  background:
    radial-gradient(1100px 420px at 15% -10%, rgba(176,141,87,.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #202821 100%);
  color: #EFEEE6;
  padding: 56px 0 68px;
  position: relative;
  overflow: hidden;
}
.legal-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 420px; height: 420px;
  border: 1px solid rgba(203,169,118,.18);
  border-radius: 6px;
  transform: rotate(8deg);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--brass-light);
  font-weight: 600;
  margin: 0 0 14px;
}
.legal-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 16ch;
}
.legal-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass-light);
}
.legal-hero p.lead {
  color: #C9CFC5;
  max-width: 60ch;
  font-size: 16px;
  margin: 0 0 4px;
}
.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: #AEB6AC;
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 14px;
  border-radius: 30px;
}
.updated .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass-light); }

/* ---------- Layout: TOC + content ---------- */
.legal-body {
  padding: 52px 0 90px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  background: var(--stone-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 20px;
}
.toc h2 {
  font-family: 'Inter';
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11.5px;
  color: var(--slate-soft);
  margin: 0 0 14px;
  font-weight: 700;
}
.toc ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: toc;
}
.toc li { counter-increment: toc; margin-bottom: 10px; }
.toc a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.4;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Inter';
  font-weight: 700;
  color: var(--brass);
  font-size: 12px;
  flex-shrink: 0;
  padding-top: 1px;
}
.toc a:hover { color: var(--pine); }

.toc-mobile { display: none; }

/* ---------- Article content ---------- */
.legal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 44px 24px;
}
section.clause {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
section.clause:last-child { border-bottom: none; }

.clause-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.clause-num {
  font-family: 'Inter';
  font-weight: 700;
  font-size: 13px;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 2px 7px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.clause h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}
.clause h3 {
  font-family: 'Inter';
  font-weight: 700;
  font-size: 14.5px;
  color: var(--pine);
  margin: 22px 0 8px;
}
.clause p { margin: 0 0 14px; color: var(--slate); font-size: 15px; }
.clause p:last-child { margin-bottom: 0; }
.clause ul, .clause ol.plain {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--slate);
  font-size: 15px;
}
.clause li { margin-bottom: 8px; }
.clause strong { color: var(--ink); }
.clause a.inline { color: var(--pine); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }

.callout {
  background: var(--stone);
  border-left: 3px solid var(--brass);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--slate);
  margin: 16px 0;
}

.contact-card {
  margin-top: 40px;
  background: linear-gradient(160deg, var(--pine) 0%, var(--ink) 100%);
  color: #EDEFE9;
  border-radius: 6px;
  padding: 30px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 600;
}
.contact-card p { margin: 0; color: #C9CFC5; font-size: 14px; }
.contact-card .cta {
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.contact-card .cta:hover { background: var(--brass-light); }

/* ---------- Cross-links between the three legal pages ---------- */
.legal-crosslinks {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.legal-crosslinks a {
  font-size: 13px;
  text-decoration: none;
  color: var(--slate);
  background: var(--stone-2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 30px;
}
.legal-crosslinks a.current {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.legal-crosslinks a:hover:not(.current) { border-color: var(--brass); color: var(--pine); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #B9C0B9;
  padding: 50px 0 22px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-grid h4 {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11.5px;
  color: #8C947F;
  margin: 0 0 16px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { text-decoration: none; color: #C9CFC5; }
.foot-grid a:hover { color: var(--brass-light); }
.foot-brand { font-family: 'Fraunces', serif; font-size: 18px; color: #F4F5F1; margin: 0 0 12px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 12.5px;
  color: #808878;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-bottom a { color: #A9B0A2; text-decoration: none; margin-left: 16px; }
.foot-bottom a:hover { color: var(--brass-light); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile {
    display: block;
    background: var(--stone-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 26px;
  }
  .toc-mobile summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--slate-soft);
  }
  .toc-mobile ol { list-style: none; margin: 0; padding: 0 18px 16px; counter-reset: toc; }
  .toc-mobile li { counter-increment: toc; margin-bottom: 10px; }
  .toc-mobile a { display: flex; gap: 10px; text-decoration: none; color: var(--slate); font-size: 14px; }
  .toc-mobile a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--brass); font-size: 12px; }
  .legal-content { padding: 4px 26px 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .navlinks { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta.desktop-only { display: none; }
  .topbar .tag { display: none; }
  .legal-hero { padding: 40px 0 48px; }
  .contact-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .wrap { padding: 0 18px; }
  .clause h2 { font-size: 19px; }
}

/* Mobile drawer nav */
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: #202821;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 24px 18px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  color: #D7DBD3;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 15px;
}
.mobile-drawer a.active { color: var(--brass-light); }
.mobile-drawer a.nav-cta { text-align: center; margin-top: 10px; border: none; }

/* Focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}