/* Shared styles for the CloudSweep legal pages (privacy.html, terms.html).
   Tokens and nav/footer treatment are lifted from index.html so the legal
   pages sit in the same design system as the landing page. */

:root {
  --bg: #090e19;
  --panel: rgba(18, 28, 44, .78);
  --line: #26364f;
  --line-bright: #36506f;
  --text: #edf6ff;
  --muted: #9eb0c7;
  --muted-2: #73869f;
  --cyan: #20d6ef;
  --amber: #ffc857;
  --radius: 22px;
  --max: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(29, 133, 255, .18), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(109, 85, 255, .12), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(32, 214, 239, .55); outline-offset: 3px; }

.wrap { width: min(calc(100% - 36px), 1180px); margin: 0 auto; }

/* --- nav ------------------------------------------------------------- */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 14, 25, .76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(94, 118, 151, .13);
}
.nav-shell nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 184px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}
.nav-links > a:not(.btn):hover { color: white; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 19px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, #10aeea, #265dff 62%, #6e4cff);
  box-shadow: 0 12px 36px rgba(34, 120, 255, .28), inset 0 1px rgba(255,255,255,.26);
}

/* --- document -------------------------------------------------------- */
.doc { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; padding: 54px 0 72px; }
.doc-head { margin-bottom: 34px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfeeff;
  border: 1px solid rgba(32, 214, 239, .24);
  background: rgba(22, 154, 210, .09);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(32, 214, 239, .75);
}
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.85rem); line-height: 1.12; margin: 18px 0 10px; letter-spacing: -.02em; }
.updated { color: var(--muted-2); font-size: .86rem; margin: 0; }

.doc h2 {
  font-size: 1.16rem;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(106, 132, 165, .16);
  letter-spacing: -.01em;
}
.doc h3 { font-size: .98rem; margin: 24px 0 8px; color: #d5e6f8; }
.doc p, .doc li { color: var(--muted); font-size: .95rem; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--line-bright); }
.doc strong { color: var(--text); font-weight: 700; }
.doc a:not(.btn) { color: #7fd8ff; text-decoration: underline; text-underline-offset: 2px; }

/* Table of contents */
.toc {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 8px;
}
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.toc a:hover { color: white; }

/* Callout for the points that genuinely matter to a reader */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: rgba(18, 28, 44, .6);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
}
.note p:last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--amber); }

/* Definition-style rows for "what we collect" */
.rows { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 14px 18px; border-bottom: 1px solid rgba(106, 132, 165, .14); }
.row:last-child { border-bottom: 0; }
.row dt { color: var(--text); font-weight: 700; font-size: .9rem; }
.row dd { margin: 0; color: var(--muted); font-size: .92rem; }
dl { margin: 0; }

/* Unfilled details — deliberately loud so nothing ships half-written.
   Search the HTML for class="todo" before going live. */
.todo {
  background: rgba(255, 200, 87, .16);
  border: 1px dashed var(--amber);
  color: var(--amber);
  border-radius: 5px;
  padding: 0 5px;
  font-weight: 700;
}

/* --- footer ---------------------------------------------------------- */
footer { border-top: 1px solid rgba(106, 132, 165, .14); padding: 28px 0 38px; color: #72869e; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-brand { width: 155px; opacity: .88; }
.footer-copy { max-width: 660px; text-align: right; font-size: .78rem; line-height: 1.6; }
.footer-links { margin-top: 8px; display: flex; justify-content: flex-end; gap: 16px; }
.footer-links a { color: #9db1c8; text-decoration: none; }
.footer-links a:hover { color: white; }

@media (max-width: 780px) {
  .brand img { width: 148px; }
  .nav-links { gap: 14px; }
  .nav-links > a:not(.btn) { display: none; }
  .toc ol { columns: 1; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { flex-direction: column; }
  .footer-copy { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media print {
  body { background: white; color: black; }
  .nav-shell, footer, .toc { display: none; }
  .doc p, .doc li { color: #333; }
}
