/* ===================================================================
   PidvezU — правила / політика. Мінімалістична типографіка документа.
   Каркас — style/app-shell.css, тема — main-page.css
   =================================================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }
.back-link i { font-size: 12px; }

/* Картка-документ */
.doc {
  display: block;
  padding: 30px 32px 36px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.doc .title-main {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

/* Зміст */
.doc-toc {
  margin: 22px 0 8px;
  padding: 18px 20px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.doc-toc .toc-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.doc-toc .toc-title i { color: var(--accent); }
.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 7px 18px;
}
.doc-toc a {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color .2s;
}
.doc-toc a:hover { color: var(--accent); text-decoration: none; }

/* Розділи */
.doc .section-title {
  margin: 34px 0 12px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  scroll-margin-top: 150px;
}
.doc .section-title:first-of-type { margin-top: 26px; }

.doc .subsection-title {
  margin: 22px 0 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Текст */
.doc .text {
  margin: 10px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.doc .text strong { color: var(--text); font-weight: 700; }

/* Списки — з акцентними маркерами */
.doc .list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.doc .list-item {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.doc .list-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.doc .list-item strong { color: var(--text); font-weight: 700; }

.doc a { color: var(--accent); font-weight: 600; }
.doc a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .doc { padding: 22px 20px 26px; border-radius: 16px; }
  .doc .title-main { font-size: 21px; }
  .doc .section-title { font-size: 17px; margin-top: 28px; }
  .doc .subsection-title { font-size: 14.5px; }
  .doc .text, .doc .list-item { font-size: 13.5px; }
}
