/* ============================================================
   Cosous — shared design system
   Tokens, reset, navigation, footer, and language picker shared
   across the Help Center and Legal pages. Page-specific styles
   live in help.css / legal.css and may override anything here.
   ============================================================ */

:root{
  --primary:#E8852B;
  --primary-soft:#F6E2C8;
  --accent:#E8852B;
  --ink:#2A2622;
  --muted:#7A736B;
  --bg:#F5F1E8;
  --card:#FFFFFF;
  --line:#E7E0D3;
  --radius:20px;
  --shadow:0 24px 50px rgba(42,38,34,.08);
}

*{box-sizing:border-box;margin:0;padding:0}
/* Reserve the scrollbar gutter so centered content doesn't shift sideways when
   page height changes (FAQ loading, accordion expand/collapse, search filtering). */
html{scroll-behavior:smooth;scrollbar-gutter:stable}
body{
  font-family:'Plus Jakarta Sans','Noto Sans SC','Noto Sans JP',system-ui,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
.wrap-wide{max-width:1180px;margin:0 auto;padding:0 24px}

/* ---------- Nav ---------- */
header{position:sticky;top:0;z-index:50;background:rgba(250,249,247,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.3rem}
.logo .mark{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--primary),#ff9472);display:grid;place-items:center;color:#fff}
.logo .mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn-dark{background:var(--ink);color:#fff;padding:13px 22px;border-radius:999px;font-weight:600;font-size:.92rem;display:inline-block;transition:transform .2s}
.btn-dark:hover{transform:translateY(-2px)}

/* ---------- Footer (matches the home page) ---------- */
footer{position:relative;overflow:hidden;padding:64px 0 36px;border-top:1px solid var(--line)}
.foot-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:30px}
.foot-brand .logo{margin-bottom:16px}
.foot-desc{color:var(--muted);font-size:.92rem;line-height:1.55;max-width:280px;margin-bottom:24px}
.foot-social{display:flex;gap:18px}
.foot-social a{color:var(--ink);display:inline-flex;transition:color .2s,transform .2s}
.foot-social a:hover{color:var(--primary);transform:translateY(-2px)}
.foot-social svg{width:20px;height:20px}
.foot-social svg.line{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.foot-social svg.solid{fill:currentColor;stroke:none}
.foot-col h4{color:var(--muted);font-size:.95rem;font-weight:600;margin-bottom:18px}
.foot-col a{display:block;color:var(--ink);font-weight:500;font-size:.95rem;margin-bottom:14px;transition:color .2s}
.foot-col a:hover{color:var(--primary)}
.foot-mark{position:absolute;left:50%;bottom:-.16em;transform:translateX(-50%);z-index:0;pointer-events:none;font-weight:800;font-size:clamp(5rem,21vw,17rem);line-height:.8;letter-spacing:-.04em;text-transform:uppercase;color:var(--ink);opacity:.05;white-space:nowrap}
.foot-bottom{position:relative;z-index:2;margin-top:80px;display:flex;align-items:center;justify-content:center}
.foot-bottom .copyline{color:var(--muted);font-size:.85rem;text-align:center}
/* .foot-bottom prefix raises specificity above the generic .lang rule below
   (which also sets position) so the picker stays pinned to the right. */
.foot-bottom .foot-lang{position:absolute;right:0;top:50%;transform:translateY(-50%)}
@media(max-width:820px){
  .foot-grid{grid-template-columns:1fr 1fr;gap:36px}
  .foot-brand{grid-column:1 / -1}
  .foot-mark{font-size:30vw}
}
@media(max-width:520px){
  .foot-grid{grid-template-columns:1fr}
  .foot-bottom{flex-direction:column-reverse;gap:18px;margin-top:60px}
  .foot-bottom .foot-lang{position:static;transform:none}
}

/* ---------- Language picker ---------- */
.lang{position:relative;display:inline-flex;align-items:center}
.lang select{appearance:none;-webkit-appearance:none;cursor:pointer;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 30px 8px 32px;font-family:inherit;font-size:.82rem;font-weight:600;color:var(--ink);transition:.2s}
.lang select:hover{border-color:var(--primary)}
.lang select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(232,133,43,.16)}
.lang .globe,.lang .caret{position:absolute;pointer-events:none;display:inline-flex;color:var(--muted)}
.lang .globe{left:11px}.lang .caret{right:11px}
.lang .globe svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lang .caret svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
