/* ===================================================
   Thailand Post — Privacy Notice Static Site
   Brand palette: red / blue / gray / orange
   =================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	/* ── Brand: red ── */
	--red: #e1261c; /* primary red */
	--red-dark: #ce131c; /* darker red */
	--red-light: #fff2f2; /* red-0   */

	/* ── Brand: orange (accent / "gold") ── */
	--gold: #f6821f; /* orange-400 */
	--gold-light: #fff3e8; /* orange-50  */

	/* ── Brand: gray ── */
	--text: #413a3a; /* gray-900 */
	--text-muted: #7e7878; /* gray-600 */
	--bg: #f8f8f8; /* gray-50  */
	--white: #ffffff; /* gray-0   */
	--border: #e4e4e4; /* gray-100 */

	/* ── Brand: red (footer) ── */
	--footer-bg: #7b0600; /* red-800 */

	--radius: 8px;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Sarabun', sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: var(--text);
	background-color: var(--bg);
}

/* ── Container ── */
.container {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
	background: var(--white);
	color: var(--text);
	padding: 56px 0 48px;
	text-align: center;
	border-bottom: 3px solid var(--red);
}

.hero-title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-bottom: 6px;
}

.hero-subtitle {
	font-size: clamp(1rem, 2.5vw, 1.3rem);
	font-weight: 400;
	opacity: 0.9;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
}

.hero-logo {
	height: 160px;
	width: auto;
	margin-bottom: 10px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.hero-company {
	font-size: 1rem;
	color: var(--text-muted);
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.main-content {
	padding-top: 40px;
	padding-bottom: 60px;
}

/* ── Intro Section ── */
.intro-section {
	background: var(--white);
	border-left: 4px solid var(--red);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 24px 28px;
	margin-bottom: 32px;
	box-shadow: var(--shadow);
}

.intro-section p {
	color: var(--text-muted);
	margin-bottom: 14px;
	text-align: justify;
}

.intro-section p:last-child {
	margin-bottom: 0;
}

/* ── Definition Section ── */
.definition-section {
	margin-bottom: 32px;
}

.definition-card {
	background: var(--gold-light);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	padding: 24px 28px;
	box-shadow: var(--shadow);
}

.definition-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 16px;
	border-bottom: 1px solid var(--gold);
	padding-bottom: 8px;
}

.definition-row {
	display: flex;
	gap: 16px;
	margin-bottom: 14px;
	align-items: flex-start;
}

.definition-row:last-child {
	margin-bottom: 0;
}

.term {
	font-weight: 600;
	color: var(--red-dark);
	white-space: nowrap;
	flex-shrink: 0;
	padding-top: 1px;
}

.term-def {
	color: var(--text);
	text-align: justify;
	line-height: 1.7;
}

/* ── Policy Sections ── */
.policy-section {
	background: var(--white);
	border-radius: var(--radius);
	padding: 28px 32px;
	margin-bottom: 28px;
	box-shadow: var(--shadow);
}

.section-heading {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--red);
	margin-bottom: 16px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.4;
}

.section-bullet {
	color: var(--gold);
	font-size: 0.8rem;
	flex-shrink: 0;
	margin-top: 4px;
}

.section-intro {
	color: var(--text-muted);
	margin-bottom: 20px;
	text-align: justify;
}

.sub-heading {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text);
	margin: 28px 0 14px;
	padding-left: 14px;
	border-left: 3px solid var(--gold);
}

/* ── Ordered List ── */
.policy-list {
	list-style: none;
	counter-reset: item;
	padding: 0;
}

.policy-list li {
	counter-increment: item;
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
	color: var(--text);
	align-items: flex-start;
	text-align: justify;
	line-height: 1.75;
}

.policy-list li:last-child {
	margin-bottom: 0;
}

.policy-list li::before {
	content: counter(item);
	background: var(--red);
	color: var(--white);
	font-weight: 600;
	font-size: 0.78rem;
	min-width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 3px;
}

/* Rights list accent */
.rights-list li::before {
	background: var(--red-dark);
}

/* ── Data Type Cards Grid ── */
.data-type-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin-top: 8px;
}

.data-type-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-top: 3px solid var(--red);
	border-radius: var(--radius);
	padding: 16px;
	text-align: center;
}

.data-type-icon {
	font-size: 1.8rem;
	margin-bottom: 8px;
}

.data-type-card h4 {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--red-dark);
	margin-bottom: 8px;
}

.data-type-card p {
	font-size: 0.825rem;
	color: var(--text-muted);
	line-height: 1.55;
}

/* ── Highlight Box ── */
.highlight-box {
	background: var(--red-light);
	border-left: 4px solid var(--red);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 20px 24px;
}

.highlight-box p {
	color: var(--text);
	text-align: justify;
	line-height: 1.8;
}

/* ══════════════════════════════════════
   CONTACT FOOTER
══════════════════════════════════════ */
.contact-footer {
	background: var(--footer-bg);
	color: var(--white);
	padding: 48px 0;
}

.contact-heading {
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 28px;
	color: var(--white);
	letter-spacing: 0.02em;
}

.contact-card {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius);
	padding: 28px 32px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	max-width: 600px;
	margin: 0 auto 24px;
}

.contact-icon {
	font-size: 2.5rem;
	flex-shrink: 0;
}

.contact-details {
	line-height: 1.8;
}

.contact-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 4px;
}

.contact-company {
	font-size: 0.925rem;
	font-weight: 500;
	margin-bottom: 6px;
}

.contact-address {
	font-size: 0.875rem;
	color: var(--white);
	margin-bottom: 8px;
}

.contact-email {
	font-size: 0.875rem;
}

.contact-email a {
	color: var(--white);
	text-decoration: underline;
}

.contact-email a:hover {
	text-decoration: underline;
}

.announce-date {
	text-align: center;
	font-size: 0.85rem;
	color: var(--white);
	margin-top: 8px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 640px) {
	.policy-section {
		padding: 20px 18px;
	}

	.intro-section {
		padding: 18px 18px;
	}

	.definition-card {
		padding: 18px 18px;
	}

	.definition-row {
		flex-direction: column;
		gap: 4px;
	}

	.data-type-grid {
		grid-template-columns: 1fr 1fr;
	}

	.contact-card {
		flex-direction: column;
		gap: 12px;
		padding: 20px;
	}

	.contact-icon {
		font-size: 2rem;
	}
}

@media (max-width: 400px) {
	.data-type-grid {
		grid-template-columns: 1fr;
	}
}
