/* Pages built on lab/cinema_page.html: legal, blog, newsletter, auth. Loads after cinema.css and reuses its tokens. */

/* ---------- shell ---------- */
.cn-sub__main { position: relative; min-height: 70vh; }
.cn-pagehead { position: relative; padding: 9.5rem 0 3.5rem; overflow: hidden; isolation: isolate; }
.cn-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 80% at 20% -10%, rgba(124,77,255,.22), transparent 70%), radial-gradient(ellipse 35% 70% at 85% -10%, rgba(255,47,214,.12), transparent 70%); }
.cn-pagehead .cn-rays { z-index: -1; }
.cn-pagehead h1 { font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 700; line-height: 1.04; margin: 0 0 1.1rem; max-width: 22ch; }
.cn-pagehead h1 span { display: block; color: var(--muted); font-weight: 300; }
.cn-pagehead .cn-lede { margin: 0; }
.cn-pagehead__meta { margin-top: 1.4rem; }

.cn-section { padding: 1rem 0 6rem; }
.cn-narrow { width: min(820px, calc(100% - 3rem)); margin-inline: auto; }

/* ---------- panels ---------- */
.cn-panel { position: relative; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); padding: clamp(1.5rem, 4vw, 3rem); }

/* ---------- long-form text (legal pages, blog posts) ---------- */
.cn-prose { color: rgba(243,240,255,.8); font-size: 1.02rem; line-height: 1.75; }
.cn-prose > :first-child { margin-top: 0; }
.cn-prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.25; margin: 2.8rem 0 1rem; }
.cn-prose h3 { font-size: 1.15rem; font-weight: 500; margin: 2rem 0 .8rem; }
.cn-prose h4 { font: 600 1rem "Inter", sans-serif; color: var(--text); margin: 1.6rem 0 .6rem; }
.cn-prose p, .cn-prose li { color: rgba(243,240,255,.8); }
.cn-prose p { margin: 0 0 1.1rem; }
.cn-prose ul, .cn-prose ol { padding-left: 1.3rem; margin: 0 0 1.3rem; display: grid; gap: .5rem; }
.cn-prose li::marker { color: var(--cyan); }
.cn-prose strong, .cn-prose b { color: var(--text); font-weight: 600; }
.cn-prose a { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
.cn-prose a:hover { color: var(--cyan); }
.cn-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
.cn-prose blockquote { margin: 1.8rem 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--magenta); background: rgba(255,47,214,.06); border-radius: 0 16px 16px 0; color: var(--text); }
.cn-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; display: block; overflow-x: auto; }
.cn-prose th, .cn-prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; color: rgba(243,240,255,.8); }
.cn-prose th { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cn-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.cn-prose code { font-family: var(--mono); font-size: .85em; padding: .1em .4em; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--text); }

/* legal: numbered sections with a sticky contents list */
.cn-legal { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.cn-legal__toc { position: sticky; top: 7rem; display: grid; gap: .2rem; }
.cn-legal__toc .cn-mono { margin: 0 0 .8rem; }
.cn-legal__toc a { color: rgba(243,240,255,.6); text-decoration: none; font-size: .85rem; line-height: 1.35; padding: .35rem 0 .35rem .8rem; border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.cn-legal__toc a:hover { color: #fff; border-color: var(--cyan); }
.cn-legal .cn-prose h2 { scroll-margin-top: 7rem; }

/* ---------- forms ---------- */
.cn-field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.cn-field label, .cn-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,240,255,.7); }
.cn-input { width: 100%; padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: 400 .95rem "Inter", sans-serif; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.cn-input::placeholder { color: rgba(243,240,255,.4); }
.cn-input:focus { border-color: rgba(25,230,255,.6); background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px rgba(25,230,255,.15); }
.cn .cn-btn[type="submit"], .cn button.cn-btn { border: 0; cursor: pointer; }
.cn-btn--block { width: 100%; justify-content: center; }
.cn-alert { padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-size: .92rem; margin-bottom: 1.2rem; }
.cn-alert--success { border-color: rgba(94,242,164,.45); background: rgba(94,242,164,.08); }
.cn-alert--error { border-color: rgba(255,60,90,.45); background: rgba(255,60,90,.1); color: #ffc2cd; }

/* ---------- chips / pills ---------- */
.cn-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: rgba(243,240,255,.8); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.cn-chip:hover, .cn-chip.is-active { color: #fff; border-color: rgba(124,77,255,.7); background: rgba(124,77,255,.18); }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .cn-pagehead { padding-top: 7.5rem; }
  .cn-legal { grid-template-columns: 1fr; gap: 1.5rem; }
  .cn-legal__toc { display: none; }
}
@media (max-width: 575.98px) {
  .cn-pagehead { padding: 6.5rem 0 2.5rem; }
  .cn-narrow { width: calc(100% - 2rem); }
  .cn-panel { border-radius: 18px; }
}
