/* Buslio — Cookie Policy page styles.

   SELF-CONTAINED, SAME-ORIGIN static stylesheet (style-src 'self'), so it is
   CSP-safe and does NOT depend on the Vite/Tailwind build. The production
   deploy is a `git pull` + artisan cache warm with NO asset rebuild, and
   /public/build is git-ignored, so any brand-new Tailwind utility would risk
   rendering unstyled in prod. Everything the page needs lives here, mirroring
   the pattern of public/css/consent.css.

   Brand blue #1F63F2, ink #0F172A. Mobile-first, accessible, on-brand with the
   Buslio design system (rounded-2xl cards, soft shadows, slate palette). */

:root {
  --cp-brand: #1f63f2;
  --cp-brand-700: #184dd8;
  --cp-brand-800: #1a43af;
  --cp-brand-50: #eef6ff;
  --cp-ink: #0f172a;
  --cp-slate-700: #334155;
  --cp-slate-600: #475569;
  --cp-slate-500: #64748b;
  --cp-slate-400: #94a3b8;
  --cp-slate-300: #cbd5e1;
  --cp-slate-200: #e2e8f0;
  --cp-slate-100: #f1f5f9;
  --cp-slate-50: #f8fafc;
  --cp-border: #e2e8f0;
  --cp-radius: 16px;
  --cp-radius-sm: 12px;
  --cp-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --cp-emerald-50: #ecfdf5;
  --cp-emerald-200: #a7f3d0;
  --cp-emerald-700: #047857;
  --cp-violet-50: #f5f3ff;
  --cp-violet-200: #ddd6fe;
  --cp-violet-700: #6d28d9;
  --cp-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cp-page {
  color: var(--cp-slate-700);
  font-family: var(--cp-font);
}
.cp-page *,
.cp-page *::before,
.cp-page *::after { box-sizing: border-box; }

.cp-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.cp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #132c63 48%, #1f63f2 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cp-hero__inner {
  padding-block: 40px 44px;
}
@media (min-width: 640px) {
  .cp-hero__inner { padding-block: 56px 60px; }
}
.cp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(191, 219, 254, 0.75);
  margin-bottom: 16px;
}
.cp-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.cp-breadcrumb a:hover { color: #fff; }
.cp-breadcrumb svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.7; }
.cp-breadcrumb__current { color: #fff; font-weight: 500; }
.cp-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cp-hero__lede {
  margin: 12px 0 0;
  max-width: 42rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.6;
  color: rgba(191, 219, 254, 0.82);
}
.cp-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  backdrop-filter: blur(2px);
}
.cp-updated svg { width: 15px; height: 15px; opacity: 0.85; }
.cp-updated strong { color: #fff; font-weight: 600; }

/* ── Layout: sticky TOC + content ─────────────────────────── */
.cp-body { padding-block: 32px 56px; }
@media (min-width: 640px) { .cp-body { padding-block: 40px 72px; } }

.cp-grid { display: block; }
@media (min-width: 1024px) {
  .cp-grid {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
}

/* ── Table of contents ────────────────────────────────────── */
.cp-toc {
  margin-bottom: 24px;
  border: 1px solid var(--cp-border);
  background: #fff;
  border-radius: var(--cp-radius);
  padding: 16px 18px;
  box-shadow: var(--cp-shadow-soft);
}
@media (min-width: 1024px) {
  .cp-toc {
    position: sticky;
    top: 24px;
    margin-bottom: 0;
  }
}
.cp-toc__title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cp-slate-400);
  margin: 0 0 12px;
}
.cp-toc__list { list-style: none; margin: 0; padding: 0; }
.cp-toc__list li { margin: 0; }
.cp-toc__list a {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cp-slate-600);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.cp-toc__list a:hover {
  background: var(--cp-brand-50);
  color: var(--cp-brand-700);
}
.cp-toc__list a:focus-visible {
  outline: 3px solid rgba(31, 99, 242, 0.4);
  outline-offset: 2px;
}

/* ── Content sections ─────────────────────────────────────── */
.cp-content { min-width: 0; }
.cp-section { scroll-margin-top: 88px; }
.cp-section + .cp-section { margin-top: 40px; }
.cp-section__head { margin-bottom: 16px; }
.cp-section h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cp-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.cp-section h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cp-ink);
}
.cp-prose p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cp-slate-600);
}
.cp-prose p:last-child { margin-bottom: 0; }

/* ── Summary / "at a glance" card ─────────────────────────── */
.cp-summary {
  border: 1px solid var(--cp-border);
  background: #fff;
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-soft);
  overflow: hidden;
  margin-bottom: 40px;
}
.cp-summary__top {
  padding: 22px 22px 6px;
}
.cp-summary__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cp-brand-700);
  background: var(--cp-brand-50);
  padding: 5px 11px;
  border-radius: 999px;
}
.cp-summary__eyebrow svg { width: 14px; height: 14px; }
.cp-summary__title {
  margin: 12px 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cp-ink);
  letter-spacing: -0.01em;
}
.cp-summary__intro {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--cp-slate-600);
}
.cp-summary__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 22px 4px;
}
@media (min-width: 640px) {
  .cp-summary__grid { grid-template-columns: repeat(3, 1fr); }
}
.cp-fact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cp-fact__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--cp-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cp-brand-50);
  color: var(--cp-brand);
}
.cp-fact__icon svg { width: 19px; height: 19px; }
.cp-fact__title {
  margin: 1px 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-ink);
}
.cp-fact__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cp-slate-500);
}
.cp-summary__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 22px;
  margin-top: 8px;
  border-top: 1px solid var(--cp-slate-100);
}
.cp-summary__note {
  font-size: 12.5px;
  color: var(--cp-slate-500);
  line-height: 1.5;
}

/* ── Buttons ──────────────────────────────────────────────── */
.cp-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--cp-radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cp-btn svg { width: 17px; height: 17px; }
.cp-btn--primary { background: var(--cp-brand); color: #fff; }
.cp-btn--primary:hover { background: var(--cp-brand-700); }
.cp-btn:focus-visible {
  outline: 3px solid rgba(31, 99, 242, 0.4);
  outline-offset: 2px;
}

/* ── Category cards ───────────────────────────────────────── */
.cp-cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .cp-cats { grid-template-columns: repeat(3, 1fr); }
}
.cp-cat {
  position: relative;
  border: 1px solid var(--cp-border);
  background: #fff;
  border-radius: var(--cp-radius);
  padding: 20px;
  box-shadow: var(--cp-shadow-soft);
  display: flex;
  flex-direction: column;
}
.cp-cat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cp-cat__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--cp-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cp-cat__icon svg { width: 20px; height: 20px; }
.cp-cat__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-ink);
}
.cp-cat__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cp-slate-500);
}

/* Category accents */
.cp-cat--necessary .cp-cat__icon { background: var(--cp-emerald-50); color: var(--cp-emerald-700); }
.cp-cat--analytics .cp-cat__icon { background: var(--cp-brand-50); color: var(--cp-brand); }
.cp-cat--marketing .cp-cat__icon { background: var(--cp-violet-50); color: var(--cp-violet-700); }

/* ── Badges / pills ───────────────────────────────────────── */
.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cp-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.cp-badge--on {
  background: var(--cp-emerald-50);
  color: var(--cp-emerald-700);
  border-color: var(--cp-emerald-200);
}
.cp-badge--analytics {
  background: var(--cp-brand-50);
  color: var(--cp-brand-700);
  border-color: #bbd9ff;
}
.cp-badge--marketing {
  background: var(--cp-violet-50);
  color: var(--cp-violet-700);
  border-color: var(--cp-violet-200);
}
.cp-badge--optional {
  background: var(--cp-slate-100);
  color: var(--cp-slate-600);
  border-color: var(--cp-slate-200);
}

/* ── Cookie table ─────────────────────────────────────────── */
.cp-table-wrap {
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  background: #fff;
  box-shadow: var(--cp-shadow-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.cp-table thead th {
  position: sticky;
  top: 0;
  background: var(--cp-slate-50);
  color: var(--cp-slate-500);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cp-border);
  white-space: nowrap;
}
.cp-table tbody td {
  padding: 13px 16px;
  vertical-align: top;
  color: var(--cp-slate-600);
  line-height: 1.5;
}
.cp-table tbody tr + tr td { border-top: 1px solid var(--cp-slate-100); }
.cp-table tbody tr:nth-child(even) { background: #fcfdfe; }
.cp-table__name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--cp-ink);
  font-weight: 600;
  white-space: nowrap;
}
.cp-table__ret { white-space: nowrap; }

/* ── Third-party services ─────────────────────────────────── */
.cp-tp {
  border: 1px solid var(--cp-border);
  background: #fff;
  border-radius: var(--cp-radius);
  padding: 18px 20px;
  box-shadow: var(--cp-shadow-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
}
.cp-tp__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--cp-radius-sm);
  background: var(--cp-brand-50);
  color: var(--cp-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cp-tp__icon svg { width: 20px; height: 20px; }
.cp-tp__body { min-width: 0; }
.cp-tp__name {
  margin: 2px 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cp-ink);
}
.cp-tp__desc {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cp-slate-500);
}
.cp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-brand-700);
  text-decoration: none;
}
.cp-link:hover { color: var(--cp-brand-800); text-decoration: underline; }
.cp-link svg { width: 14px; height: 14px; }
.cp-link:focus-visible {
  outline: 3px solid rgba(31, 99, 242, 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Managing / withdrawing consent ───────────────────────── */
.cp-steps {
  list-style: none;
  counter-reset: cp-step;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cp-steps li {
  counter-increment: cp-step;
  position: relative;
  padding: 14px 16px 14px 54px;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cp-slate-600);
}
.cp-steps li::before {
  content: counter(cp-step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cp-brand-50);
  color: var(--cp-brand-700);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--cp-radius-sm);
  background: var(--cp-emerald-50);
  border: 1px solid var(--cp-emerald-200);
  font-size: 13px;
  line-height: 1.55;
  color: #065f46;
}
.cp-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: var(--cp-emerald-700); }

/* ── Contact + related ────────────────────────────────────── */
.cp-contact p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cp-slate-600);
}
.cp-contact a { color: var(--cp-brand-700); font-weight: 600; text-decoration: underline; }
.cp-contact a:hover { color: var(--cp-brand-800); }

.cp-related {
  margin-top: 40px;
  border-top: 1px solid var(--cp-border);
  padding-top: 24px;
}
.cp-related__title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cp-slate-400);
  margin: 0 0 14px;
}
.cp-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .cp-related__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.cp-related__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-slate-700);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.cp-related__link:hover {
  border-color: #bbd9ff;
  color: var(--cp-brand-700);
  box-shadow: var(--cp-shadow-soft);
}
.cp-related__link svg { width: 16px; height: 16px; flex: 0 0 auto; opacity: 0.6; }
.cp-related__link:focus-visible {
  outline: 3px solid rgba(31, 99, 242, 0.4);
  outline-offset: 2px;
}
