@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap");

.zivvy-legal {
	--zivvy-primary: #4f46e5;
	--zivvy-accent: #7c3aed;
	--zivvy-text: #0f172a;
	--zivvy-muted: #64748b;
	--zivvy-border: #e2e8f0;
	--zivvy-surface: #ffffff;
	--zivvy-muted-bg: #f8fafc;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 4rem;
	font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
	color: var(--zivvy-text);
}

.zivvy-legal__hero {
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--zivvy-border);
	background:
		radial-gradient(600px 200px at 0% 0%, rgba(79, 70, 229, 0.12), transparent 60%),
		radial-gradient(500px 180px at 100% 0%, rgba(124, 58, 237, 0.1), transparent 55%);
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
}

.zivvy-legal__brand {
	font-family: Sora, sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.zivvy-legal__brand a {
	color: var(--zivvy-primary);
	text-decoration: none;
}

.zivvy-legal__brand span {
	color: var(--zivvy-muted);
	font-weight: 500;
}

.zivvy-legal__hero h1 {
	font-family: Sora, sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem;
}

.zivvy-legal__meta {
	color: var(--zivvy-muted);
	margin: 0;
	font-size: 0.95rem;
}

.zivvy-legal__body h2 {
	font-family: Sora, sans-serif;
	font-size: 1.2rem;
	margin: 2rem 0 0.75rem;
	letter-spacing: -0.02em;
}

.zivvy-legal__body p,
.zivvy-legal__body li {
	line-height: 1.65;
	color: #1e293b;
	font-size: 0.98rem;
}

.zivvy-legal__body ul {
	padding-left: 1.25rem;
}

.zivvy-legal__body a {
	color: var(--zivvy-primary);
}

.zivvy-legal__footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--zivvy-border);
	font-size: 0.875rem;
	color: var(--zivvy-muted);
}

.zivvy-legal__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-bottom: 0.75rem;
}

.zivvy-legal__nav a {
	color: var(--zivvy-primary);
	text-decoration: none;
	font-weight: 500;
}

/* Pricing */
.zivvy-pricing {
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 4rem;
	font-family: "IBM Plex Sans", sans-serif;
	color: #0f172a;
}

.zivvy-pricing__hero {
	text-align: center;
	margin-bottom: 2.5rem;
	padding: 2rem 1rem;
	border-radius: 20px;
	background:
		radial-gradient(700px 240px at 20% 0%, rgba(79, 70, 229, 0.18), transparent 55%),
		radial-gradient(600px 220px at 80% 10%, rgba(124, 58, 237, 0.16), transparent 50%),
		linear-gradient(180deg, #eef2ff 0%, #ffffff 70%);
}

.zivvy-pricing__hero h1 {
	font-family: Sora, sans-serif;
	font-size: clamp(2rem, 5vw, 2.75rem);
	letter-spacing: -0.03em;
	margin: 0.5rem 0;
}

.zivvy-pricing__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 900px) {
	.zivvy-pricing__grid {
		grid-template-columns: 1fr;
	}
}

.zivvy-price-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.zivvy-price-card.is-featured {
	border-color: #4f46e5;
	box-shadow: 0 14px 36px rgba(79, 70, 229, 0.16);
}

.zivvy-price-card h2 {
	font-family: Sora, sans-serif;
	margin: 0;
	font-size: 1.35rem;
}

.zivvy-price-card .price {
	font-size: 1.75rem;
	font-weight: 700;
	font-family: Sora, sans-serif;
	color: #4f46e5;
}

.zivvy-price-card ul {
	margin: 0;
	padding-left: 1.1rem;
	flex: 1;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.55;
}

.zivvy-price-card .cta {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0.7rem 1rem;
	border-radius: 10px;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.zivvy-price-card .cta.secondary {
	background: #fff;
	color: #4f46e5 !important;
	border: 1px solid #c7d2fe;
}

/* Cookie banner */
.zivvy-cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 9999;
	max-width: 520px;
	margin: 0 auto;
	background: #0f172a;
	color: #f8fafc;
	border-radius: 14px;
	padding: 1rem 1.1rem;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 0.9rem;
	display: none;
}

.zivvy-cookie-banner.is-visible {
	display: block;
}

.zivvy-cookie-banner a {
	color: #c7d2fe;
}

.zivvy-cookie-banner__actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	flex-wrap: wrap;
}

.zivvy-cookie-banner button {
	border: none;
	border-radius: 8px;
	padding: 0.45rem 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.zivvy-cookie-banner .accept {
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #fff;
}

.zivvy-cookie-banner .essential {
	background: transparent;
	color: #e2e8f0;
	border: 1px solid #475569;
}

/* Desk billing */
.zivvy-billing {
	padding: 0.5rem 0 2rem;
}

.zivvy-billing-summary {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.2fr;
	gap: 1.25rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
	.zivvy-billing-summary {
		grid-template-columns: 1fr;
	}
}

.zivvy-billing-tier,
.zivvy-billing-seats {
	font-family: Sora, sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #4f46e5;
}

.zivvy-billing-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: flex-start;
}

.zivvy-plan-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
	.zivvy-plan-grid {
		grid-template-columns: 1fr;
	}
}

.zivvy-plan-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 1.1rem;
}

.zivvy-plan-card.is-current {
	border-color: #4f46e5;
	box-shadow: 0 10px 28px rgba(79, 70, 229, 0.12);
}

.zivvy-plan-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.zivvy-plan-card h3 {
	font-family: Sora, sans-serif;
	margin: 0;
}

.zivvy-plan-price {
	font-weight: 700;
	color: #4f46e5;
	margin: 0.35rem 0;
}

.zivvy-plan-features {
	padding-left: 1.1rem;
	margin: 0 0 1rem;
	color: #475569;
	font-size: 0.9rem;
}

.zivvy-webhook-url {
	display: block;
	padding: 0.75rem;
	background: #f8fafc;
	border-radius: 8px;
	word-break: break-all;
	font-size: 0.8rem;
}

.zivvy-billing-alert {
	border-radius: 12px;
}

.zivvy-priority-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	margin-left: 0.5rem;
}
