.content-page,
.legal-page { background: #f7f5f0; }

.content-page .site-main,
.legal-page .site-main { position: relative; padding-bottom: clamp(5rem, 9vw, 8rem); overflow: hidden; }

.content-page .site-main::before,
.legal-page .site-main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  background-image: radial-gradient(circle, rgba(28,35,31,.08) .8px, transparent .8px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  pointer-events: none;
}

.content-page__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: end;
  max-width: none;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3.5rem, 7vw, 5.5rem);
}

.content-page__hero::after { display: none; }
.content-page__hero-copy { position: relative; }
.content-page__hero h1 { max-width: 840px; margin-bottom: 1.5rem; font-size: clamp(3.4rem, 7.5vw, 6.4rem); line-height: .94; }
.content-page__hero h1 em { color: var(--accent); font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400; }
.content-page__hero-copy > p:last-child { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.18rem); }

.content-hero-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink-deep);
  box-shadow: var(--sh-lg);
}
.content-hero-card::after { content: ''; position: absolute; width: 190px; height: 190px; top: -125px; right: -70px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.018); }
.content-hero-card > * { position: relative; z-index: 1; }
.content-hero-card > span { color: #7fc9bf; font-family: 'Outfit', sans-serif; font-size: .56rem; font-weight: 800; letter-spacing: .15em; }
.content-hero-card > strong { color: #fff; font-family: 'Outfit', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
.content-hero-card > div { display: grid; gap: .25rem; }
.content-hero-card > div p { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.08); color: #91a59d; font-size: .7rem; }
.content-hero-card > div b { color: #fff; font-size: .92rem; }
.content-hero-card--contact { min-height: 230px; }
.content-hero-card--contact a { color: #c4eee8; font-size: .78rem; overflow-wrap: anywhere; }

.content-page__body { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.content-section {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.content-section--tint { background: #edf4f1; }
.content-section__label > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 2.5rem; border: 1px solid var(--border-strong); border-radius: .75rem; color: var(--accent); font-size: .58rem; font-weight: 800; transform: rotate(-3deg); }
.content-section__label h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.content-section__copy { padding-top: .5rem; }
.content-section__copy p { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.8; }
.content-section__copy .content-lead { color: var(--ink); font-family: 'Outfit', sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }

.content-framework-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.content-framework-grid article { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: rgba(255,255,255,.8); }
.content-framework-grid article > span { color: var(--accent); font-size: .58rem; font-weight: 800; }
.content-framework-grid h3 { margin: 0 0 .25rem; font-size: .93rem; }
.content-framework-grid p { margin: 0; color: var(--ink-muted); font-size: .76rem; }

.content-boundaries { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.content-boundaries article { min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--r-md); background: #f8faf8; }
.content-boundaries article:last-child { background: var(--ink-deep); }
.content-boundaries small { margin-bottom: auto; color: var(--accent); font-size: .54rem; font-weight: 800; letter-spacing: .12em; }
.content-boundaries article:last-child small { color: #80cfc4; }
.content-boundaries h3 { margin-bottom: .55rem; font-size: 1.15rem; }
.content-boundaries p { margin: 0; font-size: .86rem; }
.content-boundaries article:last-child h3 { color: #fff; }
.content-boundaries article:last-child p { color: #9cb0a8; }

.content-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-block: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 0;
  border-radius: var(--r-lg);
  background: #dfeee9;
}
.content-callout h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.content-callout p { font-size: .98rem; }
.content-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 1rem; align-items: start; }
.contact-aside { display: grid; gap: .7rem; }
.contact-note { min-height: 145px; padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-xs); }
.contact-note::before { content: ''; display: block; width: 26px; height: 3px; margin-bottom: 1.3rem; border-radius: 99px; background: var(--accent); }
.contact-note h2 { margin-bottom: .45rem; font-size: 1.05rem; }
.contact-note p { margin: 0; font-size: .86rem; }
.contact-card { position: relative; padding: clamp(1.6rem, 4vw, 3rem); overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-md); }
.contact-card::before { width: 260px; height: 260px; top: -190px; right: -100px; background: var(--accent-soft); opacity: .8; }
.contact-card h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-card__intro { max-width: 650px; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.contact-email-link { width: fit-content; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.contact-email-link__address { min-width: 0; }
.contact-email-link .button__arrow { flex: 0 0 auto; }
.contact-card__response { margin: 1rem 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.6; }
.contact-card__note { max-width: 590px; margin: clamp(2rem, 4vw, 2.8rem) 0 0; padding-top: 1.15rem; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: .72rem; line-height: 1.65; }

/* Legal reading experience */
.legal-page .content-page__hero { display: block; max-width: 850px; padding-bottom: 2.5rem; }
.legal-page .content-page__hero h1 { font-size: clamp(3.3rem, 7vw, 5.8rem); }
.legal-page__body { max-width: 900px; padding: clamp(1.6rem, 5vw, 4.2rem); margin: 0 auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-md); }
.legal-page__meta { display: inline-flex; margin-bottom: 2.4rem; padding: .65rem .9rem; border: 1px solid rgba(8,124,109,.16); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-deep); font-size: .75rem; font-weight: 700; }
.legal-page__body > p:first-of-type { color: var(--ink); font-size: 1.08rem; }
.legal-page__body h2 { margin: 3.2rem 0 1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: clamp(1.45rem, 3vw, 2rem); }
.legal-page__body h2:first-of-type { margin-top: 0; border-top: 0; }
.legal-page__body h3 { margin: 1.8rem 0 .55rem; font-size: 1.08rem; }
.legal-page__body p, .legal-page__body li { color: var(--ink-soft); font-size: 1rem; line-height: 1.82; }
.legal-page__body li { margin-bottom: .55rem; }

.content-page .reveal,
.legal-page .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.16,1,.3,1) var(--delay,0ms), transform .65s cubic-bezier(.16,1,.3,1) var(--delay,0ms); }
.content-page .reveal.is-visible,
.legal-page .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .content-page__hero, .content-section, .content-callout, .contact-layout { grid-template-columns: 1fr; }
  .content-hero-card { min-height: 220px; }
  .content-section { gap: 2.5rem; }
}

@media (max-width: 620px) {
  .content-page__hero { padding-top: 3.5rem; }
  .content-page__hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .content-section, .content-callout, .legal-page__body { padding: 1.3rem; border-radius: var(--r-md); }
  .content-framework-grid, .content-boundaries { grid-template-columns: 1fr; }
  .content-boundaries article { min-height: 210px; }
  .content-actions { display: grid; }
  .contact-card { padding: 1.25rem; }
  .contact-email-link { width: 100%; justify-content: space-between; padding-inline: 1rem; font-size: .82rem; }
}
