/* The Privacy Policy and the Terms (/privacy, /terms), in Tahta's design (VEN-352). These two are plain HTML files, not part of
   the React site, so the design's tokens, fonts and the closing screen are stated again here; the words themselves are the
   pages' own and a test (src/legalPages.test.js) fails if one of them changes. */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/legal/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/legal/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/legal/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/legal/fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Paytone One'; font-style: normal; font-weight: 400; font-display: swap; src: url('/legal/fonts/paytone-one-latin-400-normal.woff2') format('woff2'); }

:root {
  --font-display: 'Paytone One', system-ui, sans-serif;
  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --green-0: #ffffff; --green-5: #f4f6ec; --green-100: #c4e860;
  --black-0: #b8babd; --black-30: #2d3746; --black-120: #0e1219;
  --elevation-dark-1: #181e28;
  --radius-xl: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--green-5); }
body { margin: 0; min-height: 100vh; background: var(--green-5); color: var(--black-120); font-family: var(--font-sans); font-size: 16px; line-height: 24px; }
a { color: inherit; }

/* ── The way back ───────────────────────────────────────────────────────────── */
.legal-back {
  position: fixed;
  left: 24px;
  top: calc(120px + clamp(36px, 6vw, 56px) / 2 - 21.375px);
  z-index: 30;
  display: block;
  width: 48.75px;
  height: 42.75px;
  overflow: hidden;
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.legal-back:hover, .legal-back:focus-visible { width: 186.75px; }
.legal-back img { position: absolute; display: block; max-width: none; }
.legal-back img:first-child { left: 0; top: 0; width: 48.75px; height: 42.75px; }
.legal-back img:last-child { left: 48.75px; top: -7.125px; width: 138px; height: 57px; }
.legal-back:focus-visible { outline: 2px solid var(--black-120); outline-offset: 3px; }

/* ── The legal text ─────────────────────────────────────────────────────────── */
.legal-doc { max-width: 800px; margin: 0 auto; padding: 120px 24px 96px; }
.legal-doc h1 { margin: 0 0 16px; font: 400 clamp(36px, 6vw, 56px) / 1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; }
.legal-doc .meta { margin: 0 0 40px; font: 400 13px / 18px var(--font-sans); color: var(--black-30); }
.legal-doc p { margin: 0 0 14px; font: 400 16px / 24px var(--font-sans); text-wrap: pretty; }
.legal-doc strong { font-weight: 700; }
.legal-doc h2 { margin: 44px 0 16px; font: 600 18px / 34px var(--font-sans); color: var(--green-0); }
/* The bar is on the words, one per line, as the design has it. */
.legal-doc h2 span { background: var(--black-120); padding: 4px 16px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal-doc h3 { margin: 28px 0 8px; font: 700 16px / 24px var(--font-sans); }
.legal-doc h4 { margin: 20px 0 6px; font: 700 16px / 24px var(--font-sans); }
.legal-doc ul { margin: 6px 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-doc li { font: 400 16px / 24px var(--font-sans); }
.legal-doc a { text-decoration: underline; text-decoration-color: var(--green-100); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-doc a:hover { text-decoration-color: var(--black-120); }

/* ── The closing screen: JOIN THE MAP, the store badges and the footer ──────── */
.legal-join {
  --word: clamp(40px, min(11.5vw, 14vh), 300px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.legal-join__top, .legal-join__bottom {
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  font: 400 var(--word) / 0.86 var(--font-display);
  text-transform: uppercase;
  color: var(--black-120);
  pointer-events: none;
}
.legal-join__top { flex: none; margin-top: clamp(84px, 11vh, 124px); padding-top: 0.06em; }
.legal-join__bottom { position: relative; z-index: 1; flex: none; margin-bottom: clamp(12px, 2.4vh, 24px); padding: 0.06em 26px 0; }
.legal-join__top span, .legal-join__bottom span { display: inline-block; white-space: pre; }
/* Without scripting the letters are simply there; with it they slide in when the screen is across the middle of the window. */
.js .legal-join__top span { transform: translateY(-120%); transition: transform 900ms cubic-bezier(0.2, 0.85, 0.25, 1) var(--d); }
.js .legal-join__bottom span { transform: translateY(120%); transition: transform 800ms cubic-bezier(0.2, 0.9, 0.25, 1.15) var(--d); }
.js .legal-join.is-in .legal-join__top span, .js .legal-join.is-in .legal-join__bottom span { transform: translateY(0); }
.legal-join__stores { position: relative; z-index: 2; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 44px; padding: 12px 24px; }

.badges { display: flex; align-items: flex-start; gap: 16px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 0; }
.badge img { display: block; width: auto; }

.legal-footer {
  position: relative;
  z-index: 3;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 24px);
  margin: 0 26px 20px;
  padding: clamp(18px, 3vh, 28px) 28px clamp(16px, 2.6vh, 24px);
  background: var(--elevation-dark-1);
  color: var(--green-0);
  border-radius: var(--radius-xl);
}
.legal-footer a { color: var(--green-5); font: 400 13px / 18px var(--font-sans); text-decoration: none; }
.legal-footer a:hover { color: var(--green-100); }
.legal-footer a:focus-visible { outline: 2px solid var(--green-100); outline-offset: 3px; border-radius: 4px; }
.legal-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.legal-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.legal-footer__logo { display: flex; align-items: center; align-self: flex-start; gap: 8px; }
.legal-footer__logo img { display: block; height: 30px; width: auto; }
.legal-footer__logo span { font: 400 15px / 13px var(--font-display); text-transform: uppercase; color: var(--green-0); }
.legal-footer__tagline { margin: 0; font: 500 22px / 28px var(--font-sans); color: var(--green-0); }
.legal-footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.legal-footer__columns { display: flex; flex-wrap: wrap; gap: 40px; }
.legal-footer__column { display: flex; flex-direction: column; gap: 12px; min-width: 120px; }
.legal-footer__title { font: 600 13px / 18px var(--font-sans); color: var(--green-0); }
/* A title that is a link keeps the look of a title (`.legal-footer a` would make it an ordinary link) and has the hover of every link. */
.legal-footer a.legal-footer__title { font: 600 13px / 18px var(--font-sans); color: var(--green-0); }
.legal-footer a.legal-footer__title:hover { color: var(--green-100); }
.legal-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font: 400 12px / 16px var(--font-sans); color: var(--black-0); }
.legal-footer__legal { display: flex; flex-wrap: wrap; gap: 40px; }

@media (max-width: 899px) {
  .legal-back { left: 12px; top: 16px; }
  .legal-doc { padding: 96px 20px 64px; }
  .legal-footer { margin: 0 12px 12px; padding: 24px 20px 20px; }
  .legal-footer__side { align-items: flex-start; }
  .legal-footer__columns { gap: 28px 32px; }
  .legal-footer__legal { gap: 20px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-back, .js .legal-join__top span, .js .legal-join__bottom span { transition: none; }
  .js .legal-join__top span, .js .legal-join__bottom span { transform: none; }
}
