/* Phase 10 privacy layer: isolated from the approved marketing layouts. */
.fg-consent-banner, .fg-consent-dialog, .fg-legal { --fg-color-surface: var(--fg-color-surface-elevated); --fg-color-brand: var(--fg-brand-primary); }
.fg-consent-banner[hidden], [data-fg-consent-open][hidden] { display: none; }
.has-open-menu .fg-consent-banner { visibility: hidden; }
.fg-consent-banner {
	position: fixed; z-index: 90; inset: auto 1.25rem 1.25rem; margin-inline: auto;
	max-width: 76rem; display: flex; align-items: center; gap: 2rem; padding: 1.5rem 1.75rem;
	background: var(--fg-color-surface); color: var(--fg-color-text); border: 1px solid var(--fg-color-border-strong);
	border-top: 2px solid var(--fg-color-brand); font-size: 1rem; line-height: 1.5;
}
.fg-consent-banner__copy { flex: 1; min-width: 0; }
.fg-consent-banner h2, .fg-consent-dialog h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .6rem; }
.fg-consent-banner p, .fg-consent-dialog p { color: var(--fg-color-text-muted); margin: 0; }
.fg-consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; flex-shrink: 0; }
.fg-consent-choice, .fg-consent-close, .fg-consent-text, .fg-footer-settings {
	font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; border-radius: 2px;
}
.fg-consent-choice { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1rem; border: 1px solid var(--fg-color-border-strong); font-weight: 600; line-height: 1.35; text-align: center; }
.fg-consent-choice:hover { background: var(--fg-color-brand); border-color: var(--fg-color-brand); color: #fff; }
.fg-consent-text { grid-column: 1 / -1; justify-self: end; min-height: 36px; padding: .1rem 0; text-decoration: underline; text-underline-offset: .25em; }
.fg-consent-text span { margin-left: .5rem; }
.fg-consent-close { min-height: 44px; padding: .5rem; white-space: nowrap; }
.fg-consent-close:hover, .fg-consent-text:hover, .fg-footer-settings:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.fg-consent-choice:focus-visible, .fg-consent-close:focus-visible, .fg-consent-text:focus-visible, .fg-footer-settings:focus-visible, .fg-consent-dialog input:focus-visible { outline: 2px solid #b4adff; outline-offset: 4px; }
.fg-consent-dialog { width: min(38rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); margin: auto; padding: 2rem; background: var(--fg-color-surface); color: var(--fg-color-text); border: 1px solid var(--fg-color-border-strong); border-top: 2px solid var(--fg-color-brand); border-radius: 2px; overflow-y: auto; font-size: 1rem; line-height: 1.55; }
.fg-consent-dialog::backdrop { background: rgb(0 0 0 / .7); }
.fg-consent-dialog__heading, .fg-consent-category__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fg-consent-dialog__heading { align-items: baseline; margin-bottom: .8rem; }
.fg-consent-category { border-top: 1px solid var(--fg-color-border); margin-top: 1.5rem; padding-top: 1.25rem; }
.fg-consent-category__heading { font-weight: 600; margin-bottom: .6rem; }
.fg-consent-category h3 { font-size: 1.05rem; margin: 0; }
.fg-consent-locked { font-size: .875rem; color: var(--fg-color-text-muted); font-weight: 400; }
.fg-consent-category label { min-height: 44px; cursor: pointer; }
.fg-consent-category input { flex-shrink: 0; width: 24px; height: 24px; accent-color: var(--fg-color-brand); cursor: pointer; }
.fg-consent-dialog .fg-consent-unavailable { margin-top: 1rem; font-size: .875rem; }
.fg-consent-banner .fg-consent-error, .fg-consent-dialog .fg-consent-error { grid-column: 1 / -1; margin-top: 1rem; max-width: 28rem; color: var(--fg-color-text); }
.fg-consent-dialog__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.fg-consent-dialog__actions a { text-underline-offset: .25em; }
.fg-footer-settings { padding: .5rem 0; min-height: 44px; font-size: var(--fg-font-size-sm); color: var(--fg-color-text-muted); }
.fg-legal { padding-block: clamp(3rem, 7vw, 6rem); max-width: 56rem; }
.fg-legal h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.04em; }
.fg-legal__intro { color: var(--fg-color-text-muted); font-size: 1.1rem; margin-block: 1.5rem 3rem; }
.fg-legal section { border-top: 1px solid var(--fg-color-border); padding-block: 1.5rem; }
.fg-legal h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.fg-legal section p { white-space: normal; overflow-wrap: anywhere; color: var(--fg-color-text-muted); line-height: 1.75; }
.fg-legal__draft { border-left: 2px solid var(--fg-color-brand); padding: .8rem 1rem; margin-bottom: 2rem; color: var(--fg-color-text); }
@media (max-width: 63.99rem) {
	.fg-consent-banner { gap: 1rem; padding: 1.25rem; }
	.fg-consent-banner__actions { max-width: 19rem; }
}
@media (max-width: 47.99rem) {
	.fg-consent-banner { inset: auto .75rem .75rem; display: block; padding: 1rem; max-height: calc(100svh - 6rem); overflow-y: auto; }
	.fg-consent-banner__actions { max-width: none; margin-top: 1rem; }
	.fg-consent-text { min-height: 44px; }
	.fg-consent-dialog { padding: 1.25rem; }
	.fg-consent-dialog__heading { gap: .5rem; }
}
/* No privacy animation: reduced-motion and normal operation are equally immediate. */
