/* ---------------------------------------------------------------------------
   Footer + static pages.

   Linked from header.php on EVERY page, so it stays small. Built from the
   existing custom properties, no hardcoded colours.
   --------------------------------------------------------------------------- */

.ft {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding: 34px 20px 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.ft-cols {
  display: grid;
  /* Desktop: brand block (span 2, it holds a paragraph) + the four link columns,
     all on one row. */
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px 22px;
  max-width: 1300px;
  margin: 0 auto;
}
.ft-brand { grid-column: span 2; min-width: 0; }

/* Tablet (incl. iPad portrait): brand goes full-width on top, and the four link
   columns SPREAD edge-to-edge across the row (justify-content: space-between) so
   the last column (Legal & Safety) sits against the right edge, lining the footer
   up with the card grid above instead of bunching left.
   `.ft > .ft-cols` out-specifies the legacy inline <style> in footer.php, so this
   wins whether or not that block is still there. */
@media (min-width: 681px) and (max-width: 1000px) {
  .ft > .ft-cols {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
    gap: 26px 22px;
  }
  .ft-brand { grid-column: 1 / -1; }
}

/* Phone: the four link columns as a 2x2 grid, brand full-width on top. */
@media (max-width: 680px) {
  .ft > .ft-cols { grid-template-columns: repeat(2, max-content); justify-content: space-between; }
  .ft-brand { grid-column: 1 / -1; }
}

/* Microsoft Surface Duo / dual-screen foldables, held open spanned (fold
   vertical). Two triggers, same reasoning as performer.css:
     1. `spanning: single-fold-vertical` — a real dual-screen device / DevTools
        dual-screen mode.
     2. a 1050-1140px width band — device-preview tools render the page flat at
        the ~1114px spanned width with no fold signal, so #1 never fires there.
   ONE wide row spanning both screens (brand + four link columns), the layout the
   reference sites use at this width. A thin empty SPACER track sits at the fold:
   brand + Explore land left of it, and Cam Girls by Country / Popular / Legal are
   placed just to its RIGHT, so that third column clears the hinge instead of
   losing its first letters under the seam. The columns are placed explicitly
   (nth-child) precisely so the spacer is skipped rather than filled. */
@media (spanning: single-fold-vertical),
       (min-width: 1050px) and (max-width: 1140px) {
  .ft > .ft-cols {
    grid-template-columns: repeat(3, 1fr) 16px repeat(3, 1fr);
    justify-content: stretch;
    gap: 26px 20px;
  }
  .ft-brand { grid-column: 1 / 3; }                    /* brand: tracks 1-2 */
  .ft > .ft-cols > :nth-child(2) { grid-column: 3; }   /* Explore   -> track 3 (left of the fold) */
  .ft > .ft-cols > :nth-child(3) { grid-column: 5; }   /* Country   -> track 5 (skips the spacer, clears the seam) */
  .ft > .ft-cols > :nth-child(4) { grid-column: 6; }   /* Popular   -> track 6 */
  .ft > .ft-cols > :nth-child(5) { grid-column: 7; }   /* Legal     -> track 7 */
}

.ft-logo {
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.ft-logo .dot { color: var(--pink); }

.ft-brand p {
  margin: 0;
  line-height: 1.65;
  max-width: 42ch;
}

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

.ft-col h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 4px;
}

.ft-col a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
}
.ft-col a:hover { color: var(--pink2); }

.ft-more { color: var(--pink2) !important; }

.ft-bottom {
  max-width: 1300px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.ft-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.ft-badge {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--muted);
}

.ft-legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---- static pages ---- */

/* Narrow on purpose. Legal text at 1300px is unreadable - the eye loses the
   line. 74ch is roughly where prose stops being work.
   Centred, because these pages have no sidebar: left-pinned, the column hugs
   the edge of a wide viewport with a screen of empty space beside it. */
.pg {
  max-width: 74ch;
  margin: 0 auto;
  padding: 0 4px 40px;
}

.pg-body { color: var(--muted); line-height: 1.75; font-size: 14.5px; }
.pg-body p { margin: 0 0 14px; }
.pg-body h2 {
  color: var(--text);
  font-size: 17px;
  margin: 26px 0 10px;
}
.pg-body ul { margin: 0 0 14px; padding-left: 20px; }
.pg-body li { margin-bottom: 7px; }
.pg-body a { color: var(--pink2); }
.pg-body b { color: var(--text); }

/* ---- homepage intro ----
   Homepage only, below the grid. Muted on purpose: it is there for crawlers
   and for the one visitor in fifty who reads it, not to compete with the grid
   above it. */

.hi {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hi-h {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
}

.hi-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
}

.hi-body { flex: 1 1 420px; min-width: 280px; color: var(--muted); line-height: 1.75; }
.hi-body p { margin: 0 0 13px; }
.hi-body p:last-child { margin-bottom: 0; }
.hi-body a { color: var(--pink2); }

.hi-feat {
  flex: 1 1 340px;
  min-width: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.hi-feat li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.5;
}
/* Tick as CSS, so the answer text stays clean for a crawler. */
.hi-feat li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--live);
  font-weight: 800;
}
.hi-feat a { color: var(--pink2); }

.hi-tags { margin-top: 22px; }
.hi-tags h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.hi-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* Foldables / large portrait tablets (iPad ~834px, Galaxy Fold ~884px). Match
   site.css's tablet type-scale so the footer link columns and the homepage
   intro/FAQ block (the .hi section) aren't left at phone sizes. `.ft` sets the
   base for the columns, so bumping it cascades to .ft-col a and the brand
   paragraph; `.hi` does the same for the intro/FAQ body text, with the h3/h4
   subheads stepped up on top. Phones (<700px) and desktop (>900px) untouched. */
@media (min-width: 700px) and (max-width: 900px) {
  /* footer link columns */
  .ft { font-size: 14.5px; }
  .ft-col h3 { font-size: 12px; }
  .ft-legal { font-size: 13.5px; }
  .ft-badge { font-size: 12px; }

  /* homepage intro + FAQ (below the grid) */
  .hi { font-size: 15px; }
  .hi h3, .hi h4 { font-size: 16px; }
}

/* ---- cookie consent ----
   A settings PANEL, not an auto-showing bar. Consent is collected by the age
   gate every first-time visitor already sees; this is only for changing the
   answer afterwards, which has to be as easy as giving it. */

.cc-back {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(0, 0, 0, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cc-back[hidden] { display: none; }

.cc-modal {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.cc-modal h2 { font-size: 18px; margin: 0 0 8px; padding-right: 26px; }
.cc-modal p  { color: var(--muted); line-height: 1.6; margin: 0 0 16px; font-size: 13.5px; }

.cc-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: 0;
  color: var(--muted);
  font-size: 22px; line-height: 1;
  cursor: pointer;
}
.cc-close:hover { color: var(--text); }

/* ---- the checkbox block (shared by the panel and the age gate) ---- */

.cc-prefs-h {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
  font-size: 14px;
}

.cc-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
}
.cc-row i { font-style: italic; opacity: .8; }

/* Big enough to hit on a phone without aiming. */
.cc-row input { width: 17px; height: 17px; accent-color: var(--pink); cursor: pointer; }

/* Required-and-disabled, so it must not look clickable. */
.cc-row-fixed { cursor: default; opacity: .75; }
.cc-row-fixed input { cursor: default; }

.cc-policy {
  display: inline-block;
  margin-top: 6px;
  color: var(--pink2);
  font-size: 13px;
}

.cc-actions { margin-top: 18px; }

.cc-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  cursor: pointer;
}
.cc-btn:hover { background: rgba(255, 255, 255, .1); }

.cc-save {
  width: 100%;
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.cc-save:hover { filter: brightness(1.08); background: var(--pink); }

/* ---- age gate ----
   Overlay, not a redirect — the page stays in the DOM behind it so crawlers
   still see the site. .ag-on is set server-side on <html> in header.php. */

.ag-on { overflow: hidden; }
.ag-on body { overflow: hidden; }

/* Blur what is behind rather than hiding it: the visitor can see there is a
   real site here, which is worth more than a black screen. pointer-events off
   so nothing behind is clickable through the overlay. */
.ag-on .shell,
.ag-on .ft {
  filter: blur(9px);
  pointer-events: none;
  user-select: none;
}

.ag {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 11, 25, .82);
  overflow-y: auto;
}

.ag-box {
  width: 100%;
  max-width: 470px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px 22px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.ag-logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: 14px;
}
.ag-logo .dot { color: var(--pink); }

.ag-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ag-live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.ag-live b { color: var(--live); }

.ag-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

/* The consent block is left-aligned inside a centred box on purpose — a
   checkbox list reads badly centred, and it should look like a form control
   rather than more marketing copy. */
.ag-box .cc-prefs {
  text-align: left;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  margin-bottom: 18px;
}

.ag-enter {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--pink), var(--accent2));
  color: #fff;
  cursor: pointer;
  letter-spacing: .2px;
}
.ag-enter:hover { filter: brightness(1.08); }

.ag-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.ag-legal {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  margin: 16px 0 0;
}
.ag-legal a { color: var(--pink2); }

.ag-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ag-exit { color: var(--muted); font-size: 13px; text-decoration: underline; }
.ag-exit:hover { color: var(--text); }

.ag-badges { display: flex; gap: 7px; }

.ag-badge {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--muted);
}
a.ag-badge:hover { color: var(--text); }

@media (max-width: 480px) {
  .ag-box { padding: 22px 18px 18px; }
  .ag-logo { font-size: 19px; }
}