/* Политики ООО «Датаграм» (/policy, /cookie-policy), SRV-451 */

:root {
  --text: #1f2933;
  --muted: #5f6b7a;
  --accent: #0b3a5b;
  --link: #0d6efd;
  --border: #d5dbe3;
  --head-bg: #eef2f7;
  --stripe: #f8fafc;
  --page-bg: #f3f5f8;
  --sheet-bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); word-break: break-word; }

.topbar {
  background: var(--accent);
  padding: 12px 16px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.doc {
  max-width: 900px;
  margin: 32px auto;
  padding: 48px 56px;
  background: var(--sheet-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 4px 16px rgba(16, 24, 40, .06);
}

/* шапка документа */
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 8px;
}
.policy-org {
  margin: 0;
  max-width: 340px;
  font-weight: 700;
}
.policy-approve {
  flex: none;
  min-width: 220px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 15px;
}

h1 {
  margin: 40px 0 36px;
  color: var(--accent);
  font-size: 26px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
}

h2 {
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
}

p { margin: 0 0 12px; text-align: justify; }

ul { margin: 0 0 14px; padding-left: 28px; }
li { margin-bottom: 6px; }

.text-right { text-align: right; }
.text-center { text-align: center; }

/* таблицы */
.table-wrap {
  margin: 16px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
th, td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--head-bg);
  color: var(--accent);
  font-weight: 700;
}
tbody tr:nth-child(even) td { background: var(--stripe); }

/* приложение к политике */
.policy-appendix {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.policy-appendix h2 { border-bottom: 0; text-align: center; }

.doc-footer {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  .doc { margin: 0; padding: 24px 16px; border-radius: 0; box-shadow: none; }
  .doc-header { flex-direction: column-reverse; }
  .policy-approve { align-self: flex-end; }
  h1 { margin: 24px 0; font-size: 20px; }
  h2 { font-size: 16px; }
  p { text-align: left; }
  table { font-size: 13px; }
  th, td { padding: 8px; }
}

@media print {
  body { background: #fff; }
  .topbar, .doc-footer, #cookie-banner-container { display: none; }
  .doc { margin: 0; padding: 0; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
