/* DropPilot — legal pages (terms.html, privacy.html) + small legal link rows used in the app. */

/* ---------- Link rows used inside the app (index.html) ---------- */
.legal-links {
  margin: 0;
  color: #8a93a0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.legal-links a {
  color: #aab3c0;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.legal-links .legal-sep {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.6;
}

.legal-links.home-legal {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 2;
}

.legal-links.page-legal {
  margin-top: 28px;
  padding-top: 8px;
}

.legal-links.agree-legal {
  margin: 10px 0 0;
  text-align: left;
  font-size: 13px;
}

.legal-links.soon-legal {
  margin: 18px 0 0;
}

.legal-links.agree-legal a,
.legal-links.soon-legal a { color: #c8c8cc; text-decoration: underline; }

/* Pricing / checkout use a light background in the app's light theme */
body.is-light .legal-links.page-legal,
body.is-light .legal-links.agree-legal { color: #4b5160; }

body.is-light .legal-links.page-legal a,
body.is-light .legal-links.agree-legal a { color: #1c4fd0; text-decoration: underline; }

/* ---------- Standalone legal pages ---------- */
body.legal-page {
  margin: 0;
  min-height: 100vh;
  background: #07080c;
  color: #d9dee6;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.legal-page .legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 12, 0.92);
}

.legal-page .legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
}

.legal-page .legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.legal-page .legal-logo svg { width: 26px; height: 26px; }

.legal-page .legal-back {
  color: #b7c1ce;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.legal-page .legal-back:hover,
.legal-page .legal-back:focus-visible { color: #fff; text-decoration: underline; }

.legal-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}

.legal-page h1 {
  margin: 0 0 6px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-page .legal-updated {
  margin: 0 0 28px;
  color: #98a2b0;
  font-size: 14px;
}

.legal-page h2 {
  margin: 42px 0 10px;
  padding-top: 6px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  scroll-margin-top: 20px;
}

.legal-page h3 {
  margin: 22px 0 6px;
  color: #eef2f7;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.legal-page p { margin: 0 0 14px; }

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page li { margin: 0 0 6px; }

.legal-page li::marker { color: #6f7b8b; }

.legal-page a {
  color: #8cc2ff;
  text-underline-offset: 2px;
}

.legal-page a:hover,
.legal-page a:focus-visible { color: #b9dbff; }

.legal-page strong { color: #fff; font-weight: 600; }

.legal-page .legal-toc {
  margin: 0 0 12px;
  padding: 18px 22px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #0d1118;
}

.legal-page .legal-toc h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0c4;
}

.legal-page .legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}

.legal-page .legal-toc li { break-inside: avoid; margin-bottom: 6px; font-size: 15px; }

.legal-page .legal-ph {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 216, 74, 0.14);
  color: #ffe58a;
  font-weight: 500;
  white-space: nowrap;
}

.legal-page .legal-table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}

.legal-page th,
.legal-page td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
}

.legal-page tr:last-child td { border-bottom: 0; }

.legal-page th {
  background: #0d1118;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.legal-page .legal-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a93a0;
  font-size: 14px;
}

.legal-page .legal-footer a { color: #aab3c0; }

@media (max-width: 600px) {
  body.legal-page { font-size: 15.5px; }
  .legal-page main { padding-top: 32px; }
  .legal-page .legal-toc ol { columns: 1; }
  .legal-page main { overflow-wrap: anywhere; }
  .legal-page .legal-ph { white-space: normal; }
}
