/* ================================================================
   PAGES.CSS — Shared Page-Level Styles
   Used by: Partners, Tutorials, Projects, Search, Tools pages
   ================================================================ */

/* ----------------------------------------------------------------
   1. PAGE HEADER — Hero banner at the top of listing pages
   ---------------------------------------------------------------- */
.page-header {
    background: var(--bg-surface, #f9fafb);
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 64px 0 48px;
    text-align: center;
}

.page-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary, #111827);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted, #6b7280);
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
}

/* Search bar inside page header */
.page-header .search-bar {
    width: 100%;
    max-width: 560px;
    margin-top: 8px;
}

/* ----------------------------------------------------------------
   2. PARTNERS / LISTING SECTION WRAPPER
   ---------------------------------------------------------------- */
.partners-section,
.section {
    padding: 56px 0 64px;
}

/* ----------------------------------------------------------------
   3. AFFILIATE DISCLOSURE — Feature-rich notice box
   ---------------------------------------------------------------- */
.affiliate-notice {
    padding: 0 0 56px;
}

.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-surface, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle background tint on the left accent area */
.notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(37, 99, 235, 0.04) 0%,
            transparent 40%);
    pointer-events: none;
}

.notice-box:hover {
    border-color: var(--border-strong, #d1d5db);
    border-left-color: var(--primary, #2563EB);
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.06));
}

/* Icon circle */
.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 10px;
    color: var(--primary, #2563EB);
    position: relative;
    z-index: 1;
}

.notice-icon svg {
    flex-shrink: 0;
}

/* Content area */
.notice-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.notice-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 8px 0;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    color: var(--primary, #2563EB);
}

.notice-content p {
    font-size: 14px;
    color: var(--text-secondary, #4b5563);
    line-height: 1.7;
    margin: 0;
}

.notice-content p a {
    color: var(--primary, #2563EB);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.notice-content p a:hover {
    color: var(--primary-hover, #1d4ed8);
}

/* ----------------------------------------------------------------
   4. DARK MODE OVERRIDES
   ---------------------------------------------------------------- */
[data-theme="dark"] .page-header {
    background: var(--bg-surface);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .notice-box {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .notice-box::before {
    background: linear-gradient(90deg,
            rgba(37, 99, 235, 0.08) 0%,
            transparent 40%);
}

[data-theme="dark"] .notice-icon {
    background: rgba(37, 99, 235, 0.15);
}

/* ----------------------------------------------------------------
   5. RESPONSIVE — TABLET (≤ 1024px)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .page-header {
        padding: 52px 0 40px;
    }

    .page-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .notice-box {
        padding: 24px 28px;
        gap: 16px;
    }
}

/* ----------------------------------------------------------------
   6. RESPONSIVE — TABLET PORTRAIT (≤ 768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 32px;
        text-align: left;
    }

    .page-header .container {
        align-items: flex-start;
    }

    .page-header .search-bar {
        max-width: 100%;
    }

    .page-subtitle {
        max-width: 100%;
        font-size: 0.93rem;
    }

    .partners-section,
    .section {
        padding: 40px 0 48px;
    }

    .affiliate-notice {
        padding: 0 0 40px;
    }

    .notice-box {
        flex-direction: row;
        /* stays side-by-side until very small */
        padding: 20px 24px;
        gap: 14px;
        border-radius: 10px;
    }

    .notice-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 8px;
    }

    .notice-icon svg {
        width: 20px;
        height: 20px;
    }

    .notice-content h4 {
        margin-bottom: 6px;
    }
}

/* ----------------------------------------------------------------
   7. RESPONSIVE — MOBILE (≤ 480px)
   Stack icon + text vertically for very narrow screens
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .page-header {
        padding: 32px 0 24px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .notice-box {
        flex-direction: column;
        /* icon stacks above text on mobile */
        gap: 14px;
        padding: 20px;
        border-left-width: 3px;
        border-radius: 8px;
    }

    .notice-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .notice-content p {
        font-size: 13px;
    }

    .affiliate-notice {
        padding: 0 0 32px;
    }
}

/* ----------------------------------------------------------------
   8. BREADCRUMB — Used in detail/category pages
   ---------------------------------------------------------------- */
.tutorial-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 16px;
}

.tutorial-breadcrumb a {
    color: var(--text-muted, #6b7280);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tutorial-breadcrumb a:hover {
    color: var(--primary, #2563EB);
}

.tutorial-breadcrumb span {
    color: var(--text-muted, #9ca3af);
}

/* ----------------------------------------------------------------
   9. SECTION TITLE (inline listing sections)
   ---------------------------------------------------------------- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------
   10. FILTER + RESULTS ROW
   ---------------------------------------------------------------- */
.filter-results-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.results-info p {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    margin: 0;
}

.results-info strong {
    color: var(--text-primary, #111827);
    font-weight: 600;
}

/* ----------------------------------------------------------------
   11. CATEGORY CARDS GRID (categories index page)
   ---------------------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-card, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 28px 24px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.07);
    border-radius: 12px;
    color: var(--primary, #2563EB);
    flex-shrink: 0;
}

.category-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0;
    line-height: 1.3;
}

.category-description {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.category-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #2563EB);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    margin-top: auto;
}

/* ----------------------------------------------------------------
   12. CONTENT SECTION (detail page tutorials/projects sub-sections)
   ---------------------------------------------------------------- */
.content-section {
    margin-bottom: 48px;
}

/* Lightweight tutorial card used in category detail */
.tutorials-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tutorial-card,
.project-card {
    background: var(--bg-card, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tutorial-card .card-title,
.project-card .project-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.tutorial-card .card-title a,
.project-card .project-title a {
    color: var(--text-primary, #111827);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tutorial-card .card-title a:hover,
.project-card .project-title a:hover {
    color: var(--primary, #2563EB);
}

.tutorial-card .card-description,
.project-card .project-description {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.tutorial-card .card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tutorial-card .meta-item {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    font-weight: 500;
}

.tutorial-card .card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #2563EB);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.tutorial-card .card-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-card .project-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-card .stat {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    font-weight: 500;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted, #6b7280);
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 10px;
}

.no-results p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   13. DARK MODE — Category & detail page cards
   ---------------------------------------------------------------- */
[data-theme="dark"] .category-card {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .category-icon {
    background: rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .tutorial-card,
[data-theme="dark"] .project-card {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------------------
   14. RESPONSIVE — Category grid & cards (≤ 768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 22px 18px;
        gap: 10px;
    }

    .category-icon {
        width: 44px;
        height: 44px;
    }

    .tutorials-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-results-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
}

/* ----------------------------------------------------------------
   15. RESPONSIVE — Mobile (≤ 480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 18px 14px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-title {
        font-size: 0.9rem;
    }

    .tutorial-card,
    .project-card {
        padding: 18px;
    }

    .content-section {
        margin-bottom: 32px;
    }
}

/* ================================================================
   INFORMATIONAL / CONTENT PAGES — Full Design System
   Used by: About, Contact, Privacy, Terms, Disclaimer, Cookie, Affiliate
   ================================================================ */

/* ── Page Header ── */
.content-page-header {
    background: var(--bg-surface, #f8fafc);
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.07));
    padding: 72px 24px 56px;
    position: relative;
    overflow: hidden;
}

.content-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.content-page-header-inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.content-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 20px;
}

.content-breadcrumb a {
    color: var(--primary, #2563EB);
    text-decoration: none;
    font-weight: 500;
}

.content-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--text-muted, #d1d5db);
    font-size: 14px;
}

.content-page-title {
    font-size: clamp(2rem, 5vw, 42px);
    font-weight: 800;
    color: var(--text-primary, #111827);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 16px;
}

.content-page-subtitle {
    font-size: 18px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.content-page-meta {
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    margin: 0;
    font-weight: 500;
}

/* ── Page Body ── */
.content-page-body {
    padding: 0;
    background: var(--bg, #ffffff);
}

.content-page-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

/* ── Content Section ── */
.content-section {
    margin-bottom: 0;
    padding: 0;
}

.content-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary, #2563EB);
    margin-bottom: 10px;
}

.content-section-heading {
    font-size: clamp(1.35rem, 3vw, 26px);
    font-weight: 700;
    color: var(--text-primary, #111827);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 18px;
}

.content-section-heading .section-number {
    color: var(--primary, #2563EB);
    font-variant-numeric: tabular-nums;
    margin-right: 2px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.82;
    color: var(--text-secondary, #4b5563);
    margin: 0 0 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* ── Content List ── */
.content-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.content-list li {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-secondary, #4b5563);
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.05));
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary, #2563EB);
    font-size: 13px;
    top: 10px;
    font-weight: 600;
}

.content-list li strong {
    color: var(--text-primary, #111827);
    font-weight: 600;
}

.content-list a {
    color: var(--primary, #2563EB);
    text-decoration: none;
    font-weight: 500;
}

.content-list a:hover {
    text-decoration: underline;
}

/* ── Section Divider ── */
.section-divider {
    height: 1px;
    background: var(--border, rgba(0, 0, 0, 0.06));
    margin: 48px 0;
}

/* ── Sub-heading (inside sections) ── */
.content-subheading {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin: 28px 0 12px;
    letter-spacing: -0.01em;
}

/* ── Info Block (e.g. response time) ── */
.content-info-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 16px;
}

.content-info-block svg {
    flex-shrink: 0;
    color: var(--primary, #2563EB);
    margin-top: 2px;
}

.content-info-block p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary, #4b5563);
    margin: 0;
}

/* ── Feature Grid (About → What We Offer) ── */
.content-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.content-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.07));
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.content-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #2563EB);
    flex-shrink: 0;
}

.content-feature-card>div:last-child strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin-bottom: 6px;
}

.content-feature-card>div:last-child p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary, #6b7280);
    margin: 0;
}

/* ── Pill Group (Focus Areas) ── */
.content-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.content-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #2563EB);
    letter-spacing: 0.1px;
}

/* ── CTA Row ── */
.content-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.content-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary, #2563EB);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.content-cta-btn:hover {
    background: var(--primary-hover, #1d4ed8);
    color: #ffffff;
}

.content-cta-btn--outline {
    background: transparent;
    color: var(--primary, #2563EB);
    border: 1.5px solid var(--primary, #2563EB);
}

.content-cta-btn--outline:hover {
    background: var(--primary, #2563EB);
    color: #ffffff;
}

/* ── Closing statement ── */
.content-closing {
    font-size: 16px;
    color: var(--text-primary, #111827);
    margin-top: 16px;
}

/* ── Contact Cards ── */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.07));
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease;
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #2563EB);
    flex-shrink: 0;
}

.contact-card-body {
    flex: 1;
    min-width: 0;
}

.contact-card-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 6px;
}

.contact-card-email {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #2563EB);
    text-decoration: none;
    word-break: break-all;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.contact-card-email:hover {
    color: var(--primary-hover, #1d4ed8);
}

.contact-card-note {
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    margin: 0;
    line-height: 1.5;
}

/* ── Cookie Type Cards ── */
.cookie-type-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.07));
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 14px;
}

.cookie-type-card:first-child {
    margin-top: 20px;
}

.cookie-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.cookie-type-header strong {
    font-size: 15px;
    color: var(--text-primary, #111827);
    font-weight: 700;
}

.cookie-duration-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #9ca3af);
    background: var(--bg-surface, #f3f4f6);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-type-card>p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary, #6b7280);
    margin: 0;
}

/* ── Data Table ── */
.content-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.07));
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.content-table thead tr {
    background: var(--bg-surface, #f8fafc);
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.content-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #9ca3af);
}

.content-table td {
    padding: 12px 16px;
    color: var(--text-secondary, #4b5563);
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.05));
    vertical-align: top;
}

.content-table tbody tr:last-child td {
    border-bottom: none;
}

.content-table code {
    background: var(--bg-surface, #f1f5f9);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary, #111827);
}

/* ── last-updated meta ── */
.last-updated {
    font-size: 13px;
    color: var(--text-muted, #9ca3af);
    margin: 0 0 40px;
    font-weight: 500;
    display: block;
}

/* ── Dark mode overrides ── */
[data-theme="dark"] .content-page-header {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-theme="dark"] .content-page-header::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}

[data-theme="dark"] .content-feature-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .cookie-type-card {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .content-feature-icon,
[data-theme="dark"] .contact-card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

[data-theme="dark"] .content-pill {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .content-info-block {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.12);
}

[data-theme="dark"] .content-table-wrapper {
    border-color: var(--border);
}

[data-theme="dark"] .content-table thead tr {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-theme="dark"] .content-table td {
    border-color: var(--border);
}

[data-theme="dark"] .content-table code {
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
}

[data-theme="dark"] .cookie-duration-badge {
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .section-divider {
    background: var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .content-page-header {
        padding: 48px 20px 36px;
    }

    .content-page-container {
        padding: 40px 20px 56px;
    }

    .content-feature-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .content-cta-row {
        flex-direction: column;
    }

    .content-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .section-divider {
        margin: 36px 0;
    }
}

@media (max-width: 480px) {
    .content-page-header {
        padding: 36px 16px 28px;
    }

    .content-page-container {
        padding: 28px 16px 40px;
    }

    .content-page-title {
        font-size: clamp(1.6rem, 8vw, 28px);
    }

    .content-section-heading {
        font-size: 20px;
    }

    .content-feature-card {
        padding: 16px;
    }

    .contact-card {
        padding: 16px;
        flex-direction: column;
    }

    .section-divider {
        margin: 28px 0;
    }
}