/* Atkinson Hyperlegible — self-hosted (vendored TTF), no CDN. font-display:swap
   so text paints immediately with the system fallback, then swaps in. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/atkinson-400.ttf') format('truetype'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/atkinson-700.ttf') format('truetype'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/atkinson-400i.ttf') format('truetype'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url('/fonts/atkinson-700i.ttf') format('truetype'); }

/* Shared nav + footer styles for the marketing landing AND the legal pages.
   Loaded by index.html, /privacy/, and /terms/. The nav/footer markup
   itself is injected by chrome.js into <div id="ac-nav"> + <div id="ac-footer">
   placeholders, so the same styles apply to all three. */

/* Brand tokens — duplicated from landing's :root because chrome.css can be
   loaded by pages that don't have the marketing landing's full token set
   (e.g. /privacy/, which uses legal.css for body styling). Kept in sync
   with apps/landing/index.html ':root' block. */
:root {
  --paper:#FBF6EC;
  --paper-2:#F3ECDC;
  --paper-3:#DBD4C5;
  --paper-4:#C5BCA8;
  --ink:#1E1B17;
  --ink-2:#4F5160;
  --ink-3:#8A8275;
  --brand:#279f8e;
  --brand-deep:#1f8276;
}

/* .wrap is the landing's container — 1200 px max with 32 px gutter.
   Both the nav and footer use it; the legal page body uses its own
   narrower .legal-content inside .wrap so paragraphs stay readable. */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ========== NAV ========== */
nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: oklch(0.985 0.005 80 / 0.78);
  border-bottom: 1px solid var(--paper-3);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; color: inherit; }
.logo-img { height: 72px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 400; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 10px 22px; border-radius: 999px;
  background: var(--brand-deep); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 16px;
  transition: transform 120ms ease, background 160ms ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); color: #fff; background: var(--brand-deep); }
.nav-links a.nav-cta { color: #fff; }
/* Globe icon + invisible native <select> overlay, on ALL widths (nav + footer). */
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-ico { display: inline-flex; align-items: center; color: var(--ink-2); cursor: pointer; transition: color 120ms ease; }
.lang-ico svg { display: block; }
.lang-switch:hover .lang-ico, .lang-switch:focus-within .lang-ico { color: var(--ink); }
.lang-switch-select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: none; background: none;
  opacity: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
}

/* ========== FOOTER ========== */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--paper-3);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.foot-col h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 18px;
}
.foot-col a {
  display: block;
  font-size: 15px; color: var(--ink-2);
  text-decoration: none; padding: 6px 0;
}
.foot-col a:hover { color: var(--ink); }
/* Address / contact links live inside <p> — keep them inline so the
   following <br> doesn't stack on top of the block link's padding. */
.foot-col p a { display: inline; padding: 0; }
footer a[href*="senior-shop"] { color: inherit; font-weight: 700; }
.foot-blurb {
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
  margin-top: 16px; max-width: 320px;
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--paper-3);
  font-size: 13px; color: var(--ink-3);
}
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); }
.foot-bottom .made { display: inline-flex; align-items: center; gap: 8px; }
.foot-right { display: inline-flex; align-items: center; gap: 18px; }
.lang-switch-foot .lang-ico { color: var(--ink-3); }
.lang-switch-foot:hover .lang-ico { color: var(--ink); }
.heart { color: oklch(0.60 0.18 25); }

/* ========== RESPONSIVE ========== */
@media (max-width: 920px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .lang-switch { position: relative; display: inline-flex; align-items: center; }
  .lang-ico { display: inline-flex; color: var(--ink-2); }
  .lang-ico svg { width: 22px; height: 22px; display: block; }
  .lang-switch-select {
    position: absolute; inset: 0; width: 100%; height: 100%;
    margin: 0; padding: 0; opacity: 0; border: none; background: none; cursor: pointer;
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .nav-row { padding: 12px 0; }
  .logo-img { height: 44px; }
  .nav-cta { padding: 9px 16px; font-size: 14px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ========== RTL (Arabic) tweaks ========== */
html[lang="ar"] .lang-switch-select {
  background-position: left 8px center;
  padding: 7px 14px 7px 28px;
  margin-right: 0; margin-left: 14px;
}
html[lang="ar"] .foot-blurb { margin-left: auto; margin-right: 0; }
