/* Reychi Legal — restrained purple identity, no external dependencies */
:root {
  color-scheme: dark;
  --bg: #0b0912;
  --bg-soft: #100d1a;
  --surface: #151121;
  --surface-raised: #1b1629;
  --surface-hover: #211a31;
  --line: rgba(207, 190, 255, .12);
  --line-strong: rgba(207, 190, 255, .20);
  --text: #f5f1ff;
  --text-soft: #c8bfd9;
  --muted: #988eaa;
  --purple: #a78bfa;
  --purple-strong: #8b5cf6;
  --purple-deep: #6d3ee5;
  --purple-wash: rgba(139, 92, 246, .12);
  --green: #8bd8b4;
  --content: 1160px;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--purple); text-decoration: none; }
a:hover { color: #c4b5fd; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
::selection { color: #fff; background: rgba(139, 92, 246, .48); }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 9, 18, .88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 750; letter-spacing: -.035em; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(192, 167, 255, .28); border-radius: 11px;
  background: linear-gradient(145deg, #30204f, #171127 72%);
  color: #c4b5fd; box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-size: 17px; line-height: 1.1; }
.brand-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a { padding: 9px 13px; border-radius: 9px; color: var(--text-soft); font-size: 13px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.header-nav a:hover, .header-nav a[aria-current="page"] { background: var(--purple-wash); color: #ddd1ff; }
.header-nav .nav-cta { margin-left: 5px; border: 1px solid rgba(167,139,250,.3); color: #e6ddff; }
.header-nav .nav-cta:hover { background: rgba(139,92,246,.18); }

main { flex: 1; }
.hero { position: relative; overflow: hidden; padding: 82px 0 66px; border-bottom: 1px solid var(--line); }
.hero::before {
  position: absolute; content: ""; width: 560px; height: 420px; top: -250px; right: -120px;
  border: 1px solid rgba(167,139,250,.12); border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(167,139,250,.025), 0 0 0 90px rgba(167,139,250,.018);
  pointer-events: none;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #c4b5fd; font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { width: 18px; height: 1px; background: var(--purple-strong); content: ""; }
.hero h1 { max-width: 760px; margin: 19px 0 16px; font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -.065em; font-weight: 760; }
.hero h1 span { color: #b69aff; }
.hero-copy { max-width: 650px; margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 29px; color: var(--muted); font-size: 12px; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(139,216,180,.09); }

.section { padding: 58px 0 82px; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.document-card {
  position: relative; display: flex; min-height: 218px; flex-direction: column; padding: 25px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--text); transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.document-card:hover { transform: translateY(-3px); border-color: rgba(167,139,250,.48); background: var(--surface-raised); color: var(--text); }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(167,139,250,.2); border-radius: 12px; background: var(--purple-wash); color: #c4b5fd; }
.card-icon svg { width: 20px; height: 20px; }
.document-card h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.025em; }
.document-card p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 21px; color: #c4b5fd; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.card-link svg { width: 14px; height: 14px; transition: transform .18s ease; }
.document-card:hover .card-link svg { transform: translateX(3px); }
.note-panel { display: flex; gap: 15px; margin-top: 20px; padding: 19px 21px; border: 1px solid var(--line); border-left: 2px solid var(--purple-strong); border-radius: 12px; background: var(--bg-soft); }
.note-panel svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: var(--purple); }
.note-panel p { margin: 0; color: var(--text-soft); font-size: 13px; }
.note-panel strong { color: var(--text); }

.page-hero { padding: 55px 0 34px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb .slash { color: #655b76; }
.page-hero h1 { margin: 0 0 9px; font-size: clamp(34px, 4.5vw, 47px); line-height: 1.12; letter-spacing: -.055em; }
.page-hero p { max-width: 700px; margin: 0; color: var(--text-soft); font-size: 15px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-meta svg { width: 13px; height: 13px; color: var(--purple); }

.document-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 55px; padding: 42px 0 90px; }
.toc { position: sticky; top: 105px; padding: 17px 0; }
.toc-label { margin: 0 0 13px 11px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.toc nav { display: grid; gap: 3px; }
.toc a { display: block; padding: 7px 11px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; line-height: 1.45; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.toc a:hover { border-left-color: var(--purple); background: var(--purple-wash); color: var(--text); }
.legal-copy { min-width: 0; max-width: 790px; }
.legal-copy section { padding: 0 0 28px; margin: 0 0 27px; border-bottom: 1px solid var(--line); scroll-margin-top: 115px; }
.legal-copy section:last-child { border-bottom: 0; }
.legal-copy h2 { margin: 0 0 12px; color: var(--text); font-size: 21px; line-height: 1.3; letter-spacing: -.035em; }
.legal-copy h3 { margin: 19px 0 7px; color: #e5dcf8; font-size: 15px; letter-spacing: -.015em; }
.legal-copy p { margin: 0 0 12px; color: var(--text-soft); font-size: 14px; line-height: 1.85; }
.legal-copy p:last-child { margin-bottom: 0; }
.legal-copy ul { display: grid; gap: 8px; margin: 12px 0 14px; padding-left: 21px; color: var(--text-soft); font-size: 14px; line-height: 1.8; }
.legal-copy li::marker { color: var(--purple); }
.legal-copy strong { color: var(--text); font-weight: 650; }
.legal-copy a { text-decoration: underline; text-decoration-color: rgba(167,139,250,.4); text-underline-offset: 3px; }
.inline-note { margin: 19px 0; padding: 15px 17px; border: 1px solid var(--line); border-left: 2px solid var(--purple-strong); border-radius: 10px; background: var(--surface); }
.inline-note p { margin: 0; font-size: 13px; }
.contact-block { margin-top: 35px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-block h2 { margin-bottom: 7px; }

.site-footer { border-top: 1px solid var(--line); background: #09070f; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; padding-block: 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: var(--text-soft); font-size: 12px; font-weight: 650; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.footer-brand .brand-mark svg { width: 17px; height: 17px; }
.footer-copy { color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 17px; }
.footer-links a { color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .container { width: min(100% - 34px, var(--content)); }
  .header-inner { min-height: 68px; }
  .header-nav { gap: 1px; }
  .header-nav a { padding: 8px 9px; font-size: 11px; }
  .header-nav .nav-cta { margin-left: 1px; }
  .hero { padding: 62px 0 50px; }
  .hero-copy { font-size: 15px; }
  .section { padding: 43px 0 60px; }
  .document-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 25px; }
  .toc { position: static; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .toc nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .toc a { border-left: 0; border-radius: 6px; padding: 7px 8px; }
  .legal-copy { max-width: none; }
}
@media (max-width: 520px) {
  .brand-caption { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-nav a { padding-inline: 7px; font-size: 10px; }
  .header-nav .nav-cta { display: none; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 195px; }
  .hero h1 { font-size: 43px; }
  .page-hero { padding-top: 39px; }
  .toc nav { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
