/*
 * ProMesh.ai legal documents — https://promesh.ai/{privacy-policy,...}
 *
 * Standalone stylesheet for the three legal pages served by the public site.
 * Every rule lives here rather than in a style attribute: the Hosting CSP is
 * `style-src 'self' https://fonts.googleapis.com` with no 'unsafe-inline', so
 * an inline style attribute would simply not apply.
 *
 * Design tokens follow the ProMesh Sign In v2 handoff so the documents match
 * the application's sign-in surface (src/components/auth/promesh-signin.css);
 * only the rules the legal pages use are kept here.
 */

:root {
  --pm-bg: #070c15;
  --pm-text: #e8eef9;
  --pm-text-secondary: #9fb0c9;
  --pm-text-muted: #7d8ba3;
  --pm-text-faint: #5d6b84;
  --pm-blue: #3b82f6;
  --pm-link: #6ba6f2;
  --pm-link-hover: #9cc5ff;
  --pm-cyan: #22d3ee;
  --pm-cyan-text: #67e0f2;
  --pm-cyan-body: #aebad0;
  --pm-border: rgba(148, 180, 255, 0.18);
  --pm-border-strong: rgba(148, 180, 255, 0.22);
  --pm-panel: rgba(255, 255, 255, 0.04);
  --pm-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--pm-bg);
}

body {
  margin: 0;
  background: var(--pm-bg);
  color: var(--pm-text);
  font-family: var(--pm-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--pm-link-hover);
}

:focus-visible {
  outline: 2px solid var(--pm-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ brand row */

.pm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-brand-word {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.pm-brand-ai {
  color: var(--pm-blue);
}

/* ----------------------------------------------------------------- footer */

.pm-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--pm-text-faint);
  padding-bottom: env(safe-area-inset-bottom);
}

.pm-footer a {
  color: var(--pm-text-faint);
}

.pm-footer a:hover {
  color: var(--pm-text-secondary);
}

.pm-footer-copy {
  margin-left: auto;
}

@media (max-width: 879px) {
  .pm-footer-copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------ legal pages */

.pm-legal-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pm-legal-header {
  padding: 28px 24px;
  border-bottom: 1px solid var(--pm-border);
}

.pm-legal-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.pm-legal-main h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.pm-legal-main h2 {
  margin: 32px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.pm-legal-updated {
  margin: 0 0 28px;
  font-size: 12.5px;
  color: var(--pm-text-muted);
}

.pm-legal-main p,
.pm-legal-main li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--pm-text-secondary);
}

.pm-legal-main ul {
  padding-left: 20px;
}

.pm-legal-notice {
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148, 180, 255, 0.22);
  background: rgba(148, 180, 255, 0.05);
}

.pm-legal-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--pm-text-secondary);
}

.pm-legal-internal {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-left-width: 3px;
  background: rgba(59, 130, 246, 0.06);
}

.pm-legal-internal p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--pm-text-secondary);
}

.pm-legal-internal p:last-child {
  margin-bottom: 0;
}

.pm-legal-internal strong {
  color: var(--pm-text);
}

.pm-legal-footer {
  border-top: 1px solid var(--pm-border);
  padding: 24px;
}

.pm-legal-footer .pm-footer {
  max-width: 760px;
  margin: 0 auto;
}
