/* Shared styles for the Qazyo legal pages (legal / privacy / cookies).
   Reuses the landing page's brand tokens and self-hosted heading font, so
   these pages match index.html without any third-party requests. */

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/DMSerifDisplay-Regular.woff2") format("woff2");
}

:root {
  --indigo: #6366f1;
  --purple: #a855f7;
  --pink: #ec4899;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- Top bar ------------------------------------------------------------ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate-900); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-gradient);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.6);
}
.brand .name { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.5px; }

.lang-toggle { display: inline-flex; background: var(--slate-100); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-toggle button {
  border: 0; background: transparent; color: var(--slate-500);
  font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--indigo); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

/* ---- Document ----------------------------------------------------------- */
main { max-width: 760px; margin: 0 auto; padding: 32px 24px 56px; }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--slate-500); text-decoration: none; font-size: 13px; font-weight: 700;
  transition: color 0.15s;
}
.back:hover { color: var(--slate-800); }
.back svg { width: 15px; height: 15px; }

.doc-head { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.doc-head .icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(99, 102, 241, 0.1); display: grid; place-items: center; color: var(--indigo);
}
.doc-head .icon svg { width: 22px; height: 22px; }
.doc-head h1 {
  font-family: var(--font-display); font-weight: 400; font-size: 28px;
  letter-spacing: 0.3px; color: var(--slate-900); line-height: 1.2;
}
.doc-head .updated { font-size: 12px; color: var(--slate-400); font-weight: 600; }

.intro { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.intro p { font-size: 14.5px; color: var(--slate-600); }

section.block { margin-top: 30px; }
section.block h2 { font-size: 18px; font-weight: 700; color: var(--slate-800); }
section.block .body { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
section.block .body p { font-size: 14.5px; color: var(--slate-600); }

/* highlighted [placeholder] fields still to be filled in before launch */
.ph { background: #fef3c7; color: #92400e; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* ---- Cookie cards ------------------------------------------------------- */
.cookie-sec { margin-top: 30px; }
.cookie-sec h2 { font-size: 18px; font-weight: 700; color: var(--slate-800); }
.cookie-sec .desc { font-size: 14px; color: var(--slate-500); margin-top: 2px; }
.cards { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.card { border: 1px solid var(--slate-200); background: #fff; border-radius: 12px; padding: 14px; }
.card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .cname { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--slate-800); word-break: break-word; }
.card .ctype { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--indigo); background: rgba(99,102,241,0.1); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.card .purpose { font-size: 14px; color: var(--slate-600); margin-top: 8px; }
.card .ret { font-size: 12px; color: var(--slate-400); margin-top: 6px; }
.card .ret b { color: var(--slate-500); font-weight: 600; }

.rights { margin-top: 34px; border: 1px solid var(--slate-200); background: #fff; border-radius: 16px; padding: 18px; }
.rights h2 { font-size: 16px; font-weight: 700; color: var(--slate-800); }
.rights p { font-size: 14px; color: var(--slate-600); margin-top: 6px; }

/* ---- Page footer (cross-links) ----------------------------------------- */
.page-footer { margin-top: 40px; border-top: 1px solid var(--slate-200); padding-top: 22px; text-align: center; }
.page-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--slate-400); }
.page-footer nav a { color: var(--slate-400); text-decoration: none; transition: color 0.15s; }
.page-footer nav a:hover { color: var(--indigo); }
.page-footer nav .sep { color: var(--slate-300); }
.page-footer nav .current { color: var(--slate-500); }
.page-footer .pb { margin-top: 12px; font-size: 10px; font-weight: 900; color: var(--slate-300); text-transform: uppercase; letter-spacing: 0.3em; }

@media (max-width: 560px) {
  .doc-head h1 { font-size: 24px; }
}
