/* ============================================
   펫 백과사전 - 반려동물 품종 가이드
   Design Style: warm-natural
   ============================================ */

/* ── CSS Variables ── */
:root {
    --primary: #2E7D5B;
    --primary-dark: #1B5E40;
    --primary-light: #4CAF7A;
    --primary-pale: #E8F5EC;
    --secondary: #E8A317;
    --secondary-light: #F2C94C;
    --secondary-dark: #C78A0E;

    --bg-body: #FAF7F2;
    --bg-paper: #FEFCF8;
    --bg-warm: #F5EFE4;
    --bg-green-light: #EDF7F0;

    --dog-color: #C78A0E;
    --dog-bg: #FEF8E7;
    --dog-border: #F2D68A;
    --cat-color: #7B68AE;
    --cat-bg: #F3F0FA;
    --cat-border: #C4BAE0;
    --health-color: #D04848;
    --health-bg: #FEF0F0;
    --compare-color: #3D8EC9;
    --compare-bg: #EDF4FB;
    --training-color: #2E7D5B;
    --nutrition-color: #D4842A;
    --lifestyle-color: #5C8A8A;

    --text-primary: #2D2319;
    --text-secondary: #5A4E42;
    --text-muted: #8C7E6E;
    --text-light: #A69886;

    --border-light: #E8DFD2;
    --border-medium: #D4C8B4;

    --font-heading: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1100px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(45,35,25,.06);
    --shadow-md: 0 4px 12px rgba(45,35,25,.08);
    --shadow-lg: 0 8px 24px rgba(45,35,25,.12);
    --transition: .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo:hover { color: #fff; }
.logo-icon { font-size: 1.5rem; }

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav-link {
    color: rgba(255,255,255,.85);
    font-size: .875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.15);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.15);
    border-radius: 6px;
    overflow: hidden;
}
.search-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px 12px;
    width: 160px;
    font-size: .875rem;
    outline: none;
}
.search-form input::placeholder { color: rgba(255,255,255,.6); }
.search-form button {
    color: rgba(255,255,255,.8);
    padding: 6px 10px;
    display: flex;
}
.search-form button:hover { color: #fff; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin: 0 -20px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 28px;
}
.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}
.hero-search button {
    background: var(--secondary);
    color: #fff;
    padding: 14px 24px;
    font-weight: 700;
    font-size: .95rem;
    transition: background var(--transition);
}
.hero-search button:hover { background: var(--secondary-dark); }

/* ============================================
   SECTIONS
   ============================================ */
.main { padding: 40px 0 60px; }
.section { margin-bottom: 48px; }
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-icon { font-size: 1.3rem; }

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
    color: var(--text-primary);
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    color: var(--text-primary);
}
.category-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.category-name { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.category-count { font-size: .8rem; color: var(--text-muted); }

/* ============================================
   CATEGORY BADGES
   ============================================ */
[class*="badge-"] {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
}
.badge-small-dogs, .badge-medium-dogs, .badge-large-dogs, .badge-special-dogs {
    background: var(--dog-bg);
    color: var(--dog-color);
    border: 1px solid var(--dog-border);
}
.badge-shorthair-cats, .badge-longhair-cats, .badge-special-cats {
    background: var(--cat-bg);
    color: var(--cat-color);
    border: 1px solid var(--cat-border);
}
.badge-comparison {
    background: var(--compare-bg);
    color: var(--compare-color);
    border: 1px solid #A8CCE8;
}
.badge-health {
    background: var(--health-bg);
    color: var(--health-color);
    border: 1px solid #F0B0B0;
}
.badge-nutrition {
    background: #FEF3E2;
    color: var(--nutrition-color);
    border: 1px solid #F0D4A0;
}
.badge-training {
    background: var(--primary-pale);
    color: var(--training-color);
    border: 1px solid #A8D8B8;
}
.badge-lifestyle {
    background: #EDF5F5;
    color: var(--lifestyle-color);
    border: 1px solid #B0D0D0;
}

/* ============================================
   POPULAR LIST
   ============================================ */
.popular-list { display: flex; flex-direction: column; gap: 8px; }
.popular-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--transition);
    color: var(--text-primary);
}
.popular-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
    color: var(--text-primary);
}
.popular-top3 { border-left: 3px solid var(--secondary); }
.popular-rank {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 30px;
    text-align: center;
}
.popular-top3 .popular-rank { color: var(--secondary); }
.popular-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-warm);
}
.popular-info { flex: 1; }
.popular-category { margin-bottom: 4px; }
.popular-title { font-size: .95rem; font-weight: 600; }
.popular-views { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }

/* ============================================
   CONTENT CARDS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.content-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}
.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}
.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-warm);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.content-card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 20px; flex: 1; }
.card-category { margin-bottom: 8px; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card-excerpt { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }
.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--text-muted);
}

/* ============================================
   CONTENT LIST (Category, Author, Search)
   ============================================ */
.content-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.list-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--transition);
    color: var(--text-primary);
}
.list-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
    color: var(--text-primary);
}
.list-item-image {
    width: 180px;
    height: 120px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-warm);
}
.list-item-body { flex: 1; }
.list-item-category { margin-bottom: 6px; }
.list-item-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.list-item-excerpt { font-size: .875rem; color: var(--text-secondary); margin-bottom: 8px; }
.list-item-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-muted); }

/* ============================================
   CATEGORY HEADER
   ============================================ */
.category-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}
.category-title { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 8px; }
.category-desc { color: var(--text-secondary); margin-bottom: 8px; }
.category-total { font-size: .875rem; color: var(--text-muted); }

/* ============================================
   ARTICLE DETAIL
   ============================================ */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-hero-image {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-warm);
}
.article-hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.article-header { margin-bottom: 32px; }
.article-category { margin-bottom: 12px; }
.article-title { font-family: var(--font-heading); font-size: 2rem; line-height: 1.3; margin-bottom: 16px; }
.article-meta {
    display: flex;
    gap: 16px;
    font-size: .875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-author { color: var(--primary); font-weight: 600; }

/* Article Content */
.article-content { line-height: 1.85; margin-bottom: 40px; }
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-pale);
    color: var(--primary-dark);
}
.article-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
    color: var(--text-primary);
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
    margin: 12px 0 20px 24px;
    list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    background: var(--bg-paper);
    border-radius: var(--radius);
    overflow: hidden;
}
.article-content th {
    background: var(--primary-pale);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
}
.article-content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
}
.article-content blockquote {
    border-left: 4px solid var(--secondary);
    background: var(--bg-warm);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
}
.article-content strong { color: var(--primary-dark); }

/* ============================================
   TOC
   ============================================ */
.toc {
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
}
.toc-arrow { transition: transform var(--transition); }
.toc-toggle.collapsed .toc-arrow { transform: rotate(-90deg); }
.toc-list {
    margin-top: 12px;
    padding-left: 20px;
    list-style: decimal;
}
.toc-list li { margin-bottom: 6px; }
.toc-list a { color: var(--text-secondary); font-size: .9rem; }
.toc-list a:hover { color: var(--primary); }
.toc-h3 { padding-left: 20px; list-style-type: disc; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section { margin: 40px 0; }
.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-paper);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}
.faq-question:hover { color: var(--primary); }
.faq-arrow { transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    padding: 0 20px 16px;
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   REFERENCES
   ============================================ */
.references-section { margin: 32px 0; }
.references-section h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}
.references-list {
    padding-left: 24px;
    list-style: decimal;
    font-size: .85rem;
    color: var(--text-muted);
}
.references-list li { margin-bottom: 6px; }
.references-list a { color: var(--primary); }
.ref-source { color: var(--text-muted); }

/* ============================================
   FEEDBACK
   ============================================ */
.feedback-section {
    text-align: center;
    padding: 28px;
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    margin: 32px 0;
}
.feedback-question { font-weight: 600; margin-bottom: 16px; }
.feedback-buttons { display: flex; justify-content: center; gap: 12px; }
.feedback-btn {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: .9rem;
    font-weight: 600;
    border: 2px solid var(--border-medium);
    background: var(--bg-paper);
    transition: all var(--transition);
}
.feedback-yes:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.feedback-no:hover { border-color: var(--health-color); color: var(--health-color); background: var(--health-bg); }
.feedback-btn:disabled { opacity: .6; cursor: default; }
.feedback-count { font-size: .8rem; color: var(--text-muted); margin-left: 4px; }
.feedback-thanks { margin-top: 12px; color: var(--primary); font-weight: 600; }

/* ============================================
   AUTHOR BIO CARD
   ============================================ */
.author-bio-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin: 32px 0;
}
.author-bio-name { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.author-bio-credentials { font-size: .85rem; color: var(--text-muted); margin: 4px 0; }
.author-bio-text { font-size: .9rem; color: var(--text-secondary); margin-top: 8px; }

/* ============================================
   AUTHOR PROFILE
   ============================================ */
.author-profile {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-light);
}
.author-name { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 8px; }
.author-credentials { color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.author-bio { color: var(--text-secondary); max-width: 600px; margin: 0 auto 12px; }
.author-count { font-size: .875rem; color: var(--text-muted); }

/* ============================================
   RELATED
   ============================================ */
.related-section { margin-top: 48px; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; color: var(--text-muted); margin-right: 8px; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-secondary); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.page-link {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: .875rem;
    color: var(--text-secondary);
    background: var(--bg-paper);
    transition: all var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-page { max-width: 800px; margin: 0 auto; }
.search-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 20px; }
.search-count { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.search-form-page {
    display: flex;
    margin-bottom: 32px;
    background: var(--bg-paper);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.search-form-page:focus-within { border-color: var(--primary); }
.search-form-page input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}
.search-form-page button {
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    font-weight: 700;
}
.search-form-page button:hover { background: var(--primary-dark); }

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page { text-align: center; padding: 60px 20px; }
.error-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.error-code { font-family: var(--font-heading); font-size: 5rem; color: var(--primary); margin-bottom: 8px; }
.error-message { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.error-desc { color: var(--text-muted); margin-bottom: 28px; }
.error-search {
    max-width: 400px;
    margin: 0 auto 24px;
    display: flex;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.error-search input { flex: 1; border: none; padding: 12px 16px; outline: none; }
.error-search button { background: var(--primary); color: #fff; padding: 12px 20px; font-weight: 600; }
.error-popular { margin-top: 40px; }
.error-popular h2 { font-size: 1.1rem; margin-bottom: 12px; color: var(--text-secondary); }
.error-popular ul { list-style: none; }
.error-popular li { margin-bottom: 8px; }
.error-popular a { color: var(--primary); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state p { margin-bottom: 16px; }

/* ============================================
   STATIC PAGES
   ============================================ */
.static-page { max-width: 800px; margin: 0 auto; }
.static-page h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-pale);
}
.static-content h2 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: var(--primary-dark);
}
.static-content p { margin-bottom: 14px; color: var(--text-secondary); line-height: 1.8; }
.static-content ul {
    margin: 8px 0 16px 24px;
    list-style: disc;
    color: var(--text-secondary);
}
.static-content li { margin-bottom: 6px; }
.contact-info { margin: 24px 0; }
.contact-item {
    background: var(--bg-warm);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.contact-item h2 { margin-top: 0; }
.contact-notice { color: var(--text-muted); font-style: italic; }

/* ============================================
   LEGAL PAGES (v3.4 AdSense 승인 최적화)
   ============================================ */
.legal-page { max-width: 800px; margin: 0 auto; }
.legal-page__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-pale);
}
.legal-page__updated {
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: 32px;
}
.legal-page__content section {
    margin-bottom: 36px;
}
.legal-page__content h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-light);
}
.legal-page__content p {
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.legal-page__content ul,
.legal-page__content ol {
    margin: 8px 0 16px 24px;
    list-style: disc;
    color: var(--text-secondary);
    line-height: 1.8;
}
.legal-page__content ol { list-style: decimal; }
.legal-page__content li { margin-bottom: 6px; }
.legal-page__content a {
    color: var(--primary);
    text-decoration: underline;
}
.legal-page__content a:hover { color: var(--primary-dark); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: rgba(255,255,255,.7);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-top {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-brand { flex: 0 0 250px; }
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}
.footer-logo:hover { color: #fff; }
.footer-tagline { font-size: .85rem; margin-top: 8px; }
.footer-links { display: flex; gap: 40px; flex: 1; }
.footer-col h4 {
    color: #fff;
    font-size: .9rem;
    margin-bottom: 12px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    padding: 3px 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    font-size: .8rem;
    text-align: center;
}
.footer-disclaimer { margin-top: 8px; font-size: .75rem; opacity: .5; }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    padding: 16px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-legal a {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
}
.footer-legal a:hover { color: #fff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-brand { flex: none; }
    .footer-links { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all .3s;
        z-index: 99;
    }
    .nav.open { transform: translateY(0); opacity: 1; }
    .nav-link { width: 100%; padding: 12px 16px; }
    .search-form { display: none; }

    .hero { padding: 40px 20px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: .95rem; }

    .category-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .category-card { padding: 16px 12px; }

    .card-grid { grid-template-columns: 1fr; }

    .article-title { font-size: 1.5rem; }
    .article-content h2 { font-size: 1.3rem; }

    .popular-item { padding: 12px 14px; }
    .popular-thumb { width: 44px; height: 44px; }

    .list-item { flex-direction: column; gap: 12px; }
    .list-item-image { width: 100%; height: 180px; }

    .footer-links { gap: 20px; }
    .footer-col { min-width: 130px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-search { flex-direction: column; border-radius: var(--radius); }
    .hero-search input { border-bottom: 1px solid var(--border-light); }
    .popular-views { display: none; }
}
