/* ============================================================
   /cookies — Cookie policy page styles
   Inherits tokens from /briefings/_assets/briefing.css
   (--ink, --cream, --arc, --soft-divider)
   Mirrors /privacy and /legal masthead system.
   ============================================================ */

/* ---- Container ---- */
.cookies-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .cookies-container { padding: 0 40px; }
}

/* ---- Masthead ---- */
.cookies-masthead {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--soft-divider);
}
.cookies-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--arc);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.cookies-eyebrow__rule {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--arc);
}
.cookies-title {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
}
.cookies-title__dot {
  color: var(--arc);
}
.cookies-meta {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(21,23,27,0.55);
  margin: 0 0 50px;
}
.cookies-standfirst {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(21,23,27,0.78);
  max-width: 640px;
  margin: 0;
}

/* ---- Body ---- */
.cookies-body {
  padding: 80px 0 96px;
}
.cookies-prose p {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 24px;
  text-align: left;
  hyphens: none;
}
.cookies-prose p:last-child {
  margin-bottom: 0;
}
.cookies-prose h2 {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 64px 0 24px;
}
.cookies-prose h2:first-child {
  margin-top: 0;
}
.cookies-prose a {
  color: var(--arc);
  text-decoration: none;
}
.cookies-prose a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---- Inline code (cookie names) ---- */
.cookies-prose code {
  font-family: 'Geist Mono', 'Menlo', 'Consolas', ui-monospace, monospace;
  font-size: 13px;
  background: var(--cream, #F5F1E8);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
  border: 1px solid var(--soft-divider);
  white-space: nowrap;
}

/* ---- Cookies table ---- */
.cookies-table-wrap {
  margin: 24px 0 24px;
}
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #E5E1D5;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
}
.cookies-table thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #E5E1D5;
  letter-spacing: 0.02em;
}
.cookies-table tbody td {
  padding: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  vertical-align: top;
  border-bottom: 1px solid #E5E1D5;
}
.cookies-table tbody tr:last-child td {
  border-bottom: none;
}
.cookies-table tbody tr td:first-child {
  width: 180px;
  font-weight: 500;
}
.cookies-table tbody tr td:nth-child(2) {
  width: 200px;
}
.cookies-table tbody tr td:nth-child(2) code {
  display: inline-block;
  margin-bottom: 4px;
}
.cookies-table tbody tr td:nth-child(2) code:last-child {
  margin-bottom: 0;
}

/* ---- Tablet ---- */
@media (max-width: 1023px) {
  .cookies-container { max-width: 640px; }
  .cookies-title { font-size: 44px; }
  .cookies-prose h2 { font-size: 24px; }
  .cookies-table tbody tr td:first-child,
  .cookies-table tbody tr td:nth-child(2) { width: auto; }
}

/* ---- Mobile — stack the table into card rows ---- */
@media (max-width: 767px) {
  .cookies-masthead { padding: 64px 0 40px; }
  .cookies-meta { margin-bottom: 36px; }
  .cookies-title { font-size: 32px; }
  .cookies-standfirst { font-size: 16px; }
  .cookies-body { padding: 56px 0 72px; }
  .cookies-prose p { font-size: 16px; }
  .cookies-prose h2 { font-size: 22px; margin: 48px 0 20px; }

  .cookies-table {
    border: 1px solid #E5E1D5;
  }
  .cookies-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  .cookies-table,
  .cookies-table tbody,
  .cookies-table tr,
  .cookies-table td {
    display: block;
    width: 100%;
  }
  .cookies-table tbody tr {
    padding: 18px 18px 6px;
    border-bottom: 1px solid #E5E1D5;
  }
  .cookies-table tbody tr:last-child {
    border-bottom: none;
  }
  .cookies-table tbody td {
    border: none;
    padding: 0 0 14px 0;
  }
  .cookies-table tbody tr td:first-child,
  .cookies-table tbody tr td:nth-child(2) {
    width: auto;
  }
  .cookies-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(21,23,27,0.5);
    text-transform: uppercase;
    margin-bottom: 6px;
  }
}

/* ---- Visually hidden caption ---- */
.cookies-table .sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
