* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", Inter, system-ui, -apple-system, sans-serif;
  color: #1c1c1e;
  background-color: #f2f2f7;
}

body.home-page {
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.24), transparent 24rem),
    radial-gradient(circle at top right, rgba(255, 192, 67, 0.14), transparent 22rem),
    linear-gradient(180deg, #18181b 0, #18181b 21rem, #eef4f0 21rem, #f6f7fb 100%);
}

body.legal-page {
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.22), transparent 24rem),
    linear-gradient(180deg, #18181b 0, #18181b 20rem, #f2f2f7 20rem, #f2f2f7 100%);
}

a {
  color: #0f8f64;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0b6d4c;
}

::selection {
  background: rgba(15, 143, 100, 0.18);
}

.page {
  width: calc(100% - 32px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 0 72px;
}

body.home-page .page {
  width: calc(100% - 32px);
  max-width: 1080px;
  padding-bottom: 104px;
}

.layout,
.document,
.toc,
.hero,
.card {
  min-width: 0;
  max-width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(24, 24, 27, 0.98), rgba(39, 39, 42, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.hero-home {
  padding: 36px;
  border-radius: 32px;
}

.hero-legal {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: rgba(255, 192, 67, 0.08);
  filter: blur(10px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-home p,
.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #c8c8d0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

body.home-page .grid {
  align-items: stretch;
}

.card {
  display: block;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(28, 28, 30, 0.08);
  box-shadow: 0 18px 40px rgba(25, 25, 31, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.home-page .card {
  background: rgba(255, 255, 255, 0.96);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 143, 100, 0.24);
  box-shadow: 0 22px 46px rgba(15, 143, 100, 0.12);
}

.card-type {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 143, 100, 0.1);
  color: #0f8f64;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card h2 {
  margin: 18px 0 10px;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #1c1c1e;
}

.card p {
  margin: 0 0 20px;
  color: #2a2a34;
  line-height: 1.7;
}

.card-meta,
.footer-note {
  color: #6b6b80;
  font-weight: 600;
}

.footer-note {
  margin-top: 18px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}

.brand-mark {
  width: min(220px, 50vw);
  height: auto;
  flex: none;
}

.hero-copy {
  max-width: 760px;
}

.hero-meta,
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill,
.hero-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-nav a[aria-current="page"] {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.34);
  color: #d8fff0;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.toc,
.document {
  border: 1px solid rgba(28, 28, 30, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(25, 25, 31, 0.08);
  backdrop-filter: blur(14px);
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.toc summary {
  display: none;
}

.toc-links h2 {
  margin: 0 0 14px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b6b80;
}

.toc-links a {
  display: block;
  padding: 10px 0;
  color: #1c1c1e;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 28, 30, 0.06);
}

.toc-links a:last-child {
  border-bottom: 0;
}

.document {
  padding: 36px;
  overflow-wrap: break-word;
}

.lede,
.notice {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(15, 143, 100, 0.12);
  background: linear-gradient(180deg, rgba(15, 143, 100, 0.08), rgba(15, 143, 100, 0.04));
}

.notice {
  border-color: rgba(255, 192, 67, 0.28);
  background: linear-gradient(180deg, rgba(255, 192, 67, 0.12), rgba(255, 192, 67, 0.06));
}

.lede p,
.notice p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.lede p {
  color: #295447;
}

.notice p {
  color: #6f5313;
}

.alert {
  margin: 0 0 30px;
  padding: 18px 20px;
  border-left: 4px solid #e11900;
  border-radius: 18px;
  background: #fff4f2;
  color: #74291f;
  font-weight: 700;
  line-height: 1.65;
}

section {
  padding-top: 10px;
}

section + section {
  margin-top: 10px;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #1c1c1e;
}

p,
li,
td,
th {
  font-size: 1rem;
  line-height: 1.72;
  color: #2a2a34;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 18px;
  padding-left: 1.25rem;
}

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

strong {
  color: #121214;
}

.table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border: 1px solid #dfdfe7;
  border-radius: 22px;
  background: #fbfbfd;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  vertical-align: top;
  border-bottom: 1px solid #dfdfe7;
}

thead th {
  background: #18181b;
  color: #fff;
  text-align: left;
  font-size: 0.96rem;
  line-height: 1.45;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td ul {
  margin-bottom: 0;
}

.footer {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #dfdfe7;
  color: #6b6b80;
  font-size: 0.96rem;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .page {
    width: calc(100% - 20px);
    padding-top: 20px;
  }

  body.home-page .page {
    width: calc(100% - 20px);
  }

  .hero-home,
  .hero-legal,
  .document,
  .toc,
  .card {
    border-radius: 24px;
  }

  .hero-home,
  .hero-legal,
  .document,
  .card {
    padding: 24px;
  }

  .toc {
    padding: 0;
    overflow: hidden;
  }

  .toc summary {
    display: block;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 700;
    color: #1c1c1e;
    list-style: none;
  }

  .toc summary::-webkit-details-marker {
    display: none;
  }

  .toc summary::after {
    content: "+";
    float: right;
    color: #0f8f64;
    font-size: 1.2rem;
    line-height: 1;
  }

  .toc[open] summary::after {
    content: "−";
  }

  .toc-links {
    padding: 0 20px 18px;
  }

  .toc-links h2 {
    display: none;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .pill,
  .hero-nav a {
    min-height: 44px;
  }
}
