/* =========================================================
   Pylo AI: Policies Page (/policies)
   Clean, plain dark typography without decorative bloat
   ========================================================= */
:root {
  color-scheme: only dark;
  --bg: #09080f;
  --text: #f3f1f8;
  --muted: #a19bb5;
  --line: rgba(255, 255, 255, 0.1);
  --link: #d8b4fe;
  --sans: "Satoshi", "Segoe UI Variable Display", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.pol-wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Simple header bar */
.pol-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 8, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.pol-header-inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.pol-back {
  color: #fff;
  font-weight: 500;
}

.pol-contact {
  color: var(--muted);
}

.pol-contact:hover {
  color: #fff;
}

/* Page intro */
.pol-main {
  padding-top: 44px;
  padding-bottom: 84px;
}

.pol-intro {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.pol-intro h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}

.pol-intro-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Two-column plain doc layout */
.pol-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pol-nav {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 20px;
}

.pol-nav-group {
  display: grid;
  gap: 2px;
}

.pol-nav-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.pol-nav a {
  display: block;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease;
}

.pol-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.pol-nav a.active {
  color: #fff;
  font-weight: 500;
  border-left-color: #fff;
}

/* Policy sections */
.pol-docs {
  min-width: 0;
  display: grid;
  gap: 44px;
}

.pol-sec {
  min-width: 0;
  scroll-margin-top: 76px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.pol-sec:first-child {
  padding-top: 0;
  border-top: 0;
}

.pol-sec h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.pol-tag {
  margin-top: 4px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.pol-sec h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.pol-sec p {
  margin-bottom: 12px;
  color: rgba(243, 241, 248, 0.86);
}

.pol-sec p:last-child {
  margin-bottom: 0;
}

.pol-sec strong {
  color: #fff;
  font-weight: 600;
}

.pol-sec ul,
.pol-sec ol {
  margin: 0 0 14px 20px;
  display: grid;
  gap: 7px;
  color: rgba(243, 241, 248, 0.86);
}

.pol-sec code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #fff;
  overflow-wrap: anywhere;
}

.pol-small {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted) !important;
}

/* Simple data table */
.pol-table-wrap {
  margin: 12px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pol-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.pol-table th,
.pol-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.pol-table th {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.pol-table td {
  color: rgba(243, 241, 248, 0.88);
}

.pol-table td:first-child {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.pol-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Footer */
.pol-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
}

.pol-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.pol-footer-inner a {
  color: rgba(243, 241, 248, 0.82);
}

/* Responsive */
@media (max-width: 700px) {
  .pol-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .pol-nav {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .pol-wrap {
    padding: 0 18px;
  }

  .pol-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .pol-layout { grid-template-columns: clamp(166px, 20vw, 230px) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); }
  .pol-nav a { font-size: 12px; }
  .pol-nav { gap: 16px; }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .pol-header,
  .pol-nav,
  .pol-footer {
    display: none !important;
  }

  .pol-layout {
    display: block;
  }

  .pol-sec {
    border-top-color: #ddd;
    break-inside: avoid;
  }

  .pol-sec h2,
  .pol-sec h3,
  .pol-sec strong,
  .pol-table td:first-child {
    color: #000;
  }

  .pol-sec p,
  .pol-sec li,
  .pol-table td {
    color: #222;
  }
}
