@font-face {
font-family: 'Inter';
src: url('/assets/fonts/Inter-Latin.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}

:root {
--color-bg: #fdfdfb;
--color-text: #1a1a1a;
--color-text-muted: #666666;
--color-primary: #0C3B2E;
--color-accent: #1E7A55;
--color-secondary: #95CCB2;
--color-card: #f8f8f5;
--color-white: #ffffff;
--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--container-max-width: 1200px;
--border-radius: 24px;
--transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
scroll-behavior: smooth;
font-size: 16px;
}

body {
font-family: var(--font-primary);
background-color: var(--color-bg);
color: var(--color-text);
line-height: 1.6;
overflow-x: hidden;
}

a {
text-decoration: none;
color: inherit;
transition: color 0.3s ease;
}

ul {
list-style: none;
}

.container {
max-width: var(--container-max-width);
margin: 0 auto;
padding: 0 20px;
}

.reveal {
opacity: 0;
transform: translateY(28px);
transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
opacity: 1;
transform: none;
}

@media (prefers-reduced-motion: reduce) {
.reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Header ────────────────────────────────────────────────────── */

.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
padding: 20px 0;
background: rgba(253, 253, 251, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
padding: 12px 0;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-dark {
background: rgba(12, 59, 46, 0.95);
}

.header-dark.scrolled {
background: rgba(12, 59, 46, 1);
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.header-dark .nav-links a {
color: rgba(255,255,255,0.65);
}

.header-dark .nav-links a:hover,
.header-dark .nav-links a.active {
color: #fff;
}

.header-dark .hamburger span {
background: #fff;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: var(--container-max-width);
margin: 0 auto;
padding: 0 20px;
}

.nav-right {
display: flex;
align-items: center;
gap: 40px;
}

.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1rem;
font-weight: 700;
color: var(--color-primary);
}

.logo-text {
font-size: 1rem;
font-weight: 700;
letter-spacing: -0.01em;
}

.logo-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
object-fit: cover;
object-position: center 15%;
display: block;
}

.nav-links {
display: flex;
gap: 32px;
}

.nav-links a {
font-weight: 500;
color: var(--color-text-muted);
transition: color 0.3s ease;
font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
color: var(--color-primary);
}

/* ─── Hamburger ────────────────────────────────────────────────── */

.hamburger {
display: none;
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
background: none;
border: none;
cursor: pointer;
padding: 0;
}

.hamburger span {
display: block;
width: 100%;
height: 2px;
background: var(--color-primary);
border-radius: 2px;
transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Mobile Menu ──────────────────────────────────────────────── */

.mobile-menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--color-primary);
z-index: 999;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 32px;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
opacity: 1;
visibility: visible;
}

.mobile-menu ul {
text-align: center;
display: flex;
flex-direction: column;
gap: 24px;
}

.mobile-menu a {
font-size: 1.5rem;
font-weight: 600;
color: var(--color-white);
}

.mobile-menu a:hover {
color: var(--color-secondary);
}

.mobile-close {
position: absolute;
top: 24px;
right: 24px;
background: none;
border: none;
cursor: pointer;
color: var(--color-white);
padding: 8px;
}

/* ─── Custom Cursor ────────────────────────────────────────────── */

.cursor-dot {
position: fixed;
width: 12px;
height: 12px;
background: var(--color-accent);
border-radius: 50%;
pointer-events: none;
z-index: 9999;
opacity: 0;
transition: opacity 0.3s ease, width 0.2s ease, height 0.2s ease;
top: -6px;
left: -6px;
}

.cursor-dot.visible { opacity: 0.7; }
.cursor-dot.expanded { width: 20px; height: 20px; top: -10px; left: -10px; opacity: 0.4; }

@media (pointer: coarse) {
.cursor-dot { display: none; }
}

/* ─── Back to Top ──────────────────────────────────────────────── */

.floating-buttons {
position: fixed;
bottom: 32px;
right: 32px;
display: flex;
flex-direction: column;
gap: 12px;
z-index: 900;
opacity: 0;
visibility: hidden;
transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-buttons.visible {
opacity: 1;
visibility: visible;
}

.newsletter-fab,
.back-home,
.back-to-top {
width: 48px;
height: 48px;
background: var(--color-primary);
color: var(--color-white);
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
z-index: 100;
}

.newsletter-fab:hover,
.back-home:hover,
.back-to-top:hover {
transform: translateY(-3px);
background: var(--color-accent);
color: var(--color-white);
}

/* ─── Hero / Page Header ────────────────────────────────────────── */

.page-header {
padding: 60px 0 60px;
border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-header-inner {
display: flex;
align-items: flex-start;
gap: 40px;
width: fit-content;
margin: 0 auto;
}

.hero-avatar {
width: 96px;
height: 96px;
border-radius: 50%;
object-fit: cover;
object-position: center 15%;
flex-shrink: 0;
margin-top: 6px;
}

.hero-text {
display: flex;
flex-direction: column;
}

.page-kicker {
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-accent);
margin-bottom: 16px;
}

.page-title {
font-size: clamp(2.5rem, 6vw, 4rem);
font-weight: 800;
line-height: 1.05;
color: var(--color-primary);
margin-bottom: 20px;
}

.page-subtitle {
font-size: 1.1rem;
color: var(--color-text-muted);
max-width: 560px;
line-height: 1.7;
}

/* ─── Article Grid (index.php) ──────────────────────────────────── */

.articles-section {
padding: 60px 0 100px;
}

.articles-count {
font-size: 0.85rem;
color: var(--color-text-muted);
margin-bottom: 40px;
}

.articles-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}

.article-card {
background: var(--color-card);
border-radius: var(--border-radius);
padding: 32px;
display: flex;
flex-direction: column;
gap: 12px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
transform: translateY(-4px);
box-shadow: 0 16px 40px rgba(12, 59, 46, 0.08);
}

.article-card-meta {
display: flex;
align-items: center;
gap: 12px;
}

.source-badge {
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 3px 10px;
border-radius: 100px;
}

.source-badge.medium {
background: rgba(30, 122, 85, 0.1);
color: var(--color-accent);
}

.source-badge.published {
background: rgba(12, 59, 46, 0.08);
color: var(--color-primary);
}

.article-date {
font-size: 0.8rem;
color: var(--color-text-muted);
}

.article-card-title {
font-size: 1.15rem;
font-weight: 700;
color: var(--color-primary);
line-height: 1.3;
}

.article-card:hover .article-card-title {
color: var(--color-accent);
}

.article-card-excerpt {
font-size: 0.9rem;
color: var(--color-text-muted);
line-height: 1.6;
flex: 1;
}

.article-card-link {
font-size: 0.85rem;
font-weight: 600;
color: var(--color-accent);
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 8px;
}

.article-card-link::after {
content: '→';
transition: transform 0.2s ease;
}

.article-card:hover .article-card-link::after {
transform: translateX(4px);
}

/* ─── Pagination ────────────────────────────────────────────────── */

.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin-top: 64px;
flex-wrap: wrap;
}

.pagination a,
.pagination span {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 40px;
padding: 0 12px;
border-radius: 12px;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s ease;
}

.pagination a {
color: var(--color-text-muted);
background: var(--color-card);
}

.pagination a:hover {
color: var(--color-primary);
background: var(--color-secondary);
}

.pagination span.current {
color: var(--color-white);
background: var(--color-primary);
font-weight: 700;
}

.pagination .prev-next {
font-weight: 600;
color: var(--color-accent);
background: transparent;
}

.pagination .prev-next:hover {
background: rgba(30, 122, 85, 0.08);
}

.pagination .ellipsis {
color: var(--color-text-muted);
background: transparent;
cursor: default;
}

/* ─── Floating Ad Widget (desktop only — vertical card) ─────────── */

@keyframes floatIn {
0%   { opacity: 0; transform: translateY(40px) scale(0.94); }
60%  { opacity: 1; transform: translateY(-6px) scale(1.01); }
80%  { transform: translateY(3px) scale(0.99); }
100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Ad Card (shared styles) ────────────────────────────────────── */

.ad-card {
display: flex;
flex-direction: column;
background: var(--color-primary);
border-radius: 12px;
overflow: hidden;
color: #fff;
text-decoration: none;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ad-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(12, 59, 46, 0.25);
}

.ad-card-body {
padding: 20px;
display: flex;
flex-direction: column;
gap: 8px;
}

.ad-card-title {
font-size: 0.95rem;
font-weight: 700;
line-height: 1.3;
color: #fff;
}

.ad-card-tagline {
font-size: 0.8rem;
line-height: 1.45;
color: rgba(255, 255, 255, 0.75);
}

.ad-card-cta {
font-size: 0.8rem;
font-weight: 600;
color: var(--color-secondary);
margin-top: 4px;
transition: color 0.2s ease;
}

.ad-card:hover .ad-card-cta {
color: #fff;
}

/* ─── Floating Ad (desktop only) ─────────────────────────────────── */

.floating-ad {
position: fixed;
bottom: 32px;
left: 32px;
width: 300px;
z-index: 500;
opacity: 0;
pointer-events: none;
}

.floating-ad .ad-card {
aspect-ratio: 1 / 1;
justify-content: center;
}

.floating-ad .ad-card-body {
padding: 32px;
gap: 14px;
}

.floating-ad .ad-card-title {
font-size: 1.35rem;
line-height: 1.25;
}

.floating-ad .ad-card-tagline {
font-size: 0.95rem;
line-height: 1.5;
color: rgba(255, 255, 255, 0.8);
}

.floating-ad .ad-card-cta {
font-size: 0.95rem;
margin-top: 8px;
}

.floating-ad.visible {
animation: floatIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
pointer-events: auto;
}

.floating-ad.hidden {
display: none;
}

.floating-ad.above-footer {
opacity: 0 !important;
pointer-events: none !important;
transform: translateY(12px) !important;
}

.floating-ad-close {
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
background: rgba(0, 0, 0, 0.4);
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
z-index: 1;
transition: background 0.2s ease;
}

.floating-ad-close:hover {
background: rgba(0, 0, 0, 0.6);
}

/* ─── Inline Ad (mobile only) ────────────────────────────────────── */

.inline-ad {
display: none;
margin: 32px auto 0;
max-width: 680px;
padding: 0 20px;
}

@keyframes slideUp {
0%   { opacity: 0; transform: translateY(28px) scale(0.97); }
70%  { opacity: 1; transform: translateY(-4px) scale(1.005); }
100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-ad.visible {
animation: slideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (max-width: 768px) {
.floating-ad { display: none; }
.inline-ad   { display: block; opacity: 0; }
}

/* ─── Reading Progress Bar ──────────────────────────────────────── */

.reading-progress {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 3px;
background: var(--color-secondary);
z-index: 1001;
transition: width 0.1s linear;
}

/* ─── Single Article ────────────────────────────────────────────── */

.article-page {
padding-bottom: 100px;
}

.article-hero {
background: var(--color-primary);
padding: 60px 0 64px;
margin-bottom: 0;
}

.article-hero .container {
max-width: 960px;
}

.article-back {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.85rem;
font-weight: 600;
color: var(--color-secondary);
background: rgba(255,255,255,0.1);
padding: 8px 16px;
border-radius: 100px;
margin-bottom: 40px;
transition: color 0.2s ease, background 0.2s ease;
letter-spacing: 0.02em;
}

.article-back:hover {
color: #fff;
background: rgba(255,255,255,0.18);
}

.article-hero-author {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 24px;
}

.article-hero-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
object-fit: cover;
object-position: center 15%;
border: 2px solid rgba(255, 255, 255, 0.5);
flex-shrink: 0;
}

.article-hero-author-name {
font-size: 0.9rem;
font-weight: 600;
color: #fff;
}

.article-hero-date {
font-size: 0.78rem;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--color-secondary);
margin-top: 2px;
}

.article-hero-title {
font-size: clamp(2rem, 5vw, 3.8rem);
font-weight: 900;
line-height: 1.08;
color: #fff;
max-width: 900px;
letter-spacing: -0.02em;
margin-bottom: 16px;
}

.article-hero-subtitle {
font-size: 1.15rem;
font-weight: 400;
font-style: italic;
color: rgba(255,255,255,0.6);
max-width: 720px;
line-height: 1.5;
margin-top: 4px;
}

.article-body-wrap {
max-width: 720px;
margin: 0 auto;
padding: 64px 20px 0;
}

/* Sign-off note */
.article-body .article-signoff {
margin-top: 3em;
padding: 20px 24px;
background: var(--color-card);
border-radius: 12px;
font-size: 0.88rem;
color: var(--color-text-muted);
font-style: normal;
line-height: 1.6;
}

.article-body .article-signoff em {
font-style: normal;
}

.article-body .article-signoff a {
color: var(--color-accent);
text-decoration: underline;
}

/* Affiliate notice */
.article-affiliate-note {
font-size: 0.78rem;
color: var(--color-text-muted);
margin-top: 48px;
padding-top: 20px;
border-top: 1px solid rgba(0,0,0,0.06);
line-height: 1.6;
}

.article-affiliate-note a {
color: var(--color-text-muted);
text-decoration: underline;
}

.article-medium-ref {
margin-top: 40px;
font-size: 0.85rem;
}

.article-medium-ref a {
color: var(--color-text-muted);
}

.article-medium-ref a:hover {
color: var(--color-accent);
}

/* ─── Article Prev/Next Pagination ──────────────────────────────── */

.article-pagination {
margin-top: 64px;
padding-top: 40px;
border-top: 1px solid rgba(0,0,0,0.08);
}

.article-pagination-inner {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}

.article-pagination-item {
display: flex;
flex-direction: column;
gap: 8px;
padding: 24px;
background: var(--color-card);
border-radius: 16px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-pagination-item:hover {
transform: translateY(-3px);
box-shadow: 0 8px 24px rgba(12,59,46,0.08);
}

.article-pagination-item.next {
text-align: right;
}

.pagination-label {
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--color-accent);
}

.pagination-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--color-primary);
line-height: 1.35;
}

/* ─── Related Articles ───────────────────────────────────────────── */

.related-section {
margin-top: 80px;
padding: 64px 0 80px;
background: var(--color-card);
border-top: 1px solid rgba(0,0,0,0.05);
}

.related-heading {
font-size: 1rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--color-text-muted);
margin-bottom: 32px;
}

.related-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

/* ─── Article Body Typography ───────────────────────────────────── */

.article-body {
font-size: 1.05rem;
line-height: 1.85;
color: var(--color-text);
}

/* Subtitle — first h3/h4/italic-p in article body */
.article-body .article-subtitle {
font-size: 1.25rem;
font-weight: 400;
font-style: italic;
color: var(--color-text-muted);
line-height: 1.5;
margin-bottom: 2em;
border: none;
text-transform: none;
letter-spacing: 0;
}

.article-body p {
margin-bottom: 1.4em;
}

.article-body h2 {
font-size: 1.9rem;
font-weight: 800;
color: var(--color-primary);
margin: 2.4em 0 0.6em;
line-height: 1.15;
padding-top: 1.2em;
border-top: 2px solid var(--color-secondary);
}

.article-body h3 {
font-size: 1.35rem;
font-weight: 700;
color: var(--color-primary);
margin: 2em 0 0.5em;
line-height: 1.3;
}

.article-body h4 {
font-size: 0.78rem;
font-weight: 700;
color: var(--color-accent);
margin: 1.8em 0 0.5em;
text-transform: uppercase;
letter-spacing: 0.1em;
}

.article-body a {
color: var(--color-accent);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}

.article-body a:hover {
color: var(--color-primary);
}

.article-body strong {
font-weight: 700;
color: var(--color-text);
}

.article-body em {
font-style: italic;
}

.article-body blockquote {
position: relative;
margin: 2em 0;
padding: 24px 32px;
background: var(--color-card);
border-radius: 16px;
border-left: 4px solid var(--color-accent);
color: var(--color-text);
font-size: 1.1rem;
font-style: italic;
line-height: 1.7;
}

.article-body blockquote::before {
content: '\201C';
position: absolute;
top: 8px;
left: 20px;
font-size: 3.5rem;
line-height: 1;
color: var(--color-secondary);
font-style: normal;
font-weight: 900;
}

.article-body ul,
.article-body ol {
margin: 1em 0 1.4em 1.5em;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
margin-bottom: 0.4em;
}

.article-body hr {
border: none;
border-top: 1px solid rgba(0,0,0,0.08);
margin: 2em 0;
}

.article-body pre {
background: var(--color-card);
border-radius: 12px;
padding: 20px 24px;
overflow-x: auto;
margin: 1.4em 0;
font-size: 0.9rem;
}

.article-body code {
font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
font-size: 0.88em;
background: var(--color-card);
padding: 2px 6px;
border-radius: 4px;
}

.article-body pre code {
background: none;
padding: 0;
font-size: inherit;
}

.article-body figure {
margin: 1.8em 0;
}

.article-body figure img {
max-width: 100%;
border-radius: 12px;
}

.article-body figcaption {
font-size: 0.82rem;
color: var(--color-text-muted);
text-align: center;
margin-top: 8px;
font-style: italic;
}

.article-footer-nav {
margin-top: 64px;
padding-top: 32px;
border-top: 1px solid rgba(0,0,0,0.08);
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
}

.article-footer-back {
font-size: 0.9rem;
font-weight: 600;
color: var(--color-accent);
}

.article-footer-back:hover {
color: var(--color-primary);
}

/* ─── Footer ─────────────────────────────────────────────────────── */

.footer {
background: var(--color-primary);
color: rgba(255,255,255,0.82);
padding: 64px 0 32px;
margin-top: 80px;
}

.footer-top {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 48px;
margin-bottom: 48px;
}

.footer-brand .logo {
color: var(--color-white);
margin-bottom: 16px;
display: inline-block;
}

.footer-avatar {
width: 56px;
height: 56px;
}

.footer-brand p {
font-size: 0.9rem;
line-height: 1.7;
margin-bottom: 20px;
}

.footer-social {
display: flex;
gap: 12px;
margin-top: 4px;
}

.footer-social a {
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border-radius: 50%;
background: rgba(255,255,255,0.1);
color: rgba(255,255,255,0.7);
transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
background: var(--color-accent);
color: #fff;
}

.footer-links-title {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-secondary);
margin-bottom: 16px;
}

.footer-links ul {
display: flex;
flex-direction: column;
gap: 10px;
}

.footer-links a {
font-size: 0.9rem;
color: rgba(255,255,255,0.78);
transition: color 0.2s ease;
}

.footer-links a:hover {
color: var(--color-white);
}

.footer-bottom {
border-top: 1px solid rgba(255,255,255,0.08);
padding-top: 24px;
font-size: 0.82rem;
color: rgba(255,255,255,0.65);
}

/* ─── Legal Pages ──────────────────────────────────────────────── */

.legal-section { padding: 60px 0 100px; }
.legal-container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--color-accent); background: rgba(30, 122, 85, 0.08); padding: 8px 16px; border-radius: 100px; margin-bottom: 32px; transition: color 0.2s ease, background 0.2s ease; }
.legal-back:hover { color: var(--color-primary); background: rgba(30, 122, 85, 0.15); }
.legal-page-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--color-primary); margin-bottom: 16px; line-height: 1.1; }
.legal-page-meta { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 64px; }
.legal-block { margin-bottom: 64px; }
.legal-block h2 { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e0e0db; }
.legal-block h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; margin-top: 24px; }
.legal-block p { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 16px; }
.legal-block a { color: var(--color-accent); }
.legal-block ul { margin: 8px 0 16px 20px; list-style: disc; }
.legal-block li { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 4px; }

/* ─── 404 ───────────────────────────────────────────────────────── */

.error-section {
padding: 160px 0 100px;
text-align: center;
}

.error-code {
font-size: clamp(6rem, 20vw, 12rem);
font-weight: 900;
color: var(--color-secondary);
line-height: 1;
margin-bottom: 24px;
}

.error-title {
font-size: clamp(1.5rem, 4vw, 2.5rem);
font-weight: 700;
color: var(--color-primary);
margin-bottom: 16px;
}

.error-text {
font-size: 1.1rem;
color: var(--color-text-muted);
margin-bottom: 40px;
}

.btn-primary {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--color-primary);
color: var(--color-white);
padding: 14px 28px;
border-radius: 100px;
font-weight: 600;
font-size: 0.95rem;
transition: var(--transition-smooth);
}

.btn-primary:hover {
background: var(--color-accent);
transform: translateY(-2px);
}

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
.articles-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
.nav-links { display: none; }
.hamburger { display: flex; }

.page-header { padding: 48px 0 48px; }
.page-title { font-size: 2rem; }
.page-header-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-avatar { width: 72px; height: 72px; }

.articles-grid { grid-template-columns: 1fr; }
.article-card { padding: 24px; }

.footer-top { grid-template-columns: 1fr; gap: 32px; }

.article-footer-nav { flex-direction: column; align-items: flex-start; }

.article-hero { padding: 48px 0 48px; }
.article-hero-title { font-size: 2rem; }
.article-pagination-inner { grid-template-columns: 1fr; }
.related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
.article-title { font-size: 1.6rem; }
.article-body { font-size: 1rem; }
.floating-buttons { bottom: 20px; right: 20px; }
.back-home, .back-to-top { width: 40px; height: 40px; }
}
