/* Grumpy Apps — shared site styles */
:root {
  --ink: #242529;
  --ink-2: #3a3b40;
  --orange: #E97845;
  --orange-deep: #d4602c;
  --cream: #F6F3ED;
  --paper: #fffdf9;
  --muted: #6c6a66;
  --line: #e4ded3;
  --sg: #fb8a2e;
  --sg-2: #ffc23d;
  --gf: #0194fd;
  --gf-2: #4bcbfd;
  --radius: 28px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 108px; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: rgba(36,37,41,.07); }
.lang-switch {
  display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; margin-left: 8px;
}
.lang-switch button {
  border: 0; background: none; font: 700 12px/1 var(--body); letter-spacing: .06em;
  padding: 7px 10px; border-radius: 999px; cursor: pointer; color: var(--ink);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn {
    display: grid; align-content: center; gap: 5px; margin-left: auto;
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; padding: 0 13px;
  }
  .menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(36,37,41,.35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font: 800 1.6rem/1.2 var(--display); letter-spacing: -0.02em; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .site-header .wrap { height: 84px; }
  .brand img { height: 46px; }
}

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px/1 var(--body); text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--cream);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
  box-shadow: 0 0 0 0 var(--ink);
  cursor: pointer;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: 4px 4px 0 0 var(--orange); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { box-shadow: 4px 4px 0 0 var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.chip {
  display: inline-block; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; border: 1.5px solid currentColor;
}
.eyebrow {
  font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 72px 0 36px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img.logo { height: 40px; width: auto; margin-bottom: 18px; }
.site-footer p { color: #b9b5ad; margin: 0; max-width: 32ch; }
.site-footer h4 { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 6px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; color: var(--cream); opacity: .85; }
.site-footer ul a:hover { opacity: 1; color: var(--orange); }
.site-footer .bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #3a3b40;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #8f8b84;
}
@media (max-width: 760px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* =========================================================
   Privacy policy pages
   ========================================================= */
.policy-hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 120px; }
.policy-hero.flock { background: linear-gradient(160deg, var(--gf-2), var(--gf) 70%); }
.policy-hero.still { background: radial-gradient(circle at 70% 30%, var(--sg-2), var(--sg) 65%); }
.policy-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.policy-hero .crumb { font-weight: 600; font-size: 14px; opacity: .9; }
.policy-hero .crumb a { text-decoration: none; }
.policy-hero .crumb a:hover { text-decoration: underline; }
.policy-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 14px 0 12px; }
.policy-hero .meta { margin: 0; font-weight: 600; opacity: .92; }
.policy-hero .art { width: 260px; height: auto; align-self: center; border-radius: 28px; transform: rotate(4deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.policy-hero::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -60px; height: 120px;
  background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
@media (max-width: 760px) {
  .policy-hero { padding: 48px 0 84px; }
  .policy-hero .art { display: none; }
  .policy-hero .wrap { grid-template-columns: 1fr; }
  .policy-hero::after { height: 60px; bottom: -30px; }
}

.policy-body { padding: 8px 0 96px; }
.policy-body .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.policy-aside { position: sticky; top: 130px; display: grid; gap: 18px; }
.policy-aside .card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.policy-aside h4 { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.policy-aside .lang { display: grid; gap: 8px; margin: 0; }
.policy-aside .lang a {
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; font-weight: 700; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--ink);
  transition: background .2s, color .2s;
}
.policy-aside .lang a::after { content: "↓"; }
.policy-aside .lang a:hover { background: var(--ink); color: var(--cream); }
.policy-aside .card p { margin: 0; font-size: 15px; color: var(--muted); }
.policy-aside .card p a { color: var(--orange-deep); font-weight: 700; word-break: break-all; }
@media (max-width: 900px) {
  .policy-body .wrap { grid-template-columns: 1fr; gap: 24px; }
  .policy-aside { position: static; }
  .policy-aside .lang { grid-template-columns: 1fr 1fr; }
}

section.policy {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px clamp(22px, 4vw, 52px) 40px; margin-bottom: 28px; scroll-margin-top: 124px;
  counter-reset: none;
}
section.policy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 28px 0 18px; padding-bottom: 18px; border-bottom: 2px dashed var(--line);
}
section.policy h3 { font-size: 1.25rem; margin: 34px 0 8px; letter-spacing: -0.015em; line-height: 1.2; }
section.policy p, section.policy li { color: #3c3d42; }
section.policy a { color: var(--orange-deep); font-weight: 600; text-underline-offset: 3px; }
section.policy strong { color: var(--ink); }
section.policy ul { padding-left: 0; list-style: none; }
section.policy li { position: relative; padding-left: 26px; margin: 6px 0; }
section.policy li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--orange);
  transform: rotate(45deg);
}
html { scroll-padding-top: 110px; }
