/* ============================================================================
   Privacy Notice Generator page — ported 1:1 from captain_privacyhosted.html.
   Scoped under .cc-pn. Shared "subpage" primitives + the live generator widget.
   FAQ fills container width. Loaded only on /solutions/privacy-notice-generator/
   (see inc/privacy-notices.php).
   ============================================================================ */

.cc-pn { color: var(--fg); font-size: 16px; }
.cc-pn .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.cc-pn .mono { font-family: var(--mono); }

/* Primitives */
.cc-pn .btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 120ms ease, border-color 120ms ease, transform 120ms ease; }
.cc-pn .btn-secondary { color: var(--fg); background: var(--bg-1); border-color: color-mix(in oklab, var(--fg-3) 42%, var(--line)); }
.cc-pn .btn-secondary:hover { background: var(--bg-2); border-color: var(--line-2); }
.cc-pn .btn-primary { background: var(--accent); color: var(--accent-fg); border-color: color-mix(in oklab, var(--accent) 60%, black); }
.cc-pn .btn-primary:hover { transform: translateY(-1px); }
.cc-pn .btn-lg { padding: 12px 18px; font-size: 14px; }
.cc-pn .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); }
.cc-pn .eyebrow .pip { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent); }
.cc-pn .section-tag { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cc-pn .section-tag::before { content: ""; width: 16px; height: 1px; background: var(--accent); }
.cc-pn h1.head { font-size: clamp(40px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; margin: 18px 0 16px; text-wrap: balance; }
.cc-pn h1.head em { color: var(--accent); font-style: normal; }
.cc-pn h2.head { margin: 16px 0 12px; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; text-wrap: balance; }
.cc-pn h2.head em { color: var(--accent); font-style: normal; }
.cc-pn .sub { font-size: 17px; line-height: 1.55; color: var(--fg-1); max-width: 60ch; text-wrap: pretty; }
.cc-pn .section-sub { color: var(--fg-1); font-size: 17px; max-width: 64ch; line-height: 1.55; text-wrap: pretty; }
.cc-pn section.block { padding: 88px 0; border-bottom: 1px solid var(--line); }
.cc-pn .subhero { padding: 60px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.cc-pn .subhero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 60% 50% at 18% 35%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 50% at 18% 35%, #000 10%, transparent 70%); opacity: .3; pointer-events: none; }
.cc-pn .subhero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 52px; align-items: center; position: relative; }
.cc-pn .subhero-crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.cc-pn .subhero-crumb a { color: var(--fg-2); text-decoration: none; }
.cc-pn .subhero-crumb i { display: inline-block; margin: 0 8px; color: var(--fg-3); font-style: normal; }
.cc-pn .subhero-meta { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.cc-pn .subhero-meta span::before { content: "//"; margin-right: 8px; color: var(--accent); opacity: .8; }
.cc-pn .subhero-ctas { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.cc-pn .shield-ribbon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 14%, var(--bg-1)), var(--bg-1)); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); border-radius: 999px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-1); letter-spacing: .04em; }
.cc-pn .shield-ribbon .seal { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--accent); display: grid; place-items: center; color: var(--accent); font-size: 9px; font-weight: 700; font-family: var(--mono); }
.cc-pn .shield-ribbon b { color: var(--fg); font-weight: 600; }

/* Generator widget */
.cc-pn .gen { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 64px -28px rgba(0,0,0,.55); display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 560px; }
.cc-pn .gen-controls { background: var(--bg-1); border-right: 1px solid var(--line); padding: 18px; overflow-y: auto; }
.cc-pn .gen-controls .field { margin-bottom: 18px; }
.cc-pn .gen-controls h6 { margin: 0 0 9px; font-size: 10px; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.cc-pn .gen-controls h6 .n { width: 16px; height: 16px; border-radius: 4px; flex: none; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); font-size: 9px; font-weight: 700; }
.cc-pn .gen-input { width: 100%; padding: 9px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font-size: 13.5px; font-family: var(--sans); }
.cc-pn .gen-input:focus { outline: none; border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.cc-pn .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-pn .chip { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: border-color 120ms ease, color 120ms ease, background 120ms ease; }
.cc-pn .chip::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--line-2); transition: background 120ms ease, box-shadow 120ms ease; }
.cc-pn .chip:hover { color: var(--fg-1); border-color: var(--line-2); }
.cc-pn .chip.on { color: var(--fg); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); background: color-mix(in oklab, var(--accent) 10%, var(--bg)); }
.cc-pn .chip.on::before { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.cc-pn .gen-preview { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.cc-pn .gen-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.cc-pn .gen-bar .meta { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cc-pn .gen-bar .meta b { color: var(--fg); font-weight: 600; }
.cc-pn .gen-bar .meta .reg { color: var(--accent); }
.cc-pn .gen-meter { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--fg-2); flex: none; }
.cc-pn .gen-meter .track { width: 90px; height: 5px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.cc-pn .gen-meter .track i { display: block; height: 100%; background: var(--ok); width: 30%; transition: width 260ms cubic-bezier(.2,.7,.2,1); }
.cc-pn .gen-doc { overflow-y: auto; padding: 26px 32px; background: var(--bg); font-family: Georgia, "Times New Roman", serif; color: var(--fg); }
.cc-pn .gen-doc .title { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.cc-pn .gen-doc .stamp { font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); letter-spacing: .06em; margin-bottom: 22px; }
.cc-pn .clause { margin: 0 0 16px; max-width: 62ch; }
.cc-pn .clause h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 0 0 5px; color: var(--fg); }
.cc-pn .clause p { font-size: 13.5px; line-height: 1.62; color: var(--fg-1); margin: 0; }
.cc-pn .clause p b { color: var(--fg); font-weight: 600; font-family: var(--sans); }
.cc-pn .clause[hidden] { display: none; }
.cc-pn .clause.flash { animation: ccPnClauseIn 460ms cubic-bezier(.2,.7,.2,1); }
@keyframes ccPnClauseIn { from { transform: translateY(6px); background: color-mix(in oklab, var(--ok) 14%, transparent); } to { transform: none; background: transparent; } }
.cc-pn .gen-empty { color: var(--fg-3); font-family: var(--mono); font-size: 12px; padding: 30px 0; line-height: 1.7; }

/* Section blocks */
.cc-pn .steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cc-pn .steps4 .st { padding: 26px 24px; border-right: 1px solid var(--line); }
.cc-pn .steps4 .st:last-child { border-right: 0; }
.cc-pn .steps4 .st .n { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: .14em; }
.cc-pn .steps4 .st h4 { margin: 12px 0 8px; font-size: 16px; font-weight: 600; }
.cc-pn .steps4 .st p { margin: 0; font-size: 13px; color: var(--fg-1); line-height: 1.5; }
.cc-pn .modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.cc-pn .module { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.cc-pn .module .gl { width: 28px; height: 28px; border: 1.5px solid var(--accent); border-radius: 7px; display: grid; place-items: center; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.cc-pn .module h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.cc-pn .module p { margin: 0; color: var(--fg-1); font-size: 13.5px; line-height: 1.55; }
.cc-pn .cmp { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.cc-pn .cmp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.cc-pn .cmp-row > * { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-1); }
.cc-pn .cmp-row:first-child > * { border-top: 0; }
.cc-pn .cmp-row > *:not(:first-child) { border-left: 1px solid var(--line); }
.cc-pn .cmp-head > * { background: var(--bg-1); padding: 20px 22px; font-weight: 600; color: var(--fg); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.cc-pn .cmp-head > *:first-child { color: var(--fg-3); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.cc-pn .cmp-head .us { color: var(--accent); }
.cc-pn .cmp-lbl { font-weight: 600; color: var(--fg); }
.cc-pn .cmp-cell.muted { color: var(--fg-2); }
.cc-pn .cmp-cell.us::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); margin-right: 8px; transform: translateY(-2px); }
.cc-pn .embed { margin-top: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; font-family: var(--mono); font-size: 13px; color: var(--fg-1); line-height: 1.7; overflow-x: auto; }
.cc-pn .embed .cm { color: var(--fg-3); }
.cc-pn .embed .tg { color: var(--info); }
.cc-pn .embed .at { color: var(--accent); }
.cc-pn .embed .vl { color: var(--ok); }

/* FAQ — fills container width */
.cc-pn .faq { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); max-width: none; }
.cc-pn .faq details { border-bottom: 1px solid var(--line); }
.cc-pn .faq details:last-child { border-bottom: 0; }
.cc-pn .faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 16px; font-weight: 600; color: var(--fg); }
.cc-pn .faq summary::-webkit-details-marker { display: none; }
.cc-pn .faq summary .ic { flex: none; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; color: var(--fg-2); font-family: var(--mono); transition: transform 160ms ease, color 160ms ease, border-color 160ms ease; }
.cc-pn .faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.cc-pn .faq .a { padding: 0 24px 22px; color: var(--fg-1); font-size: 14.5px; line-height: 1.62; max-width: none; }
.cc-pn .faq .a a { color: var(--accent); }

@media (max-width: 1100px) {
  .cc-pn .subhero-inner { grid-template-columns: 1fr; gap: 32px; }
  .cc-pn .gen { grid-template-columns: 1fr; height: auto; }
  .cc-pn .gen-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .cc-pn .gen-doc { max-height: 420px; }
  .cc-pn .steps4, .cc-pn .modules, .cc-pn .cmp-row { grid-template-columns: 1fr; }
  .cc-pn section.block { padding: 60px 0; }
  .cc-pn .block .wrap[style] { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 560px) {
  .cc-pn h1.head { font-size: 32px; }
  .cc-pn .subhero-ctas .btn { flex: 1; justify-content: center; }
}
