/* Yipjoy redesign: warm studio editorial, built entirely from static assets. */
:root {
  --ink: #292348;
  --ink-soft: #615a74;
  --ink-faint: #817b91;
  --paper: #fffdf8;
  --paper-warm: #fff4e6;
  --sun: #ffd65e;
  --shell: 1200px;
  --bay: clamp(4.5rem, 8vw, 7rem);
  --stroke: 2px;
}

body { background: var(--paper); font-size: 1rem;
  /* iOS reaches Apple Color Emoji through font fallback for symbols like
     U+2197 and U+2733. The markup pins those with U+FE0E; this is the same
     instruction in CSS, covering anything added later that misses one. */
  font-variant-emoji: text; }
h1, h2, h3 { letter-spacing: -.035em; }
.shell { width: min(100% - 2.5rem, var(--shell)); }

.btn, .store {
  box-shadow: none;
  border: 2px solid var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .store:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.btn:active, .store:active { transform: translateY(0); box-shadow: none; }
.btn--primary { background: var(--sun); }
.btn--ghost { background: #fff; }

.masthead { padding-block: 0; background: rgba(255,253,248,.94); border-bottom: 1px solid #ebe5e5; }
.masthead::before { display: none; }
.masthead__bar { padding: .8rem 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand { font-size: 1.55rem; letter-spacing: -.045em; }
.brand img { width: 2.5rem; height: 2.5rem; }
.nav { gap: .4rem; }
.nav a { padding: .58rem .9rem; }
.nav a:hover { background: #fff1ce; }
.nav .btn { padding: .55rem 1.25rem; background: var(--sun); box-shadow: none; }
.nav .btn:hover { box-shadow: 0 4px 0 var(--ink); }

.hero {
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(5rem, 8vw, 7rem);
  overflow: hidden;
  background: radial-gradient(circle at 79% 26%, #fff1d7 0, transparent 34%), var(--paper);
  text-align: left;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy { position: relative; z-index: 2; padding-block: 1rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; color: #8d4c7b; font-weight: 800; font-size: .85rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow__star { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #ffe99b; color: var(--ink); font-size: 1.25rem; line-height: 1; letter-spacing: 0; }
.hero h1 { max-width: 11ch; margin: 0; font-size: clamp(3.6rem, 6.4vw, 6.5rem); line-height: .98; }
.hero h1 em { position: relative; color: #e75c9b; font-style: normal; }
.hero h1 em::after { content: ''; position: absolute; z-index: -1; left: 2%; right: 1%; bottom: .03em; height: .15em; border-radius: 50%; background: #ffdf75; transform: rotate(-2deg); }
.hero__lede { max-width: 37rem; margin: 1.75rem 0 0; color: var(--ink-soft); font-size: clamp(1.1rem, 1.65vw, 1.3rem); line-height: 1.55; }
.hero__actions { justify-content: flex-start; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero__actions .btn { padding: .95rem 1.4rem; }
.hero__actions .btn span { font-size: 1.25em; line-height: 0; }
.text-link { color: var(--ink); font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; }
.text-link:hover { color: #d9478a; }
.hero__note { margin-top: 1.6rem; color: var(--ink-faint); font-size: .9rem; font-weight: 700; }

.hero__visual { position: relative; min-height: clamp(27rem, 43vw, 35rem); isolation: isolate; }
.hero__visual::before { content: ''; position: absolute; inset: 7% 6% 5% 8%; border-radius: 48% 52% 44% 56%; background: #ffe4a2; transform: rotate(-10deg); }
.hero__visual::after { content: ''; position: absolute; width: 70%; height: 69%; top: 13%; left: 13%; z-index: -1; border: 2px dashed rgba(41,35,72,.2); border-radius: 50%; transform: rotate(24deg); }
.hero__tile { position: absolute; width: 62%; margin: 0; padding: .4rem; overflow: hidden; border: 2px solid var(--ink); border-radius: 1.25rem; background: white; box-shadow: 0 12px 0 rgba(41,35,72,.22), 0 18px 32px rgba(41,35,72,.14); }
.hero__tile img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: .8rem; }
.hero__tile figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .3rem .4rem .05rem; font-family: 'Baloo 2', Nunito, sans-serif; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.hero__tile figcaption span { font-family: Nunito, sans-serif; font-size: .7rem; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.hero__tile--cubely { top: 3%; left: 1%; transform: rotate(-10deg); }
.hero__tile--gooey { top: 29%; right: -2%; z-index: 2; transform: rotate(8deg); }
.hero__tile--coloring { bottom: 0; left: 5%; transform: rotate(-5deg); }
.hero__doodle { position: absolute; z-index: 3; color: #e85d98; font-size: 3.5rem; line-height: 1; }
.hero__doodle--one { top: -3%; right: 4%; transform: rotate(20deg); }
.hero__doodle--two { bottom: 3%; right: 7%; color: #5bb9e8; transform: rotate(-18deg); }

.games { gap: clamp(1.7rem, 3vw, 2.5rem); padding-bottom: var(--bay); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: .4rem; }
.section-intro .eyebrow { margin-bottom: .75rem; }
.section-intro h2 { max-width: 15ch; font-size: clamp(2.5rem, 4.8vw, 4.25rem); }
.section-intro > p { max-width: 29rem; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.55; }
.game { border: 1px solid #e7e0e5; border-radius: 2rem; background: #fff; box-shadow: 0 12px 34px rgba(41,35,72,.07); }
.game__grid { gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1rem, 2.4vw, 2rem); }
.game__art { padding: clamp(.75rem, 1.8vw, 1.5rem); border-radius: 1.35rem; background: var(--accent); }
.game--cubely { --accent: #daf2ff; }
.game--gooey { --accent: #e9f5c5; }
.game--coloring { --accent: #ffe0ed; }
.game__promo { border: 0; border-radius: .95rem; box-shadow: none; aspect-ratio: 1024 / 500; object-fit: cover; }
.shots { gap: .5rem; }
.shots img { border: 0; border-radius: .55rem; box-shadow: none; }
.game__body { padding: clamp(.5rem, 1vw, 1rem) clamp(.35rem, 1.2vw, 1rem); }
.game__body > * + * { margin-top: 1.15rem; }
.game__title { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.game__subtitle { margin-top: .18em; font-size: .42em; opacity: .7; letter-spacing: -.015em; }
.game__tagline { color: #b34781; opacity: 1; font-size: 1.15rem; }
.game__desc { max-width: 48ch; color: var(--ink-soft); font-size: 1rem; font-weight: 600; }
.game__more { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 800; text-decoration: none; border-bottom: 2px solid #e75c9b; }
.game__more:hover { color: #bd3c78; }
.flag { border-width: 2px; background: var(--sun); box-shadow: none; transform: none; }
.chips { gap: .45rem; }
.chips li { border: 0; background: #f5f2f7; color: var(--ink); font-size: .8rem; }
.store { padding: .55rem .95rem; border-color: #d7d0dc; box-shadow: none; }
.store:hover { border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.store__name { font-size: .95rem; }
.game__body > .store-note { color: var(--ink-faint); opacity: 1; font-size: .8rem; }

.studio { border: 0; background: #f5efff; }
.studio__grid { gap: clamp(1.5rem, 4vw, 3rem); }
.studio h2 { max-width: 13ch; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.studio__body { padding-top: .4rem; font-size: 1.1rem; }
.studio__body p { color: var(--ink-soft); }
.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #e4dced; border-radius: 1.5rem; box-shadow: 0 10px 28px rgba(41,35,72,.06); }
.contact-card h3 { font-size: 1.9rem; }
.contact-card p { margin: 0; }
.contact-card .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }

.faq { border: 0; }
.faq h2 { font-size: clamp(2.6rem, 4.8vw, 4.25rem); }
.faq__list { gap: 1rem; }
.faq__item { padding: clamp(1.3rem, 2.5vw, 2rem); border: 1px solid #eee8e5; border-radius: 1.25rem; background: #fff; }
.faq__item h3 { font-size: 1.28rem; }
.faq__item p { max-width: none; font-size: .96rem; }

.footer { border: 0; background: var(--ink); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer__tag { max-width: 25ch; }
.footer__links { max-width: 37rem; }
.footer__links a:hover { color: var(--sun); }

.page-head { padding-top: clamp(3.5rem, 7vw, 6rem); }
.page-head h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); }
.stamp { border-width: 0; background: #fff0be; }
.callout { border-width: 1px; box-shadow: none; }

/* Individual game pages */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: clamp(2rem, 4vw, 3rem); color: var(--ink-soft); font-size: .9rem; font-weight: 800; }
.breadcrumbs a { color: var(--ink); text-decoration-color: #e75c9b; }
.detail-hero { padding: clamp(2rem, 5vw, 4.5rem) 0 var(--bay); background: radial-gradient(circle at 75% 30%, #fff0d1, transparent 37%), var(--paper); }
.detail-hero__grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.detail-hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.5vw, 5.7rem); line-height: 1; }
.detail-hero__headline { margin-top: 1.2rem; color: #b34781; font-family: 'Baloo 2', Nunito, sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.25; }
.detail-hero__intro { max-width: 39rem; margin-top: 1rem; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.6; }
.detail-hero__art { padding: clamp(.65rem, 2vw, 1.35rem); border-radius: 1.5rem; background: #e9d8fa; transform: rotate(2deg); box-shadow: 0 18px 32px rgba(41,35,72,.1); }
.detail-hero__art img { width: 100%; border-radius: .8rem; }
.detail-store { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.detail-store .btn { font-size: 1rem; }
.detail-store .btn span { font-size: 1.2em; line-height: 0; }
.detail-hero .store-note { margin-top: .8rem; color: var(--ink-faint); font-size: .85rem; font-weight: 700; }
.detail-section { padding-block: var(--bay); }
.detail-section h2, .detail-gallery h2, .detail-more h2 { font-size: clamp(2.4rem, 4.7vw, 4rem); }
.detail-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .75fr); gap: clamp(2rem, 6vw, 6rem); }
.detail-feature-list { display: grid; gap: 1.8rem; margin-top: 2rem; }
.detail-feature-list article { padding-left: 1.2rem; border-left: 4px solid #e75c9b; }
.detail-feature-list h3 { font-size: 1.5rem; }
.detail-feature-list p { max-width: 45rem; margin-top: .4rem; color: var(--ink-soft); }
.detail-facts { align-self: start; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 1.5rem; background: #f5efff; }
.detail-facts h2 { font-size: 1.7rem; }
.detail-facts ul { display: grid; gap: .65rem; margin: 1.1rem 0 0; padding-left: 1.2rem; font-weight: 700; }
.detail-facts p { margin-top: 1.5rem; color: var(--ink-soft); font-size: .92rem; }
.detail-facts a { color: var(--ink); font-weight: 800; }
.detail-gallery { padding-block: var(--bay); background: #eaf7ff; }
.detail-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.3rem); margin-top: 2rem; }
.detail-shot { min-width: 0; margin: 0; }
.detail-shot img { width: 100%; border: 6px solid white; border-radius: 1rem; box-shadow: 0 8px 20px rgba(41,35,72,.1); }
.detail-shot figcaption { padding: .7rem .2rem 0; color: var(--ink-soft); font-size: .86rem; font-weight: 700; line-height: 1.4; }
.detail-questions .faq__list { margin-top: 2rem; }
.detail-more { padding-block: var(--bay); background: #fff2e7; }
.detail-more__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.detail-more__links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid #eadfdb; border-radius: 1rem; background: white; font-family: 'Baloo 2', Nunito, sans-serif; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.detail-more__links a:hover { border-color: var(--ink); transform: translateY(-2px); }

@media (max-width: 64em) {
  .hero__inner { gap: 1rem; }
  .hero h1 { font-size: clamp(3.3rem, 6vw, 5rem); }
  .hero__visual { min-height: 29rem; }
}
@media (max-width: 52em) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 40rem; }
  .hero h1 { max-width: 13ch; }
  .hero__visual { width: min(100%, 37rem); min-height: 33rem; margin-inline: auto; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 1rem; }
  .contact-card { display: block; }
  .contact-card p { margin-top: .5rem; }
  .contact-card .btn { margin-top: 1.3rem; }
  .detail-hero__grid, .detail-overview { grid-template-columns: 1fr; }
  .detail-hero h1 { max-width: 15ch; }
  .detail-hero__art { width: min(100%, 42rem); }
  .detail-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99em) {
  .masthead__bar { padding-block: .65rem; }
  .nav__toggle { border-width: 2px; box-shadow: none; }
  .nav { border-width: 1px; border-color: #e9e2e7; border-radius: 1.25rem; background: var(--paper); box-shadow: 0 12px 30px rgba(41,35,72,.12); }
}
@media (max-width: 35em) {
  .shell { width: min(100% - 2rem, var(--shell)); }
  .hero { padding-top: 2.5rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(3.15rem, 13vw, 4.2rem); }
  .hero__lede { margin-top: 1.25rem; }
  .hero__actions { gap: 1rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__visual { min-height: 22rem; margin-top: 1rem; }
  .hero__tile { width: 67%; padding: .25rem; border-radius: .8rem; }
  .hero__tile img { border-radius: .55rem; }
  .hero__tile figcaption { font-size: .78rem; }
  .hero__tile figcaption span { font-size: .57rem; }
  .hero__tile--cubely { left: 0; }
  .hero__tile--gooey { right: -1%; }
  .hero__tile--coloring { left: 2%; }
  .hero__doodle { font-size: 2.5rem; }
  .game { border-radius: 1.35rem; }
  .game__grid { padding: .8rem; }
  .game__art { padding: .6rem; border-radius: .9rem; }
  .game__body { padding: .7rem .6rem 1.2rem; }
  .game__title { font-size: 2.8rem; }
  .store-row { gap: .6rem; }
  .store { padding: .5rem .7rem; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .detail-hero__art { transform: none; }
  .detail-shots { gap: 1rem .65rem; }
  .detail-shot img { border-width: 3px; border-radius: .65rem; }
  .detail-shot figcaption { font-size: .76rem; }
  .detail-more__links { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Game pages: app icon, store buttons, long-form description
   -------------------------------------------------------------------------- */

/* One tile, three sizes: the hero, the facts card, the cross-links. */
.app-icon { display: block; flex: none; overflow: hidden; width: 5.5rem; height: 5.5rem; border: 2px solid var(--ink); border-radius: 1.35rem; background: #fff; box-shadow: 0 8px 0 rgba(41,35,72,.15); }
.app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }

.detail-hero__id { display: flex; align-items: center; gap: 1.15rem; margin-bottom: 1.6rem; }
.detail-hero__id .eyebrow { margin: 0; }

/* The detail hero asks more of these than the home page does, so they wear the
   full ink border and a slightly bigger logo. */
.detail-store .store { padding: .7rem 1.25rem .7rem 1rem; border-color: var(--ink); background: #fff; }
.detail-store .store:hover { box-shadow: 0 6px 0 var(--ink); }
.detail-store .store:active { transform: translateY(0); box-shadow: none; }
.detail-store .store__icon { width: 1.75rem; height: 1.75rem; }
.detail-store .store__name { font-size: 1.05rem; }

.detail-story { padding-block: var(--bay); background: #f5efff; }
.detail-story h2 { max-width: 24ch; font-size: clamp(2.4rem, 4.7vw, 4rem); }
.detail-story__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; margin-top: 2.2rem; }
.detail-story__body > p { max-width: 62ch; margin: 1.1rem 0 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; }
.detail-story__body h3 { margin: 2.4rem 0 0; font-size: 1.5rem; }
.detail-story__body h3 + p { margin-top: .6rem; }
.detail-story__body ul { display: grid; gap: .6rem; max-width: 62ch; margin: 1rem 0 0; padding-left: 1.25rem; color: var(--ink-soft); font-weight: 600; line-height: 1.5; }
.detail-story__body li::marker { color: #e75c9b; }
.detail-story__close { font-family: 'Baloo 2', Nunito, sans-serif; font-weight: 800; }
.detail-story__body .detail-story__close { color: #b34781; font-size: 1.2rem; }

.detail-story__card { position: sticky; top: 5.5rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid #e4dced; border-radius: 1.5rem; background: #fff; }
.detail-story__card .app-icon { width: 4rem; height: 4rem; border-radius: 1rem; box-shadow: none; }
.detail-story__card h3 { margin-top: 1rem; font-size: 1.35rem; line-height: 1.2; }
.detail-story__card dl { margin: 1.2rem 0 0; }
.detail-story__card dt { margin-top: 1rem; }
.detail-story__card dt:first-child { margin-top: 0; }
.detail-story__card dt { color: var(--ink-faint); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-story__card dd { margin: .2rem 0 0; font-weight: 700; line-height: 1.45; }

.detail-more__links a { justify-content: flex-start; gap: .9rem; }
.detail-more__links a > span:last-child { margin-left: auto; }
.detail-more__icon { width: 2.75rem; height: 2.75rem; border-radius: .85rem; box-shadow: none; }

@media (max-width: 52em) {
  .detail-story__grid { grid-template-columns: 1fr; }
  .detail-story__card { position: static; }
}
@media (max-width: 35em) {
  .app-icon { width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; box-shadow: 0 6px 0 rgba(41,35,72,.15); }
  .detail-hero__id { gap: .9rem; margin-bottom: 1.25rem; }
  .detail-store { gap: .6rem; }
  .detail-store .store { padding: .6rem .9rem .6rem .75rem; }
  .detail-story__body h3 { font-size: 1.35rem; }
}

/* --------------------------------------------------------------------------
   Legal pages: privacy policy and terms
   -------------------------------------------------------------------------- */

.legal-head { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: radial-gradient(circle at 78% 24%, #fff0d1, transparent 40%), var(--paper); }
.legal-head h1 { max-width: 14ch; font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1; }
.legal-head__lede { max-width: 46rem; margin-top: 1.3rem; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.65; }
.legal-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.legal-head__meta .stamp { margin: 0; }

.legal-body { padding-block: clamp(3rem, 6vw, 5rem) var(--bay); }
.legal-body__grid { display: grid; grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* The contents list is the only way a thirteen-section document stays
   navigable, so it rides along and marks where you are. */
.legal-toc { position: sticky; top: 5.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; padding: 1.35rem 1.15rem; border-radius: 1.35rem; background: #f5efff; }
.legal-toc h2 { color: var(--ink-faint); font-family: Nunito, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc ol { counter-reset: toc; display: grid; gap: .1rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: grid; grid-template-columns: 1.45rem 1fr; gap: .35rem; padding: .42rem .55rem; border-radius: .6rem; color: var(--ink-soft); font-size: .92rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.legal-toc a::before { content: counter(toc) "."; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { background: #fff; color: var(--ink); }
.legal-toc a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: inset 3px 0 0 #e75c9b; }
.legal-toc a[aria-current="true"]::before { color: #e75c9b; }

.legal-prose { max-width: 44rem; }
.legal-prose h2 { display: flex; align-items: baseline; gap: .8rem; margin-top: 2.9rem; padding-top: 2.3rem; border-top: 1px solid #ece6f3; font-size: clamp(1.55rem, 2.6vw, 2rem); scroll-margin-top: 6rem; }
.legal-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-num { display: inline-grid; flex: none; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: .95rem; font-weight: 800; letter-spacing: 0; }
.legal-prose h3 { margin-top: 2.2rem; font-size: 1.28rem; scroll-margin-top: 6rem; }
.legal-prose p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.7; }
.legal-prose h2 + p, .legal-prose h3 + p { margin-top: .85rem; }
.legal-prose strong { color: var(--ink); font-weight: 800; }
.legal-prose ul { display: grid; gap: .55rem; margin: 1.1rem 0 0; padding-left: 1.25rem; color: var(--ink-soft); line-height: 1.6; }
.legal-prose li::marker { color: #e75c9b; }
.legal-prose a { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: #e75c9b; text-underline-offset: .18em; }
.legal-prose a:hover { color: #b34781; }
.legal-prose hr { margin: 3rem 0 0; border: 0; border-top: 2px dashed #d9d2e4; }
/* The rule already does the separating, so the heading drops its own. */
.legal-prose hr + h2 { margin-top: 0; padding-top: 2.3rem; border-top: 0; }

.legal-callout { margin-top: 1.6rem; padding: clamp(1.1rem, 2.5vw, 1.4rem) clamp(1.2rem, 3vw, 1.7rem); border: 0; border-left: 4px solid #e75c9b; border-radius: 0 1rem 1rem 0; background: #fff2e7; box-shadow: none; }
.legal-callout p { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.6; }

.legal-more { padding-block: var(--bay); background: #fff2e7; }
.legal-more h2 { max-width: 18ch; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.legal-more > .shell > p { max-width: 42rem; margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }
.legal-more .btn { margin-top: 1.8rem; }
.legal-more__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.legal-more__links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid #eadfdb; border-radius: 1rem; background: #fff; color: var(--ink); font-family: 'Baloo 2', Nunito, sans-serif; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.legal-more__links a:hover { border-color: var(--ink); transform: translateY(-2px); }

@media (max-width: 60em) {
  .legal-body__grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-prose { max-width: none; }
}
@media (max-width: 35em) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-prose h2 { margin-top: 2.3rem; padding-top: 1.8rem; gap: .65rem; }
  .legal-num { width: 1.9rem; height: 1.9rem; font-size: .85rem; }
  .legal-more__links { grid-template-columns: 1fr; }
}

/* Ten themes read as a list, not as a paragraph of forty nouns. */
.theme-list { display: grid; gap: .8rem; max-width: 62ch; margin: 1.3rem 0 0; }
.theme-list > div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: .25rem 1.25rem; }
.theme-list dt { color: var(--ink); font-weight: 800; }
.theme-list dd { margin: 0; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 35em) {
  .theme-list > div { grid-template-columns: 1fr; gap: .1rem; }
}
