/* legal.css — shared styling for the standalone legal documents
   (/terms, /privacy, /cookies, /disclaimer).

   These four pages were previously duplicating ~150 lines of inline <style>
   each, which is how legal pages drift apart visually. One stylesheet keeps
   them identical and keeps the CSP's `style-src 'self'` happy. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor links from the table of contents land under the sticky nav. */
  scroll-padding-top: 90px;
}

body {
  font-family: "Nunito", sans-serif;
  background: linear-gradient(180deg, #f4fbff, #e6f1ff 40%, #f0f7ff 100%);
  min-height: 100vh;
  min-height: 100dvh;
  color: #05223a;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #083463;
  text-decoration: none;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav a.back {
  color: #1b6fd8;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

/* ── Document body ───────────────────────────────────────────────────────── */
.doc {
  max-width: 820px;
  margin: 40px auto 0;
  background: #fff;
  border: 1px solid #c8d7eb;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(8, 52, 99, 0.06);
}

.doc h1 {
  color: #083463;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 6px;
}

.doc .updated {
  color: #6b829c;
  font-size: 14px;
  margin-bottom: 8px;
}

.doc .summary {
  background: #f0f7ff;
  border: 1px solid #cfe2fb;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0 8px;
}

.doc .summary strong {
  color: #083463;
}

.doc .summary p,
.doc .summary li {
  font-size: 15px;
  color: #35506b;
}

.doc .summary p:last-child,
.doc .summary li:last-child {
  margin-bottom: 0;
}

.doc h2 {
  color: #083463;
  font-size: 20px;
  font-weight: 800;
  margin: 30px 0 10px;
  scroll-margin-top: 90px;
}

.doc h3 {
  color: #124b85;
  font-size: 17px;
  font-weight: 800;
  margin: 20px 0 8px;
}

.doc p,
.doc li {
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  margin-bottom: 12px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc a {
  color: #1b6fd8;
  font-weight: 700;
}

/* Callout used for genuinely important warnings (safety, allergens, AI
   accuracy). Deliberately louder than .note. */
.doc .warn {
  background: #fff5f5;
  border: 1px solid #f3c2c2;
  border-left: 4px solid #d64545;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 22px 0;
}

.doc .warn p:last-child,
.doc .warn li:last-child {
  margin-bottom: 0;
}

.doc .warn strong {
  color: #a32a2a;
}

/* Neutral informational aside. */
.doc .note {
  background: #f0f7ff;
  border-left: 4px solid #1b6fd8;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  color: #41566b;
  margin: 24px 0;
}

/* Legally operative all-caps blocks (warranty disclaimer, liability cap).
   Conspicuousness is a real requirement for these under UCC §2-316 and most
   consumer statutes, so they get their own visual treatment rather than being
   buried in body copy. */
.doc .legal-block {
  background: #f7fafc;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 18px 0;
}

.doc .legal-block p {
  font-size: 14.5px;
  line-height: 1.65;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #21384f;
  font-weight: 700;
}

.doc .legal-block p:last-child {
  margin-bottom: 0;
}

/* Table of contents. */
.toc {
  background: #f7fafc;
  border: 1px solid #d5e0ec;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 26px 0 8px;
}

.toc h2 {
  font-size: 15px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b829c;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}

.toc li {
  font-size: 14.5px;
  margin-bottom: 6px;
  break-inside: avoid;
}

.toc a {
  color: #1b6fd8;
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  text-decoration: underline;
}

/* Data tables (cookie inventory, retention schedule, subprocessors). */
.doc .table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14.5px;
}

.doc th,
.doc td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #e4ecf5;
  vertical-align: top;
  line-height: 1.55;
  color: #2c3e50;
}

.doc th {
  background: #f0f7ff;
  color: #083463;
  font-weight: 800;
  white-space: nowrap;
}

.doc tr:last-child td {
  border-bottom: none;
}

/* Cross-links between the four legal documents. */
.doc-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid #e4ecf5;
}

.doc-nav a {
  background: #f0f7ff;
  border: 1px solid #cfe2fb;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #1b6fd8;
  text-decoration: none;
}

.doc-nav a:hover {
  background: #e2efff;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 20px 50px;
  color: #6b829c;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: #1b6fd8;
  text-decoration: none;
  font-weight: 700;
}

.footer-heart {
  height: 1.1em;
  width: 1.1em;
  object-fit: contain;
  vertical-align: -0.2em;
  margin: 0 4px;
}

@media (max-width: 600px) {
  .nav {
    padding: 16px 20px;
  }

  .doc {
    padding: 28px 20px;
    margin: 20px 14px 0;
  }

  .doc h1 {
    font-size: 27px;
  }

  .toc ol {
    columns: 1;
  }
}
