/* ==========================================================================
   The Collective — /privacy/
   Colour tokens and shared header/nav/footer rules match the rest of the
   site exactly (same brand, same accessibility patterns).
   ========================================================================== */

:root {
  --teal: #6BB7B0;
  --teal-deep: #326762;
  --bg-warm: #F7F5F0;
  --pale-aqua: #E7F2F0;
  --mustard: #D9A441;
  --teal-near-black: #1B3733;
  --text-dark: #1E3A38;
  --text-muted: #5C7A78;
  --white: #FFFFFF;
  --error: #B3261E;

  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 16px rgba(30, 58, 56, 0.08);
  --shadow-card: 0 6px 20px rgba(30, 58, 56, 0.10);
  --focus-ring: 3px solid var(--teal-deep);

  --content-width: 1080px;
  --transition-fast: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Keeps scroll targets (skip link, in-page focus jumps) from landing
     underneath the sticky header. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--teal-deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Header / navigation (shared pattern with the rest of the site)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.85;
  transform: scale(1.02);
}

/* The approved logo files (The_Collective_Milton_Keynes_teal_gold.png / _white_gold.png) are
   shown whole, at their own 992:175 proportions, and are never cropped, stretched, recoloured or
   redrawn. The box takes its height from the image's aspect ratio, so there is no fixed height to
   clip it or to fight with the width. (Class names are new on purpose: no older cached stylesheet
   can apply its cropping rules to these elements.) The wording under the symbol is small, so the
   logo is kept comfortably large at every width. */
.brand-logo {
  display: block;
  width: min(236px, calc(100vw - 140px));
  aspect-ratio: 992 / 175;
  overflow: visible;
}

.brand-logo .brand-logo-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-logo {
    width: 268px;
  }
}

/* Small laptops and large tablets: the full navigation sits beside the logo, so the logo steps down a little (same file, same proportions) rather than letting the links wrap */
@media (min-width: 901px) and (max-width: 980px) {
  .brand-logo {
    width: 224px;
  }
}

/* Phones: slimmer header edges so the Menu button stays beside a full-size logo */
@media (max-width: 639px) {
  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
    gap: 12px;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--pale-aqua);
}

.primary-nav a[aria-current="page"] {
  color: var(--teal-deep);
  background: var(--pale-aqua);
  font-weight: 700;
}

/* five links: the Menu button takes over at 900px, as on the Art Collective page */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}
/* ==========================================================================
   Page hero — simple intro used by content-only pages (Accessibility,
   Privacy) rather than the full marketing hero.
   ========================================================================== */

.page-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--teal-deep);
}

.page-hero-subtitle {
  margin: 0 auto;
  font-size: 1.1875rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

/* ==========================================================================
   Page body — plain prose content
   ========================================================================== */

.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.page-body h2 {
  margin: 40px 0 12px;
  font-size: 1.375rem;
  color: var(--teal-deep);
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p {
  margin: 0 0 16px;
  color: var(--text-dark);
}

.page-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-dark);
}

.page-body li {
  margin-bottom: 8px;
}

.page-body a {
  font-weight: 600;
}

.page-body .updated-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--pale-aqua);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Footer (shared pattern with the rest of the site)
   ========================================================================== */

.site-footer {
  background: var(--teal-near-black);
  color: var(--pale-aqua);
  padding: 64px 24px 24px;
  border-top: 3px solid var(--mustard);
}

.footer-inner {
  max-width: var(--content-width, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.footer-brand .footer-wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}

.footer-brand .footer-tagline {
  margin: 0;
  color: var(--pale-aqua);
  font-size: 0.9375rem;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-col-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mustard);
  margin: 0 0 4px;
}

.footer-col a,
.footer-email a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col a:hover,
.footer-email a:hover {
  text-decoration: underline;
  color: var(--mustard);
}

.footer-email {
  margin: 0 0 16px;
}

.footer-social {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-social a:hover {
  background: var(--mustard);
  color: var(--teal-deep);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  max-width: var(--content-width, 1080px);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--pale-aqua);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--pale-aqua);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
  color: var(--white);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Footer logo (white + gold version, on the dark footer): natural proportions, never stretched. */
.footer-brand .footer-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  aspect-ratio: 992 / 175;
  object-fit: contain;
  margin: 0 0 14px;
}

/* Keep the whole logo inside its link: nothing here clips it, and it has a little room around it. */
.brand-link {
  overflow: visible;
  padding: 2px 0;
}

/* ==========================================================================
   Footer refinements (launch pass): same dark-teal, four-column footer, with
   wider contact column (so email addresses never break mid-word), labelled
   email lines, roomier touch targets, and a painted edge joining it to the
   section above.
   ========================================================================== */
.site-footer { position: relative; margin-top: 0; padding: 72px 24px 28px; border-top: 0; }
.site-footer::before, .site-footer::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; -webkit-mask: url(/assets/footer-edge.svg) 0 0 / 100% 100% no-repeat; mask: url(/assets/footer-edge.svg) 0 0 / 100% 100% no-repeat; }
.site-footer::after { top: -37px; background: var(--teal-near-black, #1B3733); }
.site-footer::before { top: -43px; background: var(--mustard, #D9A441); opacity: 0.85; transform: scaleX(-1); }
.footer-inner { grid-template-columns: 1.15fr 0.85fr 1.05fr 1.45fr; gap: 28px 36px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; overflow-wrap: normal; word-break: normal; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-email-label { margin: 6px 0 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pale-aqua); opacity: 0.9; }
.footer-email { margin: 0 0 4px; }
.footer-email a { display: inline-block; max-width: 100%; padding: 4px 0; min-height: 32px; font-size: 0.9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; overflow-wrap: normal; word-break: normal; }
.footer-email .ed { white-space: nowrap; }
.footer-social { margin-top: 10px; }
.footer-social a { width: 44px; height: 44px; min-height: 44px; }
.footer-social svg { width: 20px; height: 20px; }
.footer-copyright { margin: 0; }
.footer-bottom-links a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 4px; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding: 60px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-logo { width: min(240px, 100%); }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .footer-social a, .footer-col a { transition: none; } }

/* long email addresses inside sentences may break on very narrow phones, so nothing ever scrolls sideways */
.page-body a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- Art Collective navigation: hand-painted rainbow stroke + NEW! badge (launch refinement) ---------- */
.primary-nav a.nav-ac { position: relative; }
.nav-ac-text { position: relative; display: inline-block; }
.nav-ac-text::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -6px;
  height: 8px;
  background: url("/assets/nav-rainbow.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.nav-new {
  position: absolute;
  top: -8px;
  right: -9px;
  padding: 3px 6px 2px;
  border-radius: 999px;
  background: var(--mustard, #D9A441);
  color: #1B3733;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transform: rotate(-4deg);
  box-shadow: 0 1px 0 rgba(27, 55, 51, 0.28);
  pointer-events: none;
}
@media (max-width: 900px) {
  .primary-nav a.nav-ac { gap: 10px; }
  .nav-new { position: static; transform: none; }
  .nav-ac-text::after { bottom: -4px; }
}
@media (forced-colors: active) {
  .nav-new { border: 1px solid CanvasText; }
  .nav-ac-text::after { display: none; }
}

/* Image credits: long web addresses wrap instead of running off narrow screens. */
.page-body p, .page-body li { overflow-wrap: anywhere; }
