body {
    line-height: 1.6;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Main Content */
#main {
    scroll-margin-top: calc(var(--header-height) + 8px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, var(--espresso) 0%, #2a1810 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Geometric Pattern Background */
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, var(--warm-beige) 35px, var(--warm-beige) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--warm-beige) 35px, var(--warm-beige) 70px);
    animation: slide 60s linear infinite;
}

@keyframes slide {
    from { transform: translate(0, 0); }
    to { transform: translate(70px, 70px); }
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--warm-beige);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--light-beige);
    bottom: -150px;
    right: -50px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 2rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-beige);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
    color: var(--success-green);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.95;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .gradient {
    background: linear-gradient(
        135deg, 
        var(--warm-beige) 0%, 
        var(--light-beige) 50%,
        var(--warm-beige) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {
    from { background-position: -200% center; }
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--sand);
    line-height: 1.5;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 165, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-beige);
}

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

.meta-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-beige);
    opacity: 0.8;
}

.meta-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pure-white);
}

/* Hero Visual - Legal Scales */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.legal-scales {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.scales-main {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--warm-taupe) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),
        inset 0 0 80px rgba(255, 255, 255, 0.1);
    animation: hover 3s ease-in-out infinite;
}

@keyframes hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scales-icon {
    width: 60%;
    height: 60%;
    color: var(--pure-white);
}

.scales-badges {
    position: absolute;
    inset: -20px;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scales-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--pure-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--espresso);
    font-weight: 700;
    font-size: 1.5rem;
    animation: counter-rotate 30s linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.scales-badge:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.scales-badge:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.scales-badge:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.scales-badge:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

/* ===== TABLE OF CONTENTS ===== */
.toc-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
}

.toc {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
    overflow-x: auto;

    display: block;
    flex-direction: row;
    height: auto;
    position: static;

}

.toc-title {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-progress {
    width: 100%;
    height: 3px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.toc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--warm-beige), var(--warm-beige-dark));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.25rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.925rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    white-space: wrap;
}

.toc-link:hover {
    background: var(--cream);
    color: var(--text-primary);
    transform: translateX(4px);
    text-decoration: none;
}

.toc-link.active {
    background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
    color: var(--warm-beige-darker);
    font-weight: 600;
}

.toc-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: var(--warm-beige);
    border-radius: 3px;
}

.toc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--gray-100);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toc-link.active .toc-number {
    background: var(--warm-beige);
    color: var(--pure-white);
}



/* ===== CONTENT LAYOUT ===== */
.content-wrapper {
    background: var(--cream);
    padding: 5rem 0;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: var(--toc-width) 1fr;
    gap: 5rem;
}

.content-main {
    max-width: var(--article-width);
    #margin: 0 auto;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: 4rem;
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--warm-beige-dark) 100%);
    color: var(--pure-white);
    font-weight: 800;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--espresso);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--warm-beige), transparent);
    border-radius: 3px;
}

/* ===== KEY HIGHLIGHTS ===== */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.highlight-card {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--warm-beige), var(--warm-beige-dark));
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--warm-beige);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--warm-beige-darker);
}

.highlight-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--espresso);
    margin-bottom: 0.5rem;
}

.highlight-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== DATA TABLE ===== */
.data-table-wrapper {
    background: var(--pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 2.5rem 0;
    border: 1px solid var(--gray-200);
}

.table-header {
    background: linear-gradient(135deg, var(--espresso) 0%, var(--rich-brown) 100%);
    padding: 1.5rem 2rem;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pure-white);
    margin: 0;
}

.table-subtitle {
    font-size: 0.925rem;
    color: var(--sand);
    margin-top: 0.25rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.data-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-700);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--cream);
}

.data-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: top;
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.data-table td:first-child {
    font-weight: 700;
    color: var(--espresso);
}

/* ===== INFO BOXES ===== */
.info-box {
    border-radius: 16px;
    padding: 1.75rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.info-box.notice {
    background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
    border: 1px solid var(--warm-beige);
}

.info-box.notice::before {
    background: var(--warm-beige);
}

.info-box.warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-amber);
}

.info-box.warning::before {
    background: var(--warning-amber);
}

.info-box.info {
    background: var(--info-bg);
    border: 1px solid var(--info-blue);
}

.info-box.info::before {
    background: var(--info-blue);
}

.info-box-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--espresso);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-box-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ===== RESPONSIBLE ATTORNEY CARD ===== */
.attorney-card {
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--sand) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2.5rem 0;
    border: 1px solid var(--warm-beige);
    box-shadow: var(--shadow-md);
}

.attorney-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.attorney-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--warm-beige-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.attorney-card h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--espresso);
    margin: 0;
}

.attorney-details {
    display: grid;
    gap: 0.75rem;
}

.attorney-detail {
    display: flex;
    gap: 0.5rem;
}

.attorney-detail strong {
    color: var(--espresso);
    min-width: 120px;
}

/* ===== CONTENT TYPOGRAPHY ===== */
.content-main h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--espresso);
    margin: 2.5rem 0 1.25rem;
}

.content-main p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.content-main ul,
.content-main ol {
    margin: 1.5rem 0;
    padding-left: 1.75rem;
    color: var(--text-secondary);
}

.content-main li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content-main strong {
    color: var(--text-primary);
    font-weight: 700;
}

.content-main a {
    color: var(--warm-beige-darker);
    text-decoration: underline;
    text-decoration-color: rgba(150, 99, 46, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.content-main a:hover {
    color: var(--warm-beige-dark);
    text-decoration-color: var(--warm-beige-dark);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, var(--espresso) 0%, var(--rich-brown) 100%);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(212, 165, 116, 0.03) 35px,
        rgba(212, 165, 116, 0.03) 70px
    );
}

.contact-content {
    position: relative;
    z-index: 2;
}

h3.contact-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pure-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

p.contact-subtitle {
    color: var(--pure-white);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    color: var(--warm-beige);
}

.contact-icon {
    width: 20px;
    height: 20px;
}

      
/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
        max-width: 800px;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .content-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .toc-wrapper {
        display: none;
    }
    
    #.content-wrapper {
    #    padding-left: 0;
    #}
}
        
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .highlights {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero {
        min-height: auto;
        background: none;
        color: #000;
        padding: 2rem 0;
    }
    
    .hero-title,
    .hero-subtitle,
    .section-title {
        color: #000;
    }
    
    .content-wrapper {
        padding: 2rem 0;
    }
    
    .data-table thead {
        background: #f0f0f0;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
