/* Shared styles for the Shaftware /legal section. Mirrors the landing page theme. */
:root {
  --bg:      #0f172a;
  --surface: #1e293b;
  --accent:  #38bdf8;
  --accent2: #818cf8;
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --border:  rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  min-height: 100dvh;
  padding: 0 1.5rem 5rem;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(129, 140, 248, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Top nav ---- */
.topnav {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo__wordmark { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

/* ---- Layout ---- */
.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.75rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); }
.crumb-sep { opacity: 0.5; margin: 0 0.15rem; }

/* ---- Document header ---- */
.doc-head { margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.updated { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }
.lede { color: var(--muted); font-size: 1.05rem; margin-top: 0.9rem; max-width: 60ch; }

/* ---- Document sections ---- */
.doc-section { margin-bottom: 2rem; }
.doc-section h2 {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.75rem; scroll-margin-top: 1.5rem;
}
.doc-section h2 .num { color: var(--accent); margin-right: 0.35rem; }
.doc-section p { color: #d5dde8; margin-bottom: 0.85rem; }
.doc-section ul { list-style: none; margin: 0 0 0.85rem; padding: 0; }
.doc-section li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; color: #d5dde8; }
.doc-section li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.doc-section li strong { color: var(--text); font-weight: 600; }

.contact { color: #d5dde8; }
.contact a { color: var(--accent); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* ---- Card grids (hub + app landing) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.5rem; text-decoration: none; color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-2px); }
.card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.card__cta, .card__links { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ---- In-document footer nav ---- */
.doc-foot-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.doc-foot-nav a { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.doc-foot-nav a:hover { text-decoration: underline; }

/* ---- Site footer ---- */
.site-footer {
  position: relative; z-index: 1; max-width: 760px; margin: 3.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
