/* ============================================================
   Info / legal pages — sticky contents, policy typography, cards
   ============================================================ */

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--n-150);
}
.legal-toc__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-400);
  margin-bottom: 12px;
}
.legal-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.legal-toc li { font-size: 13px; line-height: 1.45; color: var(--n-600); }
.legal-toc a { color: inherit; }
.legal-toc a:hover { color: var(--blue-700); }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--n-500);
}
.legal-meta strong { color: var(--n-700); font-weight: 600; }

.legal-body { max-width: 78ch; }
.legal-body > p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; color: var(--n-700); }
.legal-body h2 {
  margin: 38px 0 12px;
  font-size: clamp(19px, 1.8vw, 23px);
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  scroll-margin-top: 96px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 22px 0 8px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.legal-body ul,
.legal-body ol { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.legal-body li { font-size: 14px; line-height: 1.65; color: var(--n-700); }
.legal-body a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.legal-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--n-700);
}

/* status legend on the limitations page */
.status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.status-card {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--n-150);
}
.status-card__head { display: flex; align-items: center; gap: 10px; }
.status-card__count {
  margin-left: auto;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.status-card p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* verify form */
.verify-card {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--n-150);
  box-shadow: 0 1px 2px rgba(7, 26, 61, 0.04);
}
.verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.verify-result {
  display: none;
  margin-top: 22px;
  padding: 20px;
  border-radius: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.verify-result.is-visible { display: block; }
.verify-result__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.verify-result__head svg { width: 18px; height: 18px; color: #0d6b4c; }
.verify-result__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.verify-rows { display: grid; gap: 8px; }
.verify-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--n-600); }
.verify-row b { color: var(--ink); font-weight: 600; }
.verify-error { display: none; margin-top: 14px; font-size: 13px; color: #b52a1c; }
.verify-error.is-visible { display: block; }


/* form fields used by the verify page */
.verify-card .afield { display: grid; gap: 6px; }
.verify-card .afield label { font-size: 13px; font-weight: 600; color: var(--n-700); }
.verify-card .afield input {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--n-200);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.verify-card .afield input:focus { outline: 0; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(21, 73, 154, 0.14); }
.search-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* FAQ page */
.faq-page details {
  border-top: 1px solid var(--n-150);
  padding: 18px 0;
}
.faq-page details:last-of-type { border-bottom: 1px solid var(--n-150); }
.faq-page summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-page summary::-webkit-details-marker { display: none; }
.faq-page summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--n-200);
  font-size: 16px;
  color: var(--n-600);
  flex: none;
}
.faq-page details[open] summary::after { content: "−"; background: var(--navy); border-color: var(--navy); color: #fff; }
.faq-page details p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.faq-group + .faq-group { margin-top: 34px; }
.faq-group h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--n-500); }


/* pages without a table of contents */
.legal-layout--single { grid-template-columns: minmax(0, 1fr); }
.legal-layout--single .legal-body { max-width: 900px; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .status-legend { grid-template-columns: 1fr; }
  .verify-grid { grid-template-columns: 1fr; }
}

/* policy tables */
.legal-table {
  width: 100%;
  margin: 18px 0 20px;
  border-collapse: collapse;
  font-size: 13px;
}
.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--n-150);
  color: var(--n-700);
  line-height: 1.5;
}
.legal-table th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n-500);
  background: #fbf8f2;
  border-bottom-color: var(--card-line, #efe7da);
}
.legal-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #f6f3ec;
  padding: 1px 5px;
  border-radius: 5px;
}
.legal-table tr:last-child td { border-bottom: 0; }
.cookie-manage { margin-top: 18px; }

@media (max-width: 900px) {
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
  .legal-table td, .legal-table th { white-space: normal; }
}
