/*
 * respia-docs.css — unified dark-ocean theme for Respia's doc/legal subpages,
 * matching index.html (deep navy water backdrop + glass panels).
 * Loaded AFTER each page's own <style> so these rules win the cascade.
 */

html, body {
  background-color: #030a16;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #dbe7f5;
  line-height: 1.7;
  /* width/padding handled by .doc; neutralise the pages' own body box */
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

canvas#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Readable glass column floating on the water. */
.doc {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 48px auto;
  padding: 48px clamp(20px, 5vw, 56px);
  background: rgba(10, 25, 47, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  background: linear-gradient(135deg, #ffffff 0%, #a5d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc h2 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.doc h3 {
  color: #cfe0f5;
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

.doc p,
.doc li {
  color: #c3d3e6;
}

.doc strong { color: #eaf2fb; }

.doc a {
  color: #7db8ff;
  text-decoration: none;
}
.doc a:hover { text-decoration: underline; }

.doc ul { padding-left: 1.4em; margin: 0.6em 0 1.2em; }
.doc li { margin-bottom: 0.4em; }

.doc hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2.5em 0 1.5em;
}

.doc small { color: #8ba3bf; }

/* Recolour the pages' light callout boxes to dark glass. */
.doc .highlight,
.doc .contact,
.doc .notice {
  background: rgba(70, 130, 210, 0.12);
  border: 1px solid rgba(125, 184, 255, 0.22);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 20px 0;
  color: #d3e2f5;
}

/* Back-to-home affordance shared by the docs. */
.doc-home {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 820px;
  margin: 0 auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
}
.doc-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #7db8ff;
  text-decoration: none;
  font-weight: 600;
}
.doc-home a:hover { text-decoration: underline; }
