:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #170c2c;
  color: #f5eeff;
}

* {
  box-sizing: border-box;
}

html {
  background: #170c2c;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #160b29 0%, #261348 50%, #1b1035 100%);
  color: #f5eeff;
  font-size: 16px;
  line-height: 1.65;
}

.policy {
  width: min(calc(100% - 32px), 880px);
  margin: 0 auto;
  padding: 48px 0 56px;
}

.policy-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 8px 28px;
}

.policy-header > div {
  min-width: 0;
}

h1,
h2,
.brand-name,
.footer-brand {
  color: #f5eeff;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
}

.brand-logo {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  display: block;
  border: 1px solid rgba(245, 239, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(10, 4, 22, 0.28);
}

.brand-name {
  margin: 0 0 4px;
  color: #c9a7ff;
  font-size: 15px;
  font-weight: 650;
}

h2 {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 2px solid #c9a7ff;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 650;
}

.document {
  padding: 8px 40px 40px;
  background: rgba(47, 26, 74, 0.42);
  border: 1px solid rgba(245, 239, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(10, 4, 22, 0.22);
}

section {
  padding-top: 32px;
}

p {
  margin: 0 0 16px;
}

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

.revision {
  margin: 8px 0 0;
  color: rgba(221, 208, 245, 0.8);
}

ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

li + li {
  margin-top: 8px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #ddd0f5;
  overflow-wrap: anywhere;
}

a {
  color: #c9a7ff;
  text-decoration-color: rgba(201, 167, 255, 0.5);
  text-underline-offset: 3px;
}

a:hover {
  color: #e3d3ff;
}

a:focus-visible {
  outline: 3px solid rgba(201, 167, 255, 0.55);
  outline-offset: 3px;
  border-radius: 3px;
}

.contacts {
  margin: 0;
}

.contacts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
}

.contacts dt {
  font-weight: 650;
}

.contacts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 30px 8px 0;
  color: rgba(221, 208, 245, 0.78);
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.footer-brand {
  font-size: 16px;
  font-weight: 650;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .policy {
    width: min(calc(100% - 24px), 880px);
    padding: 24px 0 40px;
  }

  .policy-header {
    gap: 12px;
    padding: 0 4px 20px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  h1 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 19px;
  }

  .brand-name {
    font-size: 14px;
  }

  .revision {
    font-size: 14px;
  }

  .document {
    padding: 4px 20px 28px;
    border-radius: 18px;
  }

  section {
    padding-top: 28px;
  }

  .contacts div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    padding-top: 24px;
  }
}

@media print {
  :root,
  html,
  body {
    background: #ffffff;
    color: #202124;
  }

  .policy {
    width: 100%;
    max-width: 880px;
    padding: 0;
  }

  .document {
    padding: 0;
    background: #ffffff;
    border: 0;
    box-shadow: none;
  }

  h1,
  h2,
  .brand-name,
  .footer-brand,
  code,
  a {
    color: #202124;
  }
}
