/* Stilul comun al site-ului Lucid: culori, fundal albastru, navigare, footer, butonul principal, paginile legale.
   Îl folosesc toate paginile (index, upload, termeni, confidențialitate, dezabonare). Header-ul și footer-ul vin din brand.js. */
:root {
  --ink: #050a1a; --panel: #0b1432; --panel2: #101b42;
  --line: rgba(130,165,255,.16); --line2: rgba(130,165,255,.32);
  --text: #e9efff; --mute: #9eacce; --dim: #6f7fa6;
  --blue: #2563eb; --blue2: #3b82f6; --sky: #60a5fa; --ice: #cfe0ff;
  --red: #ff5d73; --amber: #fbbf24; --green: #34d399;
  --sans: "Gabarito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Gabarito", system-ui, -apple-system, "Segoe UI", sans-serif;   /* etichetele mici, ca în SNC: același font, nu monospațiat */
  --code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;   /* doar pentru terminal și scanner */
  --shell: min(1180px, calc(100vw - 48px));
  --nav-h: 72px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* fundal albastru: două lumini line, fără grilă și fără linii */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 92% 0%, rgba(37,99,235,.38), transparent 70%), radial-gradient(ellipse 70% 50% at 25% 108%, rgba(96,165,250,.16), transparent 72%); }
a { color: inherit; }
.shell { width: var(--shell); margin: 0 auto; }
.grad { background: linear-gradient(95deg, var(--sky), #93c5fd 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kick { margin: 0 0 14px; font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }

/* ───────── navigare ───────── */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(5,10,26,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { width: var(--shell); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: 0 50%; transform: scaleX(0); }
.logo { display: flex; align-items: center; gap: 9px; font: 800 22px/1 "Inter", system-ui, sans-serif; letter-spacing: -.04em; color: var(--blue2); text-decoration: none; }
.logo .pearl { width: 30px; height: 30px; flex: none; overflow: visible; filter: drop-shadow(0 2px 8px rgba(96,165,250,.35)); }
.lword i { font-style: normal; color: #93c5fd; }
.links { display: flex; align-items: center; gap: 6px; }
.links a { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; transition: color .2s, background .2s; }
.links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.links a.lucy-link { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 8px 16px 8px 10px; color: #fff; font-weight: 600; background: var(--blue); box-shadow: 0 8px 22px -10px rgba(37,99,235,.9); }
.links a.lucy-link:hover { background: #1d4ed8; }
.lucy-link .pearl { width: 22px; height: 22px; overflow: visible; }
.lucy-link svg.ar { width: 14px; height: 14px; transition: transform .2s; }
.lucy-link:hover svg.ar { transform: translateX(3px); }
.menu-btn { display: none; background: none; border: 1px solid var(--line2); color: #fff; font: 600 14px var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; }

/* ───────── butonul principal (colț tăiat), cu variantă pentru <button> ───────── */
.cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 30px; padding: 20px 24px; min-width: min(100%, 360px); border: 0; background: var(--blue); color: #fff; font: 700 17px var(--sans); text-decoration: none; cursor: pointer; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); transition: background .2s, transform .2s; }
.cta:hover { background: #1d4ed8; transform: translateY(-2px); }
.cta:disabled { background: #25397a; color: #8fa0cf; cursor: not-allowed; transform: none; }
.cta svg { width: 16px; height: 16px; flex: none; }

/* ───────── mesaje de stare (eroare / confirmare) ───────── */
.error-state, .empty-state { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.error-state { border: 1px solid rgba(255,93,115,.45); background: rgba(255,93,115,.1); color: #ffb3bf; }
.empty-state { border: 1px solid rgba(52,211,153,.4); background: rgba(52,211,153,.1); color: #a7f3d0; }
.error-state svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ───────── footer ───────── */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--dim); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; } .foot a { text-decoration: none; color: var(--mute); } .foot a:hover { color: #fff; }

/* ───────── perla lui Lucy: ochii și clipitul ───────── */
.pearl .eye { fill: #1e3a8a; }
.pearl .eyes { will-change: transform; }
.pearl .lids { transform-box: fill-box; transform-origin: center; transition: transform .07s ease-in; }
.pearl.blink .lids { transform: scaleY(.1); }

/* ───────── paginile legale: conținut + cuprins lipicios pe ecrane late ───────── */
.legal-layout { width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 780px); gap: clamp(32px, 6vw, 96px); padding: clamp(32px, 5vw, 64px) 0 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 28px); font-size: 14px; }
.toc b { display: block; margin-bottom: 12px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--mute); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: #fff; border-color: var(--sky); }
.legal { min-width: 0; }
.legal h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.legal h2 { margin: 44px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: #c8d3ee; }
.legal ul { padding-left: 20px; } .legal li { margin-bottom: 6px; }
.legal a { color: var(--sky); }
.legal strong { color: #fff; }
.legal-updated { margin-top: 0; color: var(--dim) !important; font: 500 12.5px var(--mono) !important; }
.legal-draft { padding: 12px 16px; border: 1px solid rgba(251,191,36,.4); border-radius: 12px; background: rgba(251,191,36,.08); color: #fcd34d !important; font-size: 13.5px !important; font-weight: 600; }
.legal-table { width: 100%; margin: 14px 0 18px; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #c8d3ee; }
.legal-table th { font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .links { position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 24px 18px; background: rgba(5,10,26,.96); border-bottom: 1px solid var(--line); display: none; }
  .links.open { display: flex; }
  .links a { padding: 14px 6px; border-radius: 10px; } .links a.lucy-link { margin: 8px 0 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
