/* ==========================================================================
   Document pages (privacy policies, and anything else that is mostly prose).
   Same palette as the portfolio so the sub-pages don't feel like a different
   site the way a bare standalone policy page would.
   ========================================================================== */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) clamp(20px, 5vw, 32px) 40px;
}

.doc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--green-bright);
  margin-bottom: 18px;
}

.doc__eyebrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.25s var(--lift);
}

.doc__eyebrow:hover svg {
  transform: translateX(-4px);
}

.doc__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.doc__header svg.doc__logo {
  width: 52px;
  height: 52px;
  flex: none;
}

.doc h1 {
  color: var(--white);
  font-size: clamp(32px, 6vw, 46px);
  font-weight: bold;
  line-height: 1.15;
  margin: 0;
}

.doc__updated {
  color: var(--slate);
  font-size: 16px;
  margin: 0 0 36px;
}

.doc h2 {
  color: var(--lightest-slate);
  font-size: clamp(21px, 3.2vw, 26px);
  font-weight: bold;
  line-height: 1.3;
  margin: 46px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--lightest-navy);
  /* Deep-link target on a page with a fixed nav bar. */
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 34px;
}

.doc p,
.doc li {
  color: var(--light-slate);
  font-size: 19px;
  line-height: 1.65;
}

.doc p {
  margin: 0 0 16px;
}

.doc strong {
  color: var(--lightest-slate);
  font-weight: bold;
}

.doc a {
  border-bottom: 1px solid rgba(100, 255, 218, 0.35);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.doc a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.doc ul {
  padding-left: 0;
  margin: 0 0 18px;
  list-style: none;
}

.doc ul li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}

.doc ul li::before {
  content: "\25B9";
  color: var(--green-bright);
  position: absolute;
  left: 0;
}

/* Callout for the headline claim of a policy. */
.doc__lede {
  background: var(--light-navy);
  border-left: 3px solid var(--green-bright);
  padding: 18px 20px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 26px;
}

.doc__lede p:last-child {
  margin-bottom: 0;
}

.doc code {
  background: var(--light-navy);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--lightest-slate);
}

/* Tables ---------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 10px;
  border: 1px solid var(--lightest-navy);
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 17px;
}

.doc th,
.doc td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lightest-navy);
  vertical-align: top;
  color: var(--light-slate);
}

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

.doc thead th {
  font-weight: bold;
  color: var(--slate);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--light-navy);
}

.doc tbody tr {
  transition: background-color 0.2s var(--ease-out);
}

.doc tbody tr:hover {
  background-color: rgba(35, 53, 84, 0.4);
}

/* Index of per-app policies -------------------------------------------- */

/* Scoped through `.doc ul` so these beat the prose list rules above, which
   would otherwise add a bullet and an indent to each card. */
.doc ul.policy-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.doc ul.policy-index li::before {
  content: none;
}

.doc ul.policy-index li {
  padding: 0;
  margin: 0;
}

.policy-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 18px 20px;
  background: var(--light-navy);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--lightest-slate);
  font-size: 19px;
  font-weight: bold;
  transition: transform 0.3s var(--lift), background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), color 0.2s var(--ease-out);
}

.policy-index a:hover {
  transform: translateY(-4px);
  background: var(--lightest-navy);
  border-color: rgba(100, 255, 218, 0.3);
  color: var(--green-bright);
}

.policy-index svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
  opacity: 0.7;
}

.doc__footer {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--lightest-navy);
  color: var(--slate);
  font-size: 16px;
}

/* 404 ------------------------------------------------------------------- */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 60px;
}

/* Scoped through .notfound so it outranks the `.notfound p` rule below —
   the code is itself a <p>. */
.notfound .notfound__code {
  font-size: clamp(80px, 22vw, 180px);
  font-weight: bold;
  line-height: 1;
  color: var(--green-bright);
  margin: 0;
  text-shadow: 0 20px 60px rgba(100, 255, 218, 0.25);
}

.notfound h1 {
  color: var(--lightest-slate);
  font-size: clamp(26px, 5vw, 38px);
  margin: 18px 0 10px;
}

.notfound p {
  color: var(--slate);
  font-size: 20px;
  max-width: 460px;
  margin: 0 0 34px;
}
