@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --color-bg: #0e0c0b;
  --color-surface: #1c1916;
  --color-surface-2: #241f1b;
  --color-text: #f6f6f8;
  --color-muted: #b6b6be;
  --color-accent: #ea6414;
  --color-accent-soft: #ff954d;
  --color-stitch: rgba(232, 166, 96, 0.22);
  --color-border: rgba(255, 200, 150, 0.12);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --content-max: 46rem;
  --radius: 18px;
  --page-gutter: max(1.15rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --texture-leather: url("/textures/seamless-leather-texture.webp");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--texture-leather);
  background-size: 640px 640px;
  background-repeat: repeat;
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 149, 77, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 40% at 80% 100%, rgba(0, 0, 0, 0.45), transparent 60%);
}

.site-header,
.legal-wrap,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(14, 12, 11, 0.72);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  max-width: calc(var(--content-max) + 8rem);
  margin: 0 auto;
  padding: 0.85rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
}

.header-nav a {
  color: var(--color-muted);
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--color-accent-soft);
}

.legal-wrap {
  flex: 1;
  width: min(100%, calc(var(--content-max) + 8rem));
  margin: 0 auto;
  padding:
    1.75rem var(--page-gutter)
    max(3rem, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .legal-wrap.has-toc {
    grid-template-columns: 13.5rem minmax(0, var(--content-max));
    align-items: start;
    justify-content: center;
  }
}

.toc {
  font-size: 0.86rem;
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--color-stitch);
    border-radius: var(--radius);
    background: rgba(28, 25, 22, 0.72);
  }
}

.toc h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.toc a {
  color: var(--color-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--color-accent-soft);
}

.legal-main {
  width: min(100%, var(--content-max));
  justify-self: center;
}

.legal-main > .eyebrow {
  margin: 0 0 0.35rem;
  color: var(--color-accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-main > h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.updated {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.intro,
.card-list {
  margin: 0 0 1.35rem;
}

.legal-main h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: 1rem;
}

.legal-main h3 {
  margin: 1.25rem 0 0.45rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.legal-main p,
.legal-main li {
  color: #ebe7e2;
}

.legal-main p {
  margin: 0 0 0.95rem;
}

.legal-main ul,
.legal-main ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-main li + li {
  margin-top: 0.35rem;
}

.legal-main a {
  color: var(--color-accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.legal-main a:hover {
  color: #ffb57a;
}

.note,
.for-review {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--color-stitch);
  background: linear-gradient(165deg, rgba(255, 180, 120, 0.07), transparent 60%), var(--color-surface);
}

.for-review {
  border-color: rgba(234, 100, 20, 0.35);
}

.for-review strong,
.note strong {
  color: var(--color-accent-soft);
}

.hub-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

.hub-card {
  display: block;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-stitch);
  background:
    linear-gradient(165deg, rgba(255, 180, 120, 0.06), transparent 55%),
    var(--color-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hub-card:hover {
  border-color: rgba(234, 100, 20, 0.45);
  transform: translateY(-1px);
}

.hub-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-text);
}

.hub-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.1rem var(--page-gutter) max(1.25rem, env(safe-area-inset-bottom, 0px));
  color: var(--color-muted);
  font-size: 0.86rem;
}

.site-footer-inner {
  max-width: calc(var(--content-max) + 8rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent-soft);
}

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #ffd7b8;
}

@media (max-width: 640px) {
  .brand-name { font-size: 0.95rem; }
  .header-nav { font-size: 0.82rem; }
  .toc { display: none; }
  .legal-wrap.has-toc { grid-template-columns: 1fr; }
}


/* Warm off-white hierarchy (avoid dark-on-dark / unstyled italic) */
.legal-main > .eyebrow,
.legal-main .eyebrow {
  color: var(--color-accent-soft);
}
.legal-main > h1,
.legal-main h1 {
  color: #f6f1ea;
}
.legal-main > h2,
.legal-main h2 {
  color: #f0ebe4;
}
.legal-main > h3,
.legal-main h3 {
  color: #ebe6df;
}
.updated,
.hub-card p,
.site-footer {
  color: var(--color-muted);
}
.legal-main em,
.hub-card em,
.legal-main i {
  color: inherit;
  font-style: italic;
}
.fuse-legal-seal-text,
.fuse-legal-caption,
.legal-fuse-caption {
  color: #ebe7e2;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* EM scrollbar (legal pages; also via /assets/em-chrome.css) */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 182, 190, 0.38) rgba(14, 12, 11, 0.92);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 182, 190, 0.38) rgba(14, 12, 11, 0.92);
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: rgba(14, 12, 11, 0.92); }
*::-webkit-scrollbar-thumb {
  background-color: rgba(182, 182, 190, 0.38);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: rgba(234, 100, 20, 0.55); }

/* Legal hub — Fuse gets to shine */
.fuse-legal-hero {
  position: relative;
  display: grid;
  place-items: center;
  justify-items: center;
  margin: 0 0 1.75rem;
  padding: 0.5rem 0 0.25rem;
  text-align: center;
}
.fuse-legal-hero-glow {
  position: absolute;
  inset: 8% 18% 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 180, 90, 0.55), rgba(255, 120, 40, 0.18) 42%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  animation: fuse-legal-pulse 4.8s ease-in-out infinite;
}
.fuse-legal-hero-img {
  position: relative;
  z-index: 1;
  width: min(18rem, 72vw);
  height: auto;
  max-width: 420px;
  border-radius: 50%;
  object-fit: cover;
  background: #161210;
  box-shadow:
    0 0 0 3px rgba(255, 149, 77, 0.35),
    0 0 42px rgba(255, 140, 50, 0.45),
    0 22px 50px rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 0 18px rgba(255, 160, 70, 0.35));
}
.fuse-legal-hero-caption {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  max-width: 22rem;
  color: #d8d8de;
  font-size: 0.92rem;
  line-height: 1.4;
}
.fuse-legal-hero-caption strong {
  color: #ff954d;
  letter-spacing: 0.08em;
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
}
.fuse-legal-hero-caption em {
  font-style: italic;
  color: #ebe7e2;
}
@keyframes fuse-legal-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .fuse-legal-hero-glow { animation: none; }
}