/* Layout for /about, /contact, /privacy, and /terms.
   Colours come from /guest-theme.css (--ff-accent, --ff-ink, shell tokens).
   City guides stay on /seo.css. */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ff-ink);
  line-height: 1.55;
}

a { color: color-mix(in srgb, var(--ff-accent) 65%, white); }

html[data-theme='light'] a {
  color: color-mix(in srgb, var(--ff-accent-dark) 82%, #1c1428);
}

a:focus-visible {
  outline: 2px solid var(--ff-accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  /* The iOS shell draws under the status bar. These pages are a full
     document load, so the app's safe padding does not carry over.
     Bottom clearance is the pill stack plus a gap, same idea as Profile. */
  --ff-tab-pill-stack: calc(3.15rem + max(0.35rem, env(safe-area-inset-bottom, 0px)));
  padding:
    calc(1.25rem + env(safe-area-inset-top, 0px))
    calc(1.25rem + env(safe-area-inset-right, 0px))
    calc(var(--ff-tab-pill-stack) + 1rem)
    calc(1.25rem + env(safe-area-inset-left, 0px));
}

/* Profile chrome: FeelingFlexi eyebrow, then the page name and icon. */
.page-header { margin: 0 0 0.85rem; }

a.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
html[data-theme] a.page-back,
html[data-theme] a.page-back:is(:hover, :active) {
  color: var(--ff-ink);
}

.page-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ff-accent-label, var(--ff-accent-fg));
  opacity: 0.8;
}

.page-nav,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-nav { margin: 0 0 1.25rem; }
footer nav a:hover { text-decoration: underline; }

h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ff-ink);
}

.page-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--ff-accent-label, var(--ff-accent-fg));
}

h2, p, li, .lede, .meta, .card, footer {
  color: var(--ff-ink);
}

.lede {
  font-size: 1.125rem;
  margin: 1rem 0 0;
}

.meta {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

/* Profile “What’s new”: bg-white/5, border-white/10, text-white/80.
   Light remaps those to surface, line, and 84% ink. Dark keeps the
   raw white alphas. Hover stays on that fill. Beats the theme link colour. */
html[data-theme] :is(.page-nav a, a.cta, a.cta.secondary),
html[data-theme] :is(.page-nav a, a.cta, a.cta.secondary):is(:hover, :active) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--ff-line);
  background-color: var(--ff-surface);
  background-image: none;
  box-shadow: none;
  color: var(--ff-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
html[data-theme='dark'] :is(.page-nav a, a.cta, a.cta.secondary),
html[data-theme='dark'] :is(.page-nav a, a.cta, a.cta.secondary):is(:hover, :active) {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ff-ink);
}

section { margin-top: 1.25rem; }

h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card {
  background: var(--ff-surface);
  border: 1px solid var(--ff-line);
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  margin: 0.75rem 0 0;
  box-shadow:
    0 8px 28px color-mix(in srgb, var(--ff-shell-bot) 35%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--ff-ink) 8%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.card p:last-child { margin-bottom: 0; }

ul, ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }

li + li { margin-top: 0.35rem; }

footer {
  margin-top: 2.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ff-line);
  font-size: 0.95rem;
}

footer p { margin: 0.85rem 0 0; }

/* Floating pill (Swipe · Liked · Profile). Same frost, size, and tokens as
   .ff-glass-tab-pill in the app shell. Fixed here because these pages are
   not inside the phone column. No tab matches, so none is marked active. */
.ff-tab-pill-slot {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: flex;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.ff-glass-tab-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: 3.15rem;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--ff-tab-pill-ink);
  background: var(--ff-tab-pill-bg);
  border: 1px solid var(--ff-tab-pill-border);
  box-shadow: var(--ff-tab-pill-shadow);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
}
html a.ff-tab-pill-tab,
html[data-theme='light'] a.ff-tab-pill-tab,
html[data-theme='dark'] a.ff-tab-pill-tab {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.ff-tab-pill-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: inherit;
}
.ff-tab-pill-glyph.is-active { color: var(--ff-accent); }
@media (prefers-reduced-motion: reduce) {
  .ff-glass-tab-pill {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
