/* --- NEWSPAPER VARIABLES --- */
:root {
    --paper-bg: #F9F7F1;
    --ink-black: #111111;
    --ink-gray: #444444;
    --accent-red: #B91C1C;

    --border-thick: 3px solid var(--ink-black);
    --border-thin: 1px solid #CCC;

    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--paper-bg);
    color: var(--ink-black);
    font-family: var(--font-body);
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-red);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    background: var(--paper-bg);
    min-height: 100vh;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink-black);
    line-height: 1.1;
    margin-bottom: 12px;
}

/* --- IMAGE UTILITIES --- */
.editorial-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    filter: grayscale(100%) contrast(1.1);
    border: 1px solid var(--ink-black);
    transition: 0.3s;
}

.editorial-img:hover {
    filter: grayscale(0%);
}

.img-caption {
    font-family: var(--font-body);
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 25px;
    display: block;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.thumb-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    filter: grayscale(100%);
    border-bottom: 1px solid var(--ink-black);
    margin-bottom: 10px;
}

/* --- LAYOUT UTILITIES --- */
.section-divider {
    border-top: 2px solid var(--ink-black);
    border-bottom: 1px solid var(--ink-black);
    padding: 8px 0;
    margin: 60px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.page-num {
    font-family: var(--font-mono);
    font-size: 12px;
}

/* --- HEADER --- */
header {
    padding-top: 20px;
    border-bottom: var(--border-thick);
    margin-bottom: 50px;
}

.top-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px solid var(--ink-black);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.masthead h1 {
    font-size: clamp(4rem, 9vw, 7rem);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    line-height: 0.9;
}

.masthead-sub {
    text-align: center;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 18px;
    margin: 10px 0 20px;
    color: var(--ink-gray);
}

.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--ink-black);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.nav-cta {
    margin-left: auto;
    background: var(--ink-black);
    color: white;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--ink-black);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-cta:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- HERO LAYOUT --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--ink-black);
    padding-bottom: 40px;
}

.hero-img-large {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s;
    border: 1px solid var(--ink-black);
}

.hero-img-large:hover {
    filter: grayscale(0%);
}

.hero-lead h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-lead p {
    font-size: 18px;
    font-family: var(--font-head);
    line-height: 1.6;
}

.opinion-col {
    border-right: 1px solid #ccc;
    padding-right: 30px;
}

.briefs-col {
    border-left: 1px solid #ccc;
    padding-left: 30px;
}

.sub-cat {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 10px;
    display: block;
}

/* --- CONTENT COLUMNS --- */
.col-layout-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.col-layout-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.news-block {
    margin-bottom: 30px;
}

.news-block h3 {
    font-size: 22px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 5px;
}

/* Detailed Lists */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #ccc;
    font-size: 14px;
    line-height: 1.4;
}

.news-list li strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    font-family: var(--font-head);
}

.news-list li:last-child {
    border: none;
}

/* --- SPECIFIC SECTIONS --- */
.tech-review-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.ai-highlight {
    background: #1a1a1a;
    color: #f9f7f1;
    padding: 30px;
}

.ai-highlight h3,
.ai-highlight h4 {
    color: #f9f7f1;
    border-color: #555;
}

.ai-highlight .sub-cat {
    color: #FF6B6B;
}

.ai-highlight li {
    border-color: #444;
}

.italic-lead {
    margin-bottom: 20px;
    font-style: italic;
}

.risk-report {
    border: 4px double var(--ink-black);
    padding: 30px;
    background-color: #F4F4F4;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.05);
    /* For anchor scrolling offset */
    scroll-margin-top: 100px;
}

.security-title {
    color: var(--accent-red);
}

.logic-note {
    margin-bottom: 15px;
    font-style: italic;
    color: #555;
}

.split-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sub-head-border {
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.small-text {
    font-size: 13px;
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: white;
    border: 1px solid var(--ink-black);
    padding: 30px;
}

.class-item {
    border: 1px solid #eee;
    padding: 15px;
}

.class-item h5 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 8px;
}

.class-item ul {
    list-style: square;
    padding-left: 15px;
    font-size: 13px;
}

.class-item li {
    margin-bottom: 5px;
}

.dark-item {
    background: var(--ink-black);
    color: white;
    border: none;
}

.text-white {
    color: white;
}

.contact-text {
    font-size: 12px;
    margin-bottom: 10px;
}

.contact-link {
    text-decoration: underline;
    color: white;
}

/* --- FOOTER --- */
footer {
    margin-top: 80px;
    border-top: var(--border-thick);
    padding: 40px 0;
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* --- COOKIE BANNER (NEW) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--ink-black);
    color: #F9F7F1;
    padding: 20px;
    border-top: 4px solid var(--accent-red);
    z-index: 9999;

    /* Animation: Start off-screen */
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    /* Elegant slow slide */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    font-family: var(--font-body);
    font-size: 14px;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.btn-cookie-accept {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 8px 24px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    transition: 0.2s;
}

.btn-cookie-accept:hover {
    background: white;
    color: var(--accent-red);
}

.btn-cookie-decline {
    background: transparent;
    color: #999;
    border: 1px solid #555;
    padding: 8px 24px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    transition: 0.2s;
}

.btn-cookie-decline:hover {
    border-color: #fff;
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    .hero-grid,
    .col-layout-3,
    .col-layout-2,
    .tech-review-grid,
    .classifieds-grid {
        grid-template-columns: 1fr;
    }

    .opinion-col,
    .briefs-col {
        border: none;
        padding: 0;
    }

    .nav-bar {
        flex-wrap: wrap;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 10px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- COOKIE BANNER EXTRAS --- */
.cookie-link {
    color: #F9F7F1;
    text-decoration: underline;
    margin-left: 5px;
    font-weight: 600;
}

.cookie-link:hover {
    color: var(--accent-red);
}

/* --- PRIVACY POLICY PAGE STYLES --- */
.legal-wrapper {
    max-width: 800px;
    /* Limit width for readability like a document */
    margin: 60px auto;
    border-left: 1px solid #ccc;
    /* Subtle separation lines */
    border-right: 1px solid #ccc;
    padding: 0 40px;
    background: #fff;
    /* White paper feel on top of off-white bg */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

.legal-header {
    text-align: center;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 30px;
    margin-bottom: 40px;
    padding-top: 40px;
}

.legal-title {
    font-size: 36px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-gray);
    text-transform: uppercase;
}

.legal-body {
    padding-bottom: 60px;
}

.legal-body h3 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.legal-body p,
.legal-body ul {
    font-family: var(--font-body);
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.7;
    /* Increased line height for legal text */
}

.legal-body ul {
    list-style: disc;
    padding-left: 20px;
}

.lead-paragraph {
    font-size: 18px;
    font-family: var(--font-head);
    font-style: italic;
    color: var(--ink-black);
    margin-bottom: 40px;
}

/* Responsive adjustment for Legal Page */
@media (max-width: 768px) {
    .legal-wrapper {
        border: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}

/* --- COOKIE BANNER EXTRAS --- */
.cookie-link {
    color: #F9F7F1;
    text-decoration: underline;
    margin-left: 5px;
    font-weight: 600;
}

.cookie-link:hover {
    color: var(--accent-red);
}

/* --- PRIVACY POLICY PAGE STYLES --- */
.legal-wrapper {
    max-width: 800px;
    /* Limit width for readability like a document */
    margin: 60px auto;
    border-left: 1px solid #ccc;
    /* Subtle separation lines */
    border-right: 1px solid #ccc;
    padding: 0 40px;
    background: #fff;
    /* White paper feel on top of off-white bg */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

.legal-header {
    text-align: center;
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 30px;
    margin-bottom: 40px;
    padding-top: 40px;
}

.legal-title {
    font-size: 36px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-gray);
    text-transform: uppercase;
}

.legal-body {
    padding-bottom: 60px;
}

.legal-body h3 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.legal-body p,
.legal-body ul {
    font-family: var(--font-body);
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.7;
    /* Increased line height for legal text */
}

.legal-body ul {
    list-style: disc;
    padding-left: 20px;
}

.lead-paragraph {
    font-size: 18px;
    font-family: var(--font-head);
    font-style: italic;
    color: var(--ink-black);
    margin-bottom: 40px;
}

/* Responsive adjustment for Legal Page */
@media (max-width: 768px) {
    .legal-wrapper {
        border: none;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
}