/* Kushi company & policy pages. Shell generated by scripts/legal-pages.mjs. */
:root {
  color-scheme: light;
  --plum: #2E001E;
  --plum-2: #4A0A33;
  --coral: #FB6337;
  --coral-ink: #D9441B;
  --cyan: #39EAFB;
  --ink: #22041A;
  --text: #43303B;
  --muted: #7A6671;
  --bg: #FFF8F4;
  --card: #FFFFFF;
  --line: #F1E6E3;
  --tint: #FFF1EA;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(46, 0, 30, 0.04), 0 12px 32px -12px rgba(46, 0, 30, 0.14);
  --night: radial-gradient(60% 90% at 85% 0%, rgba(251, 99, 55, 0.38), transparent 62%),
    radial-gradient(45% 80% at 8% 100%, rgba(57, 234, 251, 0.2), transparent 60%),
    linear-gradient(160deg, #2E001E 0%, #3D0729 55%, #23001A 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.72 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--coral-ink);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--plum);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 8px;
}

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--plum);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-head .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--plum);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand:hover {
  color: var(--plum);
}

.brand .logo {
  flex: none;
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px rgba(46, 0, 30, 0.5);
}

.get {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(46, 0, 30, 0.7);
  transition: transform 0.15s ease, background 0.15s ease;
}

.get:hover {
  color: #fff;
  background: var(--plum-2);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--night);
  color: #fff;
  padding: 44px 0 92px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.66);
}

.crumbs a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  text-decoration: none;
}

.crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero .meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero .ph {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: -56px;
  margin-bottom: 64px;
}

.side {
  position: sticky;
  top: 86px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.side nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-title {
  margin: 10px 10px 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-title:first-child {
  margin-top: 2px;
}

.side a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.side a:hover {
  background: var(--tint);
  color: var(--plum);
}

.side a[aria-current] {
  background: var(--plum);
  color: #fff;
}

.doc {
  min-width: 0;
  padding: clamp(24px, 4.5vw, 52px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Typography ---------- */
.doc > :first-child {
  margin-top: 0;
}

.doc h2 {
  position: relative;
  margin: 2.4em 0 0.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
  scroll-margin-top: 90px;
}

.doc h2:first-of-type {
  margin-top: 1.6em;
}

.doc h3 {
  margin: 1.6em 0 0.4em;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 800;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul,
.doc ol {
  padding-left: 1.35em;
}

.doc li {
  margin: 0.4em 0;
  padding-left: 0.2em;
}

.doc li::marker {
  color: var(--coral);
  font-weight: 800;
}

strong {
  color: var(--ink);
}

.lead {
  margin: 0 0 8px;
  color: var(--ink) !important;
  font-size: 1.14rem;
  line-height: 1.65;
  font-weight: 500;
}

.note {
  color: var(--muted) !important;
  font-size: 0.88rem;
}

.ph {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(251, 99, 55, 0.14);
  color: var(--coral-ink);
  font-weight: 600;
}

/* ---------- Callouts ---------- */
.draft,
.summary {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 0.94rem;
}

.draft {
  background: #FFF7E3;
  color: #6B4A00;
  border: 1px solid #F3D891;
}

.draft strong {
  color: #5A3E00;
}

.summary {
  background: var(--tint);
  border: 1px solid #FBD9CB;
  border-left: 4px solid var(--coral);
}

.toc {
  margin: 20px 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.toc > strong {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 10px 0 0;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin: 0.25em 0;
  break-inside: avoid;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--coral-ink);
  text-decoration: underline;
}

.kicker,
.card-kicker {
  display: inline-block;
  color: var(--coral-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Tables ---------- */
table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.93rem;
}

tbody,
thead {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

td,
th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--bg);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Grids & cards ---------- */
.facts,
.helplines,
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.facts > div,
.helplines > div,
.timeline > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.facts strong,
.helplines strong,
.timeline strong {
  color: var(--plum);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.helplines strong {
  color: var(--coral-ink);
}

.facts > div:first-child {
  background: var(--night);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.8);
}

.facts > div:first-child strong {
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -18px rgba(46, 0, 30, 0.4);
}

.card > strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.card p {
  margin: 6px 0 0;
  font-size: 0.93rem;
}

.card:first-child {
  background: var(--night);
  border-color: transparent;
  color: #fff;
}

.card:first-child > strong,
.card:first-child p {
  color: #fff;
}

.card:first-child .card-kicker {
  color: #FFB49C;
}

.card:first-child .ph {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.address {
  padding: 20px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-style: normal;
  line-height: 1.8;
}

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.94rem;
}

.details dt,
.details dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.details dt {
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
}

.details dt:last-of-type,
.details dd:last-of-type {
  border-bottom: none;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin: 12px 0;
  padding: 2px 0 2px 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--plum);
  color: #fff;
  font-weight: 800;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 12px;
}

.price {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -18px rgba(46, 0, 30, 0.4);
}

.price h3 {
  margin: 10px 0 0 !important;
  font-size: 0.98rem !important;
}

.price .amount {
  margin: 4px 0 6px;
  color: var(--plum) !important;
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price .amount small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price p:last-child {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--coral-ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.price:first-child {
  background: var(--night);
  border-color: transparent;
}

.price:first-child h3,
.price:first-child .amount {
  color: #fff !important;
}

.price:first-child .amount small,
.price:first-child p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.price:first-child .price-tag {
  background: var(--coral);
  color: #fff;
}

.officer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 22px 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.86);
}

.officer .kicker {
  color: #FFB49C;
}

.officer-name {
  color: #fff;
  font-size: 1.3rem;
}

.officer .ph {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-top: 52px;
  padding-bottom: 36px;
}

.foot-brand p {
  max-width: 320px;
  margin: 14px 0 18px;
}

.brand-light,
.brand-light:hover {
  color: #fff;
}

.get-light {
  background: #fff;
  color: var(--plum);
}

.get-light:hover {
  background: #FFE9E0;
  color: var(--plum);
}

.site-foot h2 {
  margin: 4px 0 12px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot li {
  margin: 8px 0;
}

.site-foot nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  text-decoration: none;
}

.site-foot nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: -64px;
  }

  .side {
    position: static;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side::-webkit-scrollbar {
    display: none;
  }

  .side nav {
    flex-direction: row;
    gap: 4px;
    width: max-content;
  }

  .side-title {
    display: none;
  }

  .side a {
    white-space: nowrap;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 0 16px;
  }

  .site-head .shell {
    min-height: 58px;
  }

  .get {
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .hero {
    padding: 30px 0 84px;
  }

  .doc {
    border-radius: 20px;
  }

  .toc ol {
    columns: 1;
  }

  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .details {
    grid-template-columns: 1fr;
  }

  .details dt {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .details dd {
    padding-top: 4px;
  }

  .foot-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .get {
    transition: none;
  }
}

@media print {
  .site-head,
  .side,
  .site-foot,
  .skip {
    display: none;
  }

  .hero {
    background: none;
    color: #000;
    padding: 0;
  }

  .hero h1 {
    color: #000;
  }

  .layout {
    display: block;
    margin: 0;
  }

  .doc {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

.brand-light .logo {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2);
}

/* ---------- 404 ---------- */
.hero-404 {
  min-height: calc(100vh - 66px - 300px);
  padding: 72px 0 88px;
  text-align: center;
}

.hero-404 h1 {
  margin: 0 auto;
}

.code-404 {
  margin: 0 0 8px;
  background: linear-gradient(95deg, #FB6337, #FFB49C 55%, #39EAFB);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.actions-404 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
}

.link-404 {
  color: #fff;
}

.link-404:hover {
  color: #FFB49C;
}
