/* Public legal pages and Admin → Policies preview. */

body.is-policy,
body.is-policy p,
body.is-policy li,
body.is-policy .pol-page,
.admin-policy-preview,
.admin-policy-preview p,
.admin-policy-preview li,
.admin-policy-preview .pol-page {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.is-policy .pol-hero h1,
body.is-policy .pol-doc h2,
.admin-policy-preview .pol-hero h1,
.admin-policy-preview .pol-doc h2 {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.03em;
}

.pol-page { background: #f6f7f8; }
.pol-hero {
  background: #fff;
  border-bottom: 1px solid #e6e8ea;
  padding: 2.4rem 0 1.85rem;
}
.pol-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 0.55rem;
}
.pol-hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: #111827;
  margin: 0;
  max-width: 22ch;
  line-height: 1.2;
}
.pol-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 500;
}
.pol-date i { color: #2d9a4e; }

.pol-wrap { padding: 2rem 0 4.2rem; }
.pol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}
@media (min-width: 992px) {
  .pol-grid--with-toc { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2.2rem; }
  .pol-grid--solo .pol-doc {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
.pol-page--solo .pol-hero h1 { max-width: 36ch; }
.pol-page--solo .pol-hero .container { max-width: 52rem; }

.pol-toc {
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 12px;
  padding: 1rem 1rem 1.05rem;
}
@media (min-width: 992px) {
  .pol-toc { position: sticky; top: 5.4rem; }
}
.pol-toc p {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}
.pol-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: poltoc;
}
.pol-toc li { counter-increment: poltoc; }
.pol-toc a {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.35rem;
  padding: 0.28rem 0;
  color: #374151;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  border-bottom: 1px solid #f3f4f6;
}
.pol-toc li:last-child a { border-bottom: 0; }
.pol-toc a::before {
  content: counter(poltoc) ".";
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.75rem;
}
.pol-toc a:hover { color: #1a4731; }

.pol-doc {
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 14px;
  padding: 1.6rem 1.35rem 2rem;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.75;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.04);
}
@media (min-width: 768px) {
  .pol-doc { padding: 2.1rem 2.2rem 2.4rem; }
}
.pol-grid--solo .pol-doc {
  padding: 1.85rem 1.5rem 2.25rem;
}
@media (min-width: 768px) {
  .pol-grid--solo .pol-doc { padding: 2.35rem 2.5rem 2.65rem; }
}
.pol-intro {
  margin: 0 0 1.15rem;
  color: #374151;
  font-size: 1.05rem;
}
.pol-sec {
  margin: 0;
  padding: 1.15rem 0 0.15rem;
  border-top: 1px solid #eef0f2;
}
.pol-sec:first-of-type { border-top: 0; padding-top: 0.35rem; }
.pol-sec h2 {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1.12rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}
.pol-num {
  flex: 0 0 auto;
  min-width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  background: #ecf8f0;
  color: #1a4731;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.08rem;
}
.pol-sec p { margin: 0 0 0.7rem; color: #374151; }
.pol-sec p:last-child { margin-bottom: 0; }
.pol-sec ul {
  margin: 0.15rem 0 0.85rem;
  padding: 0 0 0 0.15rem;
  list-style: none;
}
.pol-sec li {
  position: relative;
  padding: 0.18rem 0 0.18rem 1.15rem;
  color: #374151;
}
.pol-sec li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.78rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #c9a227;
}
.pol-plain { white-space: pre-line; color: #374151; }
.pol-rich { color: #374151; font-size: 0.98rem; line-height: 1.65; }
.pol-rich h2, .pol-rich h3, .pol-rich h4 {
  color: #111827;
  font-weight: 600;
  margin: 1.35rem 0 0.65rem;
  line-height: 1.35;
}
.pol-rich h2 { font-size: 1.12rem; }
.pol-rich h3 { font-size: 1.02rem; }
.pol-rich p { margin: 0 0 0.75rem; }
.pol-rich ul,
.pol-rich ol {
  margin: 0.25rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.pol-rich ol { counter-reset: polrich; }
.pol-rich ol > li { counter-increment: polrich; padding-left: 2rem; }
.pol-rich ol > li::before {
  content: counter(polrich) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #1a4731;
  font-size: 0.9rem;
}
.pol-rich ul > li,
.pol-rich ol > li {
  position: relative;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0 0.35rem 1.2rem;
  color: #374151;
  line-height: 1.6;
}
.pol-rich ul > li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.85rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.pol-rich li:last-child { margin-bottom: 0; }
.pol-rich a { color: #1a4731; text-decoration: underline; text-underline-offset: 2px; }
.pol-rich blockquote {
  margin: 0 0 0.85rem;
  padding: 0.65rem 1rem;
  border-left: 3px solid #c9a227;
  background: #f8faf9;
  color: #4b5563;
}

@media (max-width: 767.98px) {
  .pol-hero { padding: 1.6rem 0 1.3rem; }
  .pol-toc { display: none; }
}
