/* Hirewake legal pages (Privacy Policy, Terms of Use). Loads after base.css. */

:root {
  --ink-body: #c4c2c4;
}

p, li { text-wrap: pretty; }

.topbar {
  position: relative;
  height: 72px;
  padding: 0 var(--gutter);
}

.nav-capsule {
  position: absolute;
  top: 16px;
  left: 49%;
  min-width: 260px;
  height: 40px;
  background: var(--nav-glass);
  border-radius: 30px;
  padding: 0 6px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: lowercase;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink-light);
  line-height: 1;
}

.wordmark-mark {
  width: 25.9px;
  height: 19.6px;
  flex: none;
  transform: translateY(-0.4px);
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-link, .footer-link { position: relative; }

.nav-link { font-size: 12px; color: var(--ink-light); line-height: 1; }

.nav-link::after, .footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.nav-link:hover::after, .footer-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 160ms ease-out;
}

.nav-cta:hover { background: #7370ff; }

.doc {
  padding: 100px var(--gutter) 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.doc-heading {
  font-size: 46px;
  line-height: 57px;
  font-weight: 300;
  letter-spacing: -1px;
}

.doc-heading .muted { display: block; color: var(--ink-muted); }

.doc-body { max-width: 600px; }

.doc-body .lead {
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-light);
}

.doc-body h2 {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  color: var(--ink-light);
}

.doc-body p, .doc-body li {
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-body);
}

.doc-body h2 + p, .doc-body h2 + ul { margin-top: 12px; }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p { margin-top: 12px; }

.doc-body ul { list-style: none; }

.doc-body li {
  position: relative;
  padding-left: 18px;
}

.doc-body li + li { margin-top: 8px; }

.doc-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--ink-muted);
}

.doc-body strong { font-weight: 400; color: var(--ink-light); }

.doc-body a {
  color: var(--ink-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer (same as the main page) */
.footer { background-color: var(--bg-dark); padding: 40px var(--gutter) 30px; border-top: 1px solid var(--rule-dark); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 100px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-link { font-size: 14px; line-height: 25px; color: var(--ink-light); }
.footer-bottom {
  margin-top: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink-footer-bot);
}
.footer-email, .social-link { color: var(--ink-footer-bot); transition: color 180ms ease-out; }
.footer-email:hover, .social-link:hover { color: var(--ink-light); }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-legal {
  margin-top: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-legal);
}
.legal-links { display: flex; gap: 24px; }
.legal-links a:hover, .legal-links a[aria-current] { color: var(--ink-light); }

@media (max-width: 1100px) {
  .nav-capsule { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .nav-capsule { left: 20px; transform: none; width: calc(100% - 40px); min-width: 0; }
  .nav-right .nav-link { display: none; }
  .nav-cta { font-size: 13px; }
  .doc { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .doc-heading { font-size: 32px; line-height: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-wordmark-col { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 60px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-legal { margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 12px; }
}
