:root{
  --olive:#726927;
  --olive-dark:#4a4419;
  --gold:#E9A901;
  --orange:#F2790B;
  --red:#CE2B37;
  --cream:#FDFAF0;
  --tint:#F5EFDA;
  --ink:#3d3826;
  --ink-soft:#7a7360;
  --white:#ffffff;
  --line:#e8e0c8;
  --shadow: 0 10px 24px -12px rgba(74,68,25,.28);
  --r-card:18px;
  --r-tile:12px;
  --r-pill:20px;
  --r-chip:10px;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  overscroll-behavior-y:none;
}
a{ color:var(--olive); }
.app{
  max-width:480px;
  margin:0 auto;
  min-height:100vh;
  min-height:100dvh;
  background:var(--cream);
  display:flex;
  flex-direction:column;
  position:relative;
}

/* ---------- HEADER (same topbar as the rest of the site) ----------
   Mobile (default): one compact row — menu | logo | lang, logo smaller.
   Desktop (≥900px, below): restored to the original two-row layout. */
.topbar{
  position:sticky; top:0; z-index:30;
  background:var(--cream);
  padding:14px 18px 10px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
}
.topbar .lang-toggle{
  display:inline-flex; background:var(--white); border-radius:var(--r-pill);
  padding:3px; box-shadow:var(--shadow); margin-bottom:0;
  justify-self:end;
}
.topbar .lang-toggle button{
  border:none; background:transparent; font-family:'Inter',sans-serif;
  font-weight:700; font-size:11px; padding:4px 11px; border-radius:14px;
  color:var(--ink-soft); cursor:pointer;
}
.topbar .lang-toggle button.active{ background:var(--gold); color:var(--white); }
.topbar-logo{ justify-self:center; }
.topbar-logo img{ height:34px; width:auto; display:block; }
.menu-toggle{
  justify-self:start;
  width:36px; height:36px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  background:var(--white); border:none; border-radius:50%;
  box-shadow:var(--shadow); color:var(--ink); cursor:pointer; padding:0;
}
.menu-toggle svg{ width:19px; height:19px; }

/* ---------- GENERAL MENU DRAWER (same as the rest of the site) ---------- */
body.drawer-locked{ overflow:hidden; }
.menu-drawer{
  position:fixed; inset:0; z-index:110;
  background:rgba(20,18,8,.55);
  opacity:0; visibility:hidden;
  transition:opacity .25s ease, visibility 0s linear .25s;
}
.menu-drawer.open{
  opacity:1; visibility:visible;
  transition:opacity .25s ease, visibility 0s linear 0s;
}
.menu-drawer-panel{
  position:absolute; top:0; left:0; bottom:0;
  width:min(84vw, 340px);
  display:flex; flex-direction:column;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  background:var(--cream);
  box-shadow:16px 0 40px -18px rgba(0,0,0,.4);
  padding:calc(20px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  transform:translateX(-100%);
  transition:transform .3s cubic-bezier(.22,.7,.3,1);
}
.menu-drawer.open .menu-drawer-panel{ transform:translateX(0); }
.menu-drawer-close{
  position:absolute; top:calc(14px + env(safe-area-inset-top)); right:14px;
  width:32px; height:32px; border-radius:50%;
  border:none; background:var(--tint); color:var(--ink);
  font-size:20px; line-height:1;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.drawer-logo{ display:block; margin:0 0 22px; }
.drawer-logo img{ height:40px; width:auto; display:block; }
.drawer-nav{ display:flex; flex-direction:column; gap:2px; }
.drawer-link{
  display:flex; align-items:center; gap:12px;
  padding:11px 8px; border-radius:var(--r-tile);
  text-decoration:none; color:var(--ink);
}
.drawer-link.active{ background:var(--tint); }
.drawer-link .drawer-icon{
  flex:0 0 auto; width:32px; height:32px; border-radius:50%;
  background:var(--tint); color:var(--olive-dark);
  display:flex; align-items:center; justify-content:center;
}
.drawer-link.active .drawer-icon{ background:var(--gold); color:#fff; }
.drawer-link .drawer-icon svg{ width:16px; height:16px; }
.drawer-link .drawer-txt{ display:flex; flex-direction:column; min-width:0; flex:1; }
.drawer-link .drawer-txt b{ font-size:13.5px; font-weight:700; }
.drawer-link .drawer-txt small{ font-size:11px; color:var(--ink-soft); margin-top:1px; }
.drawer-section{ margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.drawer-label{ font-size:11px; font-weight:700; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.03em; margin-bottom:10px; }
.drawer-social{ display:flex; gap:8px; flex-wrap:wrap; }
.drawer-social a{
  flex:1 1 auto; text-align:center; min-width:0;
  background:var(--tint); color:var(--ink);
  font-weight:600; font-size:12px;
  padding:9px 6px; border-radius:var(--r-chip);
  text-decoration:none;
}
.drawer-foot{ margin-top:auto; padding-top:22px; font-size:11px; color:var(--ink-soft); text-align:center; }

/* ---------- PAGE-LEVEL FOOTER (same as homepage/comanda-acasa/card) ---------- */
footer.foot{ text-align:center; padding:22px 18px 26px; margin-top:auto; }
footer.foot p{ font-family:'Inter',sans-serif; font-size:10.5px; color:var(--ink-soft); margin:0; }

/* ---------- LEGAL LINKS (footer + drawer), shared by every page site-wide ----------
   Added 2026-09-26 alongside the new /confidentialitate/ and /termeni-si-conditii/ pages. */
footer.foot .foot-legal, .drawer-foot-legal{
  margin:2px 0 0; font-size:10.5px; color:var(--ink-soft); text-align:center;
}
.foot-legal a, .drawer-foot-legal a{ color:var(--ink-soft); text-decoration:underline; }
.foot-legal a:hover, .drawer-foot-legal a:hover{ color:var(--olive); }

/* ---------- LEGAL PAGE CONTENT (/confidentialitate/, /termeni-si-conditii/) ---------- */
.legal-main{ flex:1; padding:6px 18px 28px; display:flex; flex-direction:column; }
.legal-title{
  font-family:'PT Serif',serif; font-weight:700; font-size:24px;
  color:var(--ink); margin:6px 0 4px; text-align:center;
}
.legal-meta{
  font-family:'Inter',sans-serif; font-size:12.5px; color:var(--ink-soft);
  text-align:center; margin:0 0 26px;
}
.legal-meta span{ display:block; }
.legal-body h2{
  font-family:'PT Serif',serif; font-weight:700; font-size:16px;
  color:var(--olive-dark); margin:26px 0 10px;
}
.legal-body section:first-of-type h2{ margin-top:0; }
.legal-body p{ font-size:13.5px; line-height:1.65; color:var(--ink); margin:0 0 12px; }
.legal-body ul{ margin:0 0 12px; padding-left:20px; }
.legal-body li{ font-size:13.5px; line-height:1.65; color:var(--ink); margin:0 0 6px; }
.legal-body a{ color:var(--olive); }

/* ---------- DESKTOP (≥900px): same floating-card-over-blurred-hero look as the
   rest of the site (see card/style.css) — restore two-row header, cap the .app
   card at a fixed height with rounded corners/shadow, dark blurred hero photo
   behind it instead of the plain cream page background. ---------- */
@media (min-width:900px){
  body{
    display:flex; align-items:center; justify-content:center;
    min-height:100vh;
    background:#141310;
  }
  body::before{
    content:"";
    position:fixed; inset:-30px;
    z-index:-2;
    background-image:url(../img/hero-family.webp);
    background-size:cover;
    background-position:68% 42%;
    filter:blur(7px) saturate(1.05) brightness(.88);
    transform:scale(1.06);
  }
  body::after{
    content:"";
    position:fixed; inset:0;
    z-index:-1;
    background:linear-gradient(175deg, rgba(20,19,16,.42) 0%, rgba(20,19,16,.66) 62%, rgba(20,19,16,.78) 100%);
  }
  .app{
    width:100%;
    min-height:auto;
    height:min(860px, calc(100vh - 80px));
    border-radius:28px;
    box-shadow:0 44px 90px -24px rgba(20,19,10,.55), 0 12px 30px -12px rgba(20,19,10,.35);
    overflow:hidden;
  }
  .topbar{
    flex:0 0 auto;
    padding:14px 18px 6px;
    grid-template-columns:36px 1fr 36px;
    grid-template-areas:
      "toggle lang ."
      "logo logo logo";
    row-gap:18px;
  }
  .menu-toggle{ grid-area:toggle; }
  .topbar .lang-toggle{ grid-area:lang; justify-self:center; }
  .topbar .lang-toggle button{ font-size:12px; padding:6px 16px; border-radius:16px; }
  .topbar-logo{ grid-area:logo; }
  .topbar-logo img{ height:52px; }
  main{ flex:1; overflow-y:auto; display:flex; flex-direction:column; }
  footer.foot{ margin-top:auto; }
}
