/* ==========================================================================
   Vibes Event Group — Mobile-first foundation
   Written for 320px+ screens first; larger layouts are added with min-width
   queries only. Used by privacy.html and terms.html and intended as the base
   for future page redesigns. Brand tokens match page-shell.css.
   Breakpoints: 600px (large phone/small tablet), 960px (desktop).
   ========================================================================== */

:root {
  --gold: #c9a84c;
  --gold-light: #e4c980;
  --gold-dark: #8f6a22;
  --gold-gradient: linear-gradient(135deg, #9d762d 0%, #d8ba69 50%, #8f6a22 100%);
  --bg: #090909;
  --surface: rgba(255, 255, 255, 0.04);
  --text-main: #f5f0e8;
  --text-soft: #b8ae9f;
  --border-soft: rgba(201, 168, 76, 0.2);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --tap: 48px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(120, 70, 20, 0.18), transparent 40%),
    linear-gradient(180deg, #090909 0%, #070707 100%);
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  min-width: 320px;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--gold); color: #130d03; padding: 12px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 8px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 700 0.8rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--gold-gradient); color: #130d03; }
.btn-primary:hover { color: #130d03; transform: translateY(-1px); }
.btn-secondary { border-color: rgba(255, 255, 255, 0.22); color: var(--text-main); background: transparent; }
.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.72rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, 0.94); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.header-bar { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.logo { display: block; flex: 0 0 auto; margin-right: auto; line-height: 0; }
.logo img { display: block; height: 64px; width: 64px; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px;
  background: transparent; color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px; font: 600 0.8rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: var(--tap); padding: 0 4px;
  color: var(--text-main); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .nav-cta { padding: 14px 0 18px; }
.site-nav .nav-cta a { justify-content: center; border: 0; color: #130d03; }
/* Collapsed on small screens only when JS is available */
.js .site-nav { display: none; padding-bottom: 4px; }
.js .site-nav.is-open { display: block; }

/* ---------- Page hero ---------- */
.page-hero { padding: 28px 0 8px; }
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.85rem; color: var(--text-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold-dark); }
.breadcrumb a { display: inline-block; padding: 8px 0; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; }
h1 { font-size: 2.35rem; letter-spacing: -0.01em; }
.lede { margin: 14px 0 0; color: var(--text-soft); font-size: 1.05rem; max-width: 62ch; }
.meta { margin: 14px 0 0; font-size: 0.85rem; color: var(--text-soft); }

.notice {
  margin: 20px 0 0; padding: 16px; border: 1px solid var(--border-soft); border-left: 4px solid var(--gold);
  border-radius: var(--radius); background: rgba(201, 168, 76, 0.08); font-size: 0.95rem;
}
.notice strong { color: var(--gold-light); }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

/* “To confirm” markers — visible on purpose so nothing is mistaken for settled policy */
.confirm {
  display: inline; padding: 1px 6px; border-radius: 4px; background: rgba(201, 168, 76, 0.16);
  border-bottom: 1px dashed var(--gold); color: var(--gold-light);
}
.confirm-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-right: 4px; color: #130d03; background: var(--gold); padding: 1px 6px; border-radius: 3px; white-space: nowrap;
}

/* ---------- Document layout ---------- */
.doc { padding: 20px 0 48px; }
.doc-layout { display: block; }

.toc {
  margin-bottom: 20px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface);
}
.toc > summary, .doc-section > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap);
}
.toc > summary::-webkit-details-marker, .doc-section > summary::-webkit-details-marker { display: none; }
.toc > summary { padding: 8px 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); }
.toc > summary::after, .doc-section > summary::after {
  content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 4px;
}
.toc[open] > summary::after, .doc-section[open] > summary::after { transform: rotate(-135deg); }
.toc ol { list-style: none; margin: 0; padding: 0 8px 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li a {
  display: flex; gap: 10px; align-items: baseline; min-height: var(--tap); padding: 10px 8px; text-decoration: none;
  color: var(--text-main); border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.95rem; line-height: 1.35;
}
.toc li a::before { content: counter(toc) "."; color: var(--gold); min-width: 1.6em; }
.toc li a:hover { color: var(--gold); }
.toc .toc-part { padding: 14px 8px 4px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); border-top: 1px solid rgba(255, 255, 255, 0.06); counter-increment: none; }

.doc-tools { display: flex; gap: 10px; margin-bottom: 16px; }
.doc-tools .btn { flex: 1; }
.doc-tools[hidden] { display: none; }
html:not(.js) .doc-tools { display: none; }

.doc-section {
  margin-bottom: 12px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface);
}
.doc-section > summary { padding: 10px 16px; }
.doc-section > summary h2 { font-size: 1.4rem; color: var(--text-main); flex: 1; }
.doc-section[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.doc-body { padding: 16px; }
.doc-body > :first-child { margin-top: 0; }
.doc-body > :last-child { margin-bottom: 0; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body dl { margin: 0 0 14px; color: var(--text-soft); max-width: 70ch; }
.doc-body li { margin-bottom: 8px; }
.doc-body ul, .doc-body ol { padding-left: 1.25rem; }
.doc-body h3 { font-size: 1.2rem; color: var(--gold-light); margin: 22px 0 8px; }
.doc-body strong { color: var(--text-main); font-weight: 600; }

.part-heading { margin: 32px 0 14px; padding-top: 8px; }
.part-heading h2 { font-size: 1.75rem; color: var(--gold-light); }
.part-heading p { margin: 8px 0 0; color: var(--text-soft); max-width: 62ch; }

/* “What we collect” cards — stack on mobile instead of a wide table */
.data-list { display: grid; gap: 10px; padding: 0; }
.data-list > div { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: rgba(0, 0, 0, 0.25); }
.data-list dt { color: var(--gold-light); font-weight: 600; margin-bottom: 4px; }
.data-list dd { margin: 0; }

/* ---------- Prev/next + cross-links ---------- */
.doc-nav { display: grid; gap: 10px; margin-top: 28px; }
.doc-nav a {
  display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 12px 16px;
  border: 1px solid var(--border-soft); border-radius: var(--radius); text-decoration: none; color: var(--text-main); background: var(--surface);
}
.doc-nav a:hover { border-color: var(--gold); }
.doc-nav small { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; padding: 36px 0 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-soft); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand img { height: 112px; width: 112px; display: block; margin-bottom: 12px; }
.site-footer h2 { font: 600 0.8rem var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: flex; align-items: center; min-height: 44px; color: var(--text-soft); text-decoration: none; }
.site-footer li a:hover, .site-footer li a[aria-current="page"] { color: var(--gold); }
.site-footer p { margin: 0 0 6px; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; }

/* ---------- ≥600px: large phones / small tablets ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  h1 { font-size: 3rem; }
  .header-cta { display: inline-flex; }
  .doc-nav { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .doc-body { padding: 20px 24px; }
  .doc-section > summary { padding: 10px 24px; }
  .data-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- ≥960px: desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 112px; }
  h1 { font-size: 3.6rem; }
  .page-hero { padding: 48px 0 16px; }
  .logo img { height: 96px; width: 96px; }
  .menu-toggle { display: none; }
  .header-bar { gap: 24px; }
  .logo { margin-right: 0; }
  .header-cta { margin-left: auto; }
  /* Navigation becomes an inline row; always visible even with JS */
  .site-nav, .js .site-nav { display: block; order: 0; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { border: 0; min-height: 44px; padding: 0 10px; font-size: 0.74rem; letter-spacing: 0.18em; }
  .site-nav .nav-cta { display: none; }

  .doc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; margin-bottom: 0; }
  /* On desktop the contents list is a fixed sidebar and sections are always open */
  .toc > summary, .doc-section > summary { cursor: default; pointer-events: none; }
  .toc > summary::after, .doc-section > summary::after { display: none; }
  .doc-tools { display: none !important; }
  .doc-section { border: 0; background: transparent; border-radius: 0; margin-bottom: 8px; }
  .doc-section[open] > summary { border-bottom: 0; }
  .doc-section > summary, .doc-body { padding-left: 0; padding-right: 0; }
  .doc-section > summary h2 { font-size: 1.9rem; }
  .doc-body { padding-top: 4px; padding-bottom: 20px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ---------- Print: everything expanded, ink-friendly ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .doc-tools, .doc-nav, .skip-link, .toc { display: none !important; }
  .doc-section { border: 0; background: none; }
  .doc-section > summary::after { display: none; }
  .doc-body p, .doc-body li, .doc-body dd { color: #000; }
  h1, h2, h3, .doc-section > summary h2, .doc-body h3 { color: #000; }
  .confirm { background: #eee; color: #000; border-bottom: 1px dashed #000; }
}
