/* AutoClarity — legal document pages (privacy / terms).
   Light reading theme with the brand navy header. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f6fb;
  color: #1b2437;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: #2f6bff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid #2f6bff;
  outline-offset: 3px;
  border-radius: 4px;
}

.doc-header {
  background: linear-gradient(180deg, #0a1226 0%, #060b18 100%);
  padding: 14px 22px;
  padding-top: calc(14px + env(safe-area-inset-top));
}

.doc-header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4f7ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.doc-brand img { border-radius: 7px; }

.doc-back {
  color: #9db9ff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(148, 176, 255, 0.25);
  border-radius: 10px;
  white-space: nowrap;
}
.doc-back:hover { background: rgba(148, 176, 255, 0.1); }

main.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 22px 72px;
}

.doc-card {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: clamp(26px, 5vw, 56px);
}

.doc h1 {
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.doc h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 34px 0 10px;
}

.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }

.doc a { color: #2456d8; font-weight: 600; }

.doc-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 22px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: #64748b;
}
.doc-footer a { color: #2456d8; font-weight: 600; text-decoration: none; margin: 0 8px; }
.doc-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001s !important; }
}
