/*
Purpose: shared styles for Mullusi public trust, policy, and disclosure routes.
Governance scope: static legal/security route rendering, no-JavaScript reachability, and footer trust navigation.
Dependencies: trust route HTML files and Mullusi static assets.
Invariants: no secrets, no runtime proof claims, no JavaScript dependency, no inline style dependency.
*/

:root {
  color-scheme: dark;
  --bg: #050609;
  --panel: #0d1018;
  --panel-soft: #111521;
  --line: #272d40;
  --ink: #e9eaef;
  --muted: #99a0b4;
  --accent: #5ce6c4;
  --warm: #e8b15c;
  --warn: #f0d28f;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(143, 240, 192, 0.12), transparent 32%),
    linear-gradient(180deg, #050609 0%, #0d1018 100%);
  color: var(--ink);
  font: 15px/1.65 var(--mono);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  transform: translateY(-200%);
  background: var(--accent);
  color: #050609;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

nav,
main,
footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--accent);
}

main {
  padding: 44px 0 80px;
}

.eyebrow {
  color: var(--warm);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  max-width: 13ch;
  margin-top: 16px;
  font-size: 72px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 20px;
}

p {
  color: var(--muted);
}

code {
  color: var(--accent);
}

.lede {
  max-width: 76ch;
  margin-top: 18px;
  font-size: 18px;
}

.actions,
.route-list,
.policy-grid,
.control-grid {
  display: grid;
  gap: 14px;
}

.actions {
  grid-template-columns: repeat(3, minmax(0, max-content));
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 9px 14px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.button.primary {
  background: var(--accent);
  color: #050609;
  font-weight: 700;
}

.policy-grid,
.control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
}

.panel,
.policy-card,
.control-card,
.notice {
  border: 1px solid var(--line);
  background: rgba(17, 19, 15, 0.86);
  padding: 20px;
}

.policy-card,
.control-card {
  min-height: 100%;
}

.policy-card p,
.control-card p {
  margin-bottom: 0;
}

.notice {
  margin-top: 18px;
  background: rgba(240, 210, 143, 0.08);
}

.notice strong {
  color: var(--warn);
}

section {
  margin-top: 34px;
}

ul,
ol {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 16px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

footer {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 34px 0 48px;
  font-size: 13px;
}

@media (max-width: 760px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions,
  .policy-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 22px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }
}
