/* ============================================
   FINED2GETHER - Design System
   Blog Colaborativo de Finanzas
   Estilo: Minimalista Negro y Beige
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    /* Core Colors - Solo negro y beige */
    --bg-paper: #E8DCC4;
    --bg-paper-dark: #DDD0B8;
    --bg-paper-light: #F0E6D3;
    --bg-dark: #1A1A1A;
    --bg-dark-secondary: #242424;

    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-light: #F5F5F5;
    --text-muted: #7A7A7A;

    /* Accent - Negro en lugar de rosa */
    --accent: #1A1A1A;
    --accent-hover: #333333;
    --accent-light: rgba(26, 26, 26, 0.08);

    /* Borders & Shadows */
    --border: #B8A88A;
    --border-dark: #3A3A3A;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);

    /* Status Colors - Tonos más sutiles */
    --success: #4A7C4E;
    --warning: #8B7355;
    --error: #8B4A4A;
    --info: #4A6A8B;

    /* Gold - Coin Colors */
    --color-gold: #D4AF37;
    --color-gold-dark: #A08028;
    --color-gold-light: #F5E6B3;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Gilda Display', Georgia, serif;
    --font-handwritten: 'Caveat', cursive;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

/* View Transitions API (Chrome 111+) */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.25s;
    animation-timing-function: ease-out;
}

::view-transition-old(root) {
    animation-name: page-fade-out;
}

::view-transition-new(root) {
    animation-name: page-fade-in;
}

/* Page transition keyframes - Horizontal slide */
@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes page-fade-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Initial page load animation */
body {
    opacity: 0;
    animation: page-fade-in 0.15s ease-out forwards;
}

/* Page exit animation (fallback for browsers without View Transitions) */
body.page-exiting {
    animation: page-fade-out 0.1s ease-out forwards;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-paper: #1A1A1A;
    --bg-paper-dark: #242424;
    --text-primary: #F5F5F5;
    --text-secondary: #AAAAAA;
    --accent: #E8DCC4;
    --accent-hover: #DDD0B8;
    --accent-light: rgba(232, 220, 196, 0.1);
    --border: #3A3A3A;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Remove blue outline/border on mobile tap for ALL elements */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
}

a,
button,
input,
select,
textarea,
label,
[tabindex],
[onclick],
.card,
.btn,
.sidebar__link,
.nav-link,
img,
svg,
div {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    outline: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
a:active,
button:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* For accessibility, show focus only on keyboard navigation (not touch) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    /* Ensure full height for flex container and hide horizontal overflow */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-paper);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Sticky Footer Logic */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    /* Reset margin */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
    /* Allow growth but preventing shrink below content */
    width: 100%;
    /* Ensure generic main takes full width */
}

.footer {
    flex-shrink: 0;
    background: transparent;
    /* Let body background/texture show through */
    padding: var(--space-xl) 0 var(--space-lg) 0;
    border-top: none;
    margin-top: auto;
    width: 100%;
    z-index: 10;
}

/* Footer Content Styles (Moved from duplicate block) */
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.footer__social a:hover {
    color: var(--accent);
}

/* Paper texture overlay - Más visible */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Segunda capa de textura para más profundidad */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 115, 85, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 115, 85, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 115, 85, 0.05) 0%, transparent 70%);
    z-index: 9998;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

.handwritten {
    font-family: var(--font-handwritten);
    font-size: 1.5em;
}

.text-muted {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

.container--narrow {
    max-width: var(--container-narrow);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ILLUSTRATION MARQUEE
   ============================================ */
.illustration-marquee {
    overflow: hidden;
    background: var(--bg-paper-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-2xl);
    position: relative;
}

/* Fade effect on edges */
.illustration-marquee::before,
.illustration-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.illustration-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-paper-dark) 0%, transparent 100%);
}

.illustration-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-paper-dark) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
    gap: var(--space-3xl);
    align-items: center;
}

.marquee-img {
    flex-shrink: 0;
    height: 100px;
    width: auto;
    opacity: 0.8;
    filter: grayscale(20%);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.marquee-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.illustration-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
body.has-floating-header {
    padding-top: 140px;
    /* Space for the floating header */
}

@media (max-width: 768px) {
    body.has-floating-header {
        padding-top: 120px;
    }
}

.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    /* Gradient from bg-paper-light to bg-paper with opacity */
    background: linear-gradient(180deg, rgba(240, 230, 211, 0.95) 0%, rgba(232, 220, 196, 0.95) 100%);
    border: 1px solid rgba(184, 168, 138, 0.5);
    /* Matching --border color */
    border-radius: 50px;
    padding: var(--space-xs) var(--space-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(218, 165, 32, 0.05);
    /* Subtle gold ring */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(240, 230, 211, 0.98);
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Mobile adjustments for floating header */
@media (max-width: 768px) {
    .header {
        top: 10px;
        width: 95%;
        padding: var(--space-xs) var(--space-md);
    }
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Large logo for hero section */
.logo__icon--large {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle - Animated Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle__bar:nth-child(1) {
    top: 14px;
}

.menu-toggle__bar:nth-child(2) {
    top: 21px;
    width: 18px;
}

.menu-toggle__bar:nth-child(3) {
    top: 28px;
}

/* Hamburger to X animation */
.menu-toggle.active .menu-toggle__bar:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active .menu-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.menu-toggle.active .menu-toggle__bar:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Hide mobile social icons on desktop */
.mobile-social {
    display: none;
}

@media (max-width: 768px) {
    .header__inner {
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        order: 3;
    }

    /* Hide social icons from mobile header completely */
    .header__social {
        display: none !important;
    }

    /* Mobile Menu Panel */
    .nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, #f5f0e8 0%, var(--bg-paper) 30%);
        flex-direction: column;
        padding: var(--space-2xl) var(--space-lg) var(--space-lg);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        z-index: 1000;
        transition: right 0.3s ease;
        display: flex;
        gap: var(--space-sm);
    }

    .nav.open,
    .nav.active {
        right: 0;
    }

    /* No decorative elements */
    .nav::before {
        display: none;
    }

    /* Mobile Nav Links - Clean Card Style */
    .nav__link {
        display: block;
        font-size: 1rem;
        font-weight: 500;
        padding: var(--space-md) var(--space-lg);
        margin: 0;
        border-radius: var(--radius-md);
        background: var(--bg-subtle);
        color: var(--text-primary);
        text-align: center;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

    .nav__link:hover,
    .nav__link.active {
        background: rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .nav__link::after,
    .nav__link::before {
        display: none;
    }

    /* Auth Buttons Section */
    .nav #authButtons {
        margin-top: auto;
        padding-top: var(--space-lg);
    }

    .nav #authButtons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Social Icons - Clean style */
    .mobile-social {
        display: flex;
        justify-content: center;
        gap: var(--space-md);
        padding-top: var(--space-lg);
        margin-top: var(--space-md);
        border-top: 1px solid var(--border);
    }

    .mobile-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-md);
        background: var(--bg-subtle);
        color: var(--text-secondary);
        transition: all 0.2s ease;
    }

    .mobile-social a:hover {
        background: var(--accent);
        color: white;
    }

    .nav::after {
        display: none;
    }
}

/* Header Social Icons */
.header__social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
    margin-right: var(--space-lg);
}

.header__social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.header__social .social-icon:hover {
    color: var(--text-primary);
    background: var(--accent-light);
    transform: scale(1.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: white;
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn--ghost:hover {
    color: var(--text-primary);
    background: var(--accent-light);
}

.btn--sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

.btn--lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-2px);
}

.card--article {
    cursor: pointer;
}

.card__header {
    margin-bottom: var(--space-md);
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.card__excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-paper);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.form-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* ============================================
   BADGES & STATUS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--pending {
    background: rgba(255, 149, 0, 0.15);
    color: var(--warning);
}

.badge--published {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.badge--rejected {
    background: rgba(255, 59, 48, 0.15);
    color: var(--error);
}

.badge--draft {
    background: rgba(90, 200, 250, 0.15);
    color: var(--info);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   ARTICLE GRID
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    perspective: 1000px;
}

/* Article Card with 3D Tilt Effect */
.article-card {
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.article-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.article-card__author {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

/* ============================================
   FEATURED ARTICLE CARDS (Top 3)
   ============================================ */
.featured-articles {
    margin-bottom: var(--space-2xl);
}

.featured-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.featured-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-paper) 0%, var(--color-gold-light) 100%);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark));
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
    border-color: var(--color-gold-dark);
}

.featured-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: var(--space-md);
}

.featured-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.featured-card__excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gold);
}

.featured-card__author {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.featured-card__votes {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-gold-dark);
}

@media (max-width: 768px) {
    .featured-articles__grid {
        grid-template-columns: 1fr;
    }

    .featured-card__title {
        font-size: 1.25rem;
    }
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.article__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.article__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.article__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    color: var(--text-secondary);
}

.article__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.article__content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article__content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.article__content p {
    margin-bottom: var(--space-lg);
}

.article__content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   DASHBOARD
   ============================================ */
/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    /* Remove min-height: 100vh to allow body flex to handle sticky footer */
    /* min-height: 100vh; */
    flex: 1;
}

.sidebar {
    background: var(--bg-paper);
    /* Cleaner background */
    border-right: 1px solid var(--border);
    padding: var(--space-xl) var(--space-lg);
    /* More breathing room */
    display: flex;
    flex-direction: column;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    /* increased gap for aesthetics */
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    /* More space between icon and text */
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    /* Pill shape */
    transition: all var(--transition-fast);
    font-weight: 500;
}

.sidebar__link:hover {
    background: var(--bg-paper-dark);
    color: var(--text-primary);
}

.sidebar__link.active {
    background: var(--bg-paper-dark);
    /* Subtle pill background */
    color: var(--text-primary);
    font-weight: 600;
}

/* CSS syntax error removed */

.dashboard__content {
    padding: var(--space-xl);
}

.dashboard__header {
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card__label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   TABLE
   ============================================ */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background: var(--accent-light);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-paper);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert--success {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert--error {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert--warning {
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert--info {
    background: rgba(90, 200, 250, 0.15);
    border: 1px solid var(--info);
    color: var(--info);
}

/* Footer definition removed - consolidated at the top of file */

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-secondary);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* ============================================
   EDITOR STYLES
   ============================================ */
.editor-container {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.editor-toolbar {
    background: var(--bg-paper-dark);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.editor-toolbar button {
    background: transparent;
    border: none;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.editor-toolbar button:hover,
.editor-toolbar button.active {
    background: var(--accent-light);
    color: var(--accent);
}

.editor-content {
    min-height: 400px;
    padding: var(--space-lg);
    outline: none;
}

.editor-content:focus {
    background: var(--bg-paper);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ============================================
   RANKING LIST (Top 10)
   ============================================ */

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 800px;
    margin: 0 auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-paper-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: var(--bg-paper);
    transform: translateX(4px);
    box-shadow: 0 2px 8px var(--shadow);
}

.ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.ranking-item:first-child .ranking-number {
    background: var(--color-gold);
    color: var(--bg-dark);
}

.ranking-item:nth-child(2) .ranking-number {
    background: #C0C0C0;
    color: var(--bg-dark);
}

.ranking-item:nth-child(3) .ranking-number {
    background: #CD7F32;
    color: var(--text-light);
}

.ranking-content {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.ranking-coins {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-gold-dark);
}

/* ============================================
   ARTICLE LIST (All Articles - Clean)
   ============================================ */

.articles-list {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.article-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.article-list-item:hover {
    background: var(--bg-paper-light);
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-content {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs);
}

.article-list-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.article-list-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.article-list-item:hover .article-list-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* ============================================
   COIN VOTE BUTTON
   ============================================ */

.vote-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    border: 2px solid var(--color-gold-dark);
    border-radius: var(--radius-full);
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.vote-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-button--voted {
    background: var(--bg-paper-dark);
    border-color: var(--border);
    color: var(--text-muted);
}

.vote-count {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-gold-dark);
    font-weight: 600;
}

/* ============================================
   COINS WIDGET (Dashboard)
   ============================================ */

.coins-widget {
    background: linear-gradient(135deg, var(--color-gold-light), var(--bg-paper-light));
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.coins-widget__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.coins-widget__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.coins-widget__count {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-sm);
}

.coins-widget__info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    /* Slightly more distance */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* Smoother and faster transition */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Faster animation on mobile for smoother experience */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(20px);
        transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    }
}

/* Staggered delays for child elements if needed */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* ============================================
   RANKING BADGES (Added for Writer Ranking)
   ============================================ */
.ranking-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.ranking-badge--1 {
    background: var(--color-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--color-gold-light);
}

.ranking-badge--2 {
    background: #E0E0E0;
    /* Silver */
    color: var(--bg-dark);
    border: 2px solid #FFF8E1;
}

/* ============================================
   AMBIENT ORBS (Professional Aesthetic Expansion)
   ============================================ */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: multiply;
    /* Subtle stain effect on paper */
}

/* Color Variants */
.orb-emerald {
    background: radial-gradient(circle, #2C916B 0%, rgba(44, 145, 107, 0) 70%);
    width: 600px;
    height: 600px;
}

.orb-sapphire {
    background: radial-gradient(circle, #2C5591 0%, rgba(44, 85, 145, 0) 70%);
    width: 700px;
    height: 700px;
}

.orb-rose {
    background: radial-gradient(circle, #912C4A 0%, rgba(145, 44, 74, 0) 70%);
    width: 500px;
    height: 500px;
}

.orb-gold {
    background: radial-gradient(circle, #D4AF37 0%, rgba(212, 175, 55, 0) 70%);
    width: 800px;
    height: 800px;
    opacity: 0.3;
    /* Gold needs to be more subtle */
}

/* Animations */
@keyframes float-orb {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.ambient-orb {
    animation: float-orb 20s ease-in-out infinite;
}

.ranking-badge--3 {
    background: #CD7F32;
    /* Bronze */
    color: white;
    border: 2px solid #E6A86F;
}

.ranking-badge--default {
    background: var(--bg-dark);
    color: var(--text-light);
    border: 2px solid var(--border-dark);
}

/* ============================================
   AESTHETIC ENHANCEMENTS (Professional Purple Aura)
   ============================================ */
:root {
    --aura-purple: #6B2C91;
    --aura-purple-deep: #4A1D66;
    --aura-gold: #D4AF37;
}

/* Cosmic Aura Container - Seamless & Elegant */
.aura-container {
    position: relative;
    padding-top: var(--space-3xl);
    /* Ensure the glow exceeds the main container width visually */
    overflow: visible;
}

/* Top ambient light - Soft diffuse header glow */
.aura-container::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    /* Use viewport width to break out of the container restriction */
    width: 100vw;
    height: 1000px;
    background: radial-gradient(ellipse at top center,
            rgba(107, 44, 145, 0.25) 0%,
            rgba(107, 44, 145, 0.05) 50%,
            transparent 80%);
    z-index: -1;
    pointer-events: none;
    /* Extreme blur to hide any distinct edges */
    filter: blur(80px);
}

/* Enhanced Ranking Cards - Clean Professional Look */
.ranking-item {
    /* More solid base to stand out from background */
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(184, 168, 138, 0.3);
    /* Subtle beige/gold border */
    border-left: 4px solid transparent;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl) !important;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.ranking-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 15px 30px -5px rgba(107, 44, 145, 0.1),
        0 0 0 1px rgba(107, 44, 145, 0.2);
    border-left-color: var(--aura-purple);
}

/* Typography Enhancements inside Card */
.ranking-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bg-dark);
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

/* Refined Badge - Floating Orb Style */
.aura-container .ranking-badge--default {
    background: var(--bg-dark);
    color: #fff;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: var(--font-display);
    /* Subtle purple hint in background */
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.ranking-content p.text-muted {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Number 1 Special Handling */
.ranking-item:first-child {
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(250, 240, 230, 0.8));
    box-shadow: 0 10px 40px -10px rgba(212, 175, 55, 0.2);
}

.ranking-item:first-child .ranking-badge--default {
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #4a3b00;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: none;
    font-weight: 800;
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-content {
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.legal-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.legal-content li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.legal-content section {
    margin-bottom: var(--space-xl);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    text-decoration: none;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border: 1px solid var(--border);
}

.legal-table th {
    background: var(--bg-paper-dark);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-table td {
    color: var(--text-secondary);
}

.legal-back {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

/* Footer Legal Links */
.footer__legal {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.footer__legal a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer__legal a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .footer__legal {
        order: 2;
        gap: var(--space-md);
    }

    .footer__social {
        order: 3;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table th,
    .legal-table td {
        padding: var(--space-xs) var(--space-sm);
    }
}