@media screen {
	:root {
		--steel: #2F6F9F;
		--navy: #0F2538;
		--navy-2: #071827;
		--brass: #E0A100;
		--paper: #F4F7FA;
		--paper-2: #EAF0F6;
		--text: #0B1B28;
		--muted: #526273;
		--line: rgba(15, 37, 56, .15);
		--ok: #2F7D52;
		--warn: #A86600;
		--danger: #9D3C3C;
	}

	* {
		box-sizing: border-box;
	}

	body {
		background: var(--paper);
		color: var(--text);
		font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
		font-size: 17px;
		line-height: 1.65;
		padding-top: 0 !important;
	}

	a {
		color: var(--steel);
	}

	.privacy-tool-shell {
		min-height: 100vh;
		background:
			linear-gradient(180deg, rgba(7, 24, 39, .98) 0, rgba(15, 37, 56, .96) 31rem, #F4F7FA 31.1rem),
			linear-gradient(135deg, rgba(224, 161, 0, .16), rgba(47, 111, 159, .12));
	}

	.tool-nav {
		position: sticky;
		top: 0;
		z-index: 30;
		background: rgba(7, 24, 39, .96);
		backdrop-filter: blur(12px);
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}

	.tool-nav .inner {
		max-width: 1180px;
		margin: 0 auto;
		padding: .75rem 1.25rem;
		display: grid;
		grid-template-columns: minmax(220px, max-content) minmax(0, 1fr);
		align-items: center;
		gap: .65rem 1rem;
	}

	.brand-lockup {
		display: flex;
		align-items: center;
		gap: .8rem;
		color: #fff !important;
		text-decoration: none;
		border: 0;
		min-width: 0;
	}

	.brand-mark {
		width: 42px;
		height: 42px;
		border-radius: 50%;
		background: #fff;
		object-fit: cover;
	}

	.brand-text strong,
	.brand-text span {
		display: block;
		line-height: 1.18;
	}

	.brand-text strong {
		color: #fff;
		font-weight: 800;
	}

	.brand-text span {
		color: rgba(255, 255, 255, .72);
		font-size: .78rem;
		letter-spacing: .12em;
		text-transform: uppercase;
	}

	.nav-actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: .35rem .25rem;
	}

	.nav-actions a {
		padding: .65rem .78rem;
		border-radius: 8px;
		border: 0;
		box-shadow: none;
		color: #fff !important;
		font-size: .9rem;
		font-weight: 800;
		line-height: 1;
		text-decoration: none;
	}

	.nav-actions a:hover,
	.nav-actions a:focus {
		background: rgba(255, 255, 255, .10);
		color: var(--brass) !important;
	}

	.privacy-hero,
	.privacy-main {
		max-width: 1180px;
		margin: 0 auto;
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.privacy-hero {
		padding-top: 3rem;
		padding-bottom: 2rem;
		color: #fff;
	}

	.privacy-eyebrow {
		display: inline-flex;
		align-items: center;
		gap: .5rem;
		margin: 0 0 .85rem;
		color: var(--brass);
		font-size: .82rem;
		font-weight: 900;
		letter-spacing: .1em;
		text-transform: uppercase;
	}

	.privacy-hero h1 {
		max-width: 920px;
		margin: 0;
		color: #fff;
		font-size: clamp(2.15rem, 5vw, 4.35rem);
		line-height: 1;
		letter-spacing: 0;
	}

	.privacy-hero p {
		max-width: 840px;
		margin: 1rem 0 0;
		color: rgba(255, 255, 255, .84);
	}

	.trust-strip {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: .75rem;
		margin-top: 1.25rem;
	}

	.trust-item {
		min-height: 5.4rem;
		padding: .85rem;
		border: 1px solid rgba(255, 255, 255, .16);
		border-radius: 8px;
		background: rgba(255, 255, 255, .08);
	}

	.trust-item strong,
	.trust-item span {
		display: block;
	}

	.trust-item strong {
		color: #fff;
		line-height: 1.2;
	}

	.trust-item span {
		color: rgba(255, 255, 255, .72);
		font-size: .9rem;
		line-height: 1.4;
	}

	.privacy-main {
		padding-top: 1.25rem;
		padding-bottom: 3.5rem;
	}

	.privacy-layout {
		display: grid;
		grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .82fr);
		gap: 1.25rem;
		align-items: start;
	}

	.privacy-panel {
		border: 1px solid var(--line);
		border-radius: 8px;
		background: rgba(255, 255, 255, .94);
		box-shadow: 0 18px 42px rgba(15, 37, 56, .08);
		overflow: hidden;
	}

	.panel-head {
		padding: 1rem 1rem .85rem;
		border-bottom: 1px solid var(--line);
		background: linear-gradient(90deg, rgba(234, 240, 246, .9), rgba(255, 255, 255, .95));
	}

	.panel-head h2 {
		margin: 0;
		color: var(--navy);
		font-size: 1.18rem;
		line-height: 1.2;
	}

	.panel-head p {
		margin: .28rem 0 0;
		color: var(--muted);
		font-size: .92rem;
		line-height: 1.4;
	}

	.panel-body {
		padding: 1rem;
	}

	.practice-context-note {
		margin: 0 0 .9rem;
		padding-left: .8rem;
		border-left: 2px solid rgba(224, 161, 0, .45);
		color: var(--muted);
		font-size: .9rem;
		line-height: 1.55;
	}

	.drop-zone {
		display: grid;
		gap: .5rem;
		min-height: 9rem;
		padding: 1.1rem;
		border: 2px dashed rgba(47, 111, 159, .36);
		border-radius: 8px;
		background: linear-gradient(180deg, rgba(47, 111, 159, .07), rgba(224, 161, 0, .06));
		text-align: center;
		place-items: center;
	}

	.drop-zone.dragging {
		border-color: var(--brass);
		background: rgba(224, 161, 0, .12);
	}

	.drop-zone .icon {
		width: 3rem;
		height: 3rem;
		display: inline-grid;
		place-items: center;
		border-radius: 50%;
		background: var(--navy);
		color: var(--brass);
	}

	.drop-zone strong {
		color: var(--navy);
	}

	.drop-zone small {
		display: block;
		color: var(--muted);
	}

	.file-row,
	.action-row,
	.stat-grid,
	.meta-row {
		display: flex;
		flex-wrap: wrap;
		gap: .65rem;
		align-items: center;
	}

	.file-row {
		margin-top: .85rem;
		justify-content: space-between;
	}

	.file-name {
		color: var(--muted);
		font-size: .9rem;
	}

	label {
		display: block;
		color: var(--navy);
		font-size: .9rem;
		font-weight: 900;
		margin: 0 0 .35rem;
	}

	textarea,
	select {
		width: 100%;
		border: 1px solid rgba(15, 37, 56, .2);
		border-radius: 8px;
		background: #fff;
		color: var(--text);
		font: inherit;
	}

	textarea {
		min-height: 16rem;
		padding: .85rem;
		font-family: Consolas, Monaco, monospace;
		font-size: .86rem;
		line-height: 1.45;
		resize: vertical;
	}

	select {
		padding: .65rem .7rem;
	}

	textarea:focus,
	select:focus {
		outline: none;
		border-color: var(--steel);
		box-shadow: 0 0 0 3px rgba(47, 111, 159, .14);
	}

	.option-stack {
		display: grid;
		gap: .95rem;
	}

	.option-group {
		padding: .85rem;
		border: 1px solid rgba(15, 37, 56, .11);
		border-radius: 8px;
		background: #fff;
	}

	.option-group h3 {
		margin: 0 0 .45rem;
		color: var(--navy);
		font-size: 1rem;
		line-height: 1.25;
	}

	.check-line {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: .55rem;
		align-items: start;
		margin: .55rem 0 0;
		color: var(--text);
		font-size: .92rem;
	}

	.check-line input {
		width: 18px;
		height: 18px;
		margin-top: .18rem;
		accent-color: var(--steel);
	}

	.info-tip {
		position: relative;
		width: 1.65rem;
		height: 1.65rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		border: 1px solid rgba(15, 37, 56, .16);
		background: var(--paper-2);
		color: var(--steel);
		cursor: help;
	}

	.info-tip::after {
		content: attr(data-tip);
		position: absolute;
		right: 0;
		top: calc(100% + .45rem);
		z-index: 8;
		width: min(18rem, 72vw);
		padding: .7rem .8rem;
		border-radius: 8px;
		background: var(--navy);
		color: #fff;
		font-size: .8rem;
		font-weight: 500;
		line-height: 1.35;
		box-shadow: 0 14px 30px rgba(15, 37, 56, .28);
		opacity: 0;
		transform: translateY(-.2rem);
		pointer-events: none;
		transition: opacity .16s ease, transform .16s ease;
	}

	.info-tip:hover::after,
	.info-tip:focus::after {
		opacity: 1;
		transform: translateY(0);
	}

	.tool-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: .45rem;
		min-height: 2.7rem;
		padding: .72rem .9rem;
		border: 0;
		border-radius: 8px;
		background: var(--steel);
		box-shadow: 0 10px 20px rgba(47, 111, 159, .22);
		color: #fff !important;
		font-weight: 900;
		line-height: 1.1;
		text-decoration: none;
		cursor: pointer;
	}

	.tool-button.secondary {
		background: #fff;
		box-shadow: inset 0 0 0 1px var(--line);
		color: var(--navy) !important;
	}

	.tool-button.warn {
		background: var(--warn);
	}

	.tool-button:disabled {
		opacity: .46;
		cursor: not-allowed;
	}

	.action-row {
		margin-top: 1rem;
	}

	.notice {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: .75rem;
		padding: .9rem;
		border: 1px solid rgba(47, 111, 159, .22);
		border-radius: 8px;
		background: rgba(47, 111, 159, .08);
		color: #263d52;
	}

	.notice .icon {
		color: var(--steel);
		margin-top: .15rem;
	}

	.notice.warn {
		border-color: rgba(168, 102, 0, .26);
		background: rgba(224, 161, 0, .12);
	}

	.notice.danger {
		border-color: rgba(157, 60, 60, .28);
		background: rgba(157, 60, 60, .08);
	}

	.stat-grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin: .9rem 0;
	}

	.stat {
		padding: .75rem;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: #fff;
	}

	.stat strong,
	.stat span {
		display: block;
	}

	.stat strong {
		color: var(--navy);
		font-size: 1.35rem;
		line-height: 1.1;
	}

	.stat span {
		color: var(--muted);
		font-size: .82rem;
		line-height: 1.3;
	}

	.result-preview {
		min-height: 22rem;
		white-space: pre;
		overflow: auto;
	}

	.change-list {
		max-height: 18rem;
		overflow: auto;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: #fff;
	}

	.change-list table {
		width: 100%;
		border-collapse: collapse;
		margin: 0;
		font-size: .86rem;
	}

	.change-list th,
	.change-list td {
		padding: .55rem .6rem;
		border-bottom: 1px solid rgba(15, 37, 56, .10);
		text-align: left;
	}

	.change-list th {
		position: sticky;
		top: 0;
		background: var(--paper-2);
		color: var(--navy);
		z-index: 1;
	}

	.source-card {
		margin-top: 1.25rem;
	}

	.source-card ul {
		margin: .75rem 0 0;
		color: var(--muted);
	}

	.sidebar {
		position: sticky;
		top: 5.2rem;
	}

	html[data-itss-theme] .privacy-tool-shell {
		background:
			linear-gradient(180deg, rgba(7, 24, 39, .98) 0, rgba(15, 37, 56, .96) 31rem, var(--itss-theme-bg) 31.1rem),
			linear-gradient(135deg, rgba(224, 161, 0, .16), rgba(47, 111, 159, .12)) !important;
	}

	html[data-itss-theme] .privacy-panel,
	html[data-itss-theme] .option-group,
	html[data-itss-theme] .stat,
	html[data-itss-theme] textarea,
	html[data-itss-theme] select,
	html[data-itss-theme] .change-list {
		background: var(--itss-theme-bg-card) !important;
		border-color: var(--itss-theme-line) !important;
		color: var(--itss-theme-text) !important;
	}

	html[data-itss-theme] .panel-head {
		background: rgba(255, 255, 255, .04) !important;
		border-color: var(--itss-theme-line) !important;
	}

	html[data-itss-theme] .panel-head h2,
	html[data-itss-theme] .option-group h3,
	html[data-itss-theme] label,
	html[data-itss-theme] .stat strong,
	html[data-itss-theme] .drop-zone strong {
		color: var(--itss-theme-text) !important;
	}

	html[data-itss-theme] .panel-head p,
	html[data-itss-theme] .practice-context-note,
	html[data-itss-theme] .file-name,
	html[data-itss-theme] .stat span,
	html[data-itss-theme] .drop-zone small,
	html[data-itss-theme] .source-card li {
		color: var(--itss-theme-muted) !important;
	}

	html[data-itss-theme] .notice {
		color: var(--itss-theme-text) !important;
	}

	@media (max-width: 1040px) {
		.privacy-layout,
		.tool-nav .inner {
			grid-template-columns: 1fr;
		}

		.nav-actions {
			justify-content: flex-start;
		}

		.sidebar {
			position: static;
		}

		.trust-strip,
		.stat-grid {
			grid-template-columns: 1fr;
		}
	}

	@media (max-width: 640px) {
		body {
			font-size: 16px;
		}

		.privacy-hero {
			padding-top: 2.2rem;
		}

		.file-row {
			display: grid;
		}

		.tool-button {
			width: 100%;
		}

		.info-tip::after {
			position: fixed;
			left: 1rem;
			right: 1rem;
			top: auto;
			bottom: 1rem;
			width: auto;
		}
	}
}
