/* Custom Styled CSS for Cookie Policy Page in Uptrail Theme (Synchronized Fonts) */
.cookie-policy-page {
	font-family: var(--font-primary, 'Be Vietnam Pro', -apple-system, sans-serif);
	color: var(--uptrail-dark, #0f172a);
	background-color: var(--uptrail-light, #f8fafc);
	line-height: 1.6;
	padding-bottom: 5rem;
}

.cookie-policy-hero {
	position: relative;
	background: linear-gradient(135deg, var(--uptrail-dark, #0f172a) 0%, var(--uptrail-primary-900, #064e3b) 60%, var(--uptrail-dark, #0f172a) 100%);
	color: #ffffff;
	padding: 6rem 1.5rem 4.5rem;
	overflow: hidden;
	text-align: center;
}

.cookie-policy-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(#10b981 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.12;
	pointer-events: none;
}

.cookie-hero-glow {
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(16, 185, 129, 0.25);
	filter: blur(80px);
	top: -50px;
	right: -50px;
	pointer-events: none;
}

.cookie-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1.2rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--uptrail-gold-400, #f59e0b);
	font-family: var(--font-primary, 'Be Vietnam Pro', sans-serif);
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.cookie-hero-title {
	font-family: var(--font-editorial, 'Be Vietnam Pro', sans-serif);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 1.25rem;
	letter-spacing: -0.02em;
}

.cookie-hero-gradient-text {
	background: linear-gradient(90deg, #f59e0b, #6ee7b7, #a7f3d0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.cookie-hero-subtitle {
	max-width: 680px;
	margin: 0 auto 2rem;
	color: #cbd5e1;
	font-size: 1.05rem;
	font-weight: 300;
}

.cookie-hero-meta {
	display: flex;
	justify-content: center;
	gap: 2rem;
	font-size: 0.85rem;
	color: #94a3b8;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	max-width: 600px;
	margin: 0 auto;
}

.cookie-container {
	max-width: 1140px;
	margin: -2rem auto 0;
	padding: 0 1.25rem;
	position: relative;
	z-index: 10;
}

.cookie-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

@media (min-width: 1024px) {
	.cookie-grid {
		grid-template-columns: 280px minmax(0, 1fr);
	}
}

.cookie-sidebar {
	position: sticky;
	top: 6rem;
	background: #ffffff;
	border-radius: 1.5rem;
	padding: 1.5rem;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(0,0,0,0.03);
	height: fit-content;
}

@media (max-width: 1023px) {
	.cookie-sidebar { position: static; }
}

.cookie-nav-title {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
	margin-bottom: 1rem;
}

.cookie-nav-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.7rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #475569;
	transition: all 0.2s ease;
	border: none;
	background: transparent;
	cursor: pointer;
	text-decoration: none !important;
}

.cookie-nav-item:hover,
.cookie-nav-item.active {
	background-color: rgba(16, 185, 129, 0.1);
	color: #059669;
}

.cookie-card {
	background: #ffffff;
	border-radius: 1.5rem;
	padding: 2rem;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	margin-bottom: 2rem;
}

.cookie-grid > main,
.cookie-grid > aside,
.cookie-toggle-box > div {
	min-width: 0;
}

.cookie-card { overflow-wrap: anywhere; }
.cookie-card-badge, .cookie-switch { flex-shrink: 0; }

@media (max-width: 767px) {
	.cookie-card-title { align-items: flex-start; }
	.cookie-toggle-box > div > div { flex-wrap: wrap; }
}

.cookie-card-highlight {
	border: 2px solid rgba(16, 185, 129, 0.3);
	background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.cookie-card-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.cookie-card-badge {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.75rem;
	background: #d1fae5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.95rem;
}

.cookie-toggle-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (min-width: 768px) {
	.cookie-toggle-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.cookie-toggle-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.cookie-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	flex-shrink: 0;
}

.cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #cbd5e1;
	transition: .3s;
	border-radius: 34px;
}

.cookie-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

input:checked + .cookie-slider {
	background-color: #10b981;
}

input:checked + .cookie-slider:before {
	transform: translateX(22px);
}

.cookie-switch input:focus-visible + .cookie-slider {
	outline: 2px solid #16634b;
	outline-offset: 3px;
}

input:disabled + .cookie-slider {
	opacity: 0.6;
	cursor: not-allowed;
}

.cookie-btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
	justify-content: flex-end;
}

.cookie-btn {
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	font-weight: 700;
	font-size: 0.875rem;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.cookie-btn-primary {
	background: #0f172a;
	color: #ffffff;
}

.cookie-btn-primary:hover {
	background: #1e293b;
	transform: translateY(-1px);
}

.cookie-btn-success {
	background: #10b981;
	color: #ffffff;
}

.cookie-btn-success:hover {
	background: #059669;
	transform: translateY(-1px);
}

.cookie-btn-light {
	background: #f1f5f9;
	color: #334155;
}

.cookie-btn-light:hover {
	background: #e2e8f0;
}

.cookie-table-wrapper {
	overflow-x: auto;
	border-radius: 1rem;
	border: 1px solid #e2e8f0;
	margin-top: 1rem;
}

.cookie-table {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.875rem;
}

.cookie-table th {
	background: #0f172a;
	color: #f8fafc;
	padding: 1rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cookie-table td {
	padding: 1rem;
	border-bottom: 1px solid #f1f5f9;
}

.cookie-table tr:hover td {
	background-color: #f8fafc;
}

.cookie-tag {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	border-radius: 9999px;
	font-size: 0.7rem;
	font-weight: 700;
}

.cookie-tag-essential { background: #dbeafe; color: #1e40af; }
.cookie-tag-functional { background: #fef3c7; color: #92400e; }
.cookie-tag-analytics { background: #d1fae5; color: #065f46; }
.cookie-tag-marketing { background: #f3e8ff; color: #6b21a8; }

.cookie-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.cookie-faq-question {
	width: 100%;
	padding: 1.25rem;
	background: #f8fafc;
	text-align: left;
	font-weight: 700;
	color: #0f172a;
	border: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cookie-faq-answer {
	padding: 1.25rem;
	background: #ffffff;
	color: #475569;
	font-size: 0.9rem;
	border-top: 1px solid #f1f5f9;
	display: none;
}

.cookie-faq-item.open .cookie-faq-answer {
	display: block;
}

.cookie-faq-item.open .cookie-faq-arrow {
	transform: rotate(180deg);
}

.cookie-toast {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 9999;
	background: #0f172a;
	color: #ffffff;
	padding: 1rem 1.5rem;
	border-radius: 1rem;
	box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border: 1px solid rgba(16, 185, 129, 0.4);
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	pointer-events: none;
}

.cookie-toast.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
