/* ===== LEGAL DOCUMENT STYLES - DARK MODE ===== */

/* Estilos básicos para documentos legales en modo oscuro */
.legal-document {
    padding: 40px 0;
    background: #0f1214;
    min-height: 100vh;
    color: #e9ecef;
}

.legal-document .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BREADCRUMB - DARK MODE ===== */
.breadcrumb {
    background: #1a1d20;
    padding: 15px 0;
    border-bottom: 1px solid #2d3139;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #00d4ff;
}

.breadcrumb-separator {
    color: #6c757d;
    font-size: 14px;
}

.breadcrumb-current {
    color: #e9ecef;
    font-size: 14px;
    font-weight: 500;
}

/* ===== DOCUMENT HEADER - DARK MODE ===== */
.document-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    border-bottom: 2px solid #2d3139;
}

.document-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.document-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: #adb5bd;
}

.meta-item strong {
    color: #e9ecef;
    font-weight: 600;
}

.document-summary {
    max-width: 800px;
    margin: 0 auto;
}

.document-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ced4da;
    margin: 0;
}

/* ===== TABLE OF CONTENTS - DARK MODE ===== */
.toc-section {
    background: #1a1d20;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #2d3139;
}

.toc-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.table-of-contents ol {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
}

.table-of-contents ol li {
    counter-increment: toc-counter;
    margin-bottom: 10px;
}

.table-of-contents ol li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #ced4da;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 45px;
}

.table-of-contents ol li a:before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 15px;
    font-weight: 600;
    color: #00d4ff;
}

.table-of-contents ol li a:hover {
    background: #2d3139;
    color: #00d4ff;
    transform: translateX(5px);
}

/* ===== BASIC HTML ELEMENTS STYLES - DARK MODE ===== */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 30px;
    color: #00d4ff;
    border-bottom: 2px solid #2d3139;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 25px;
    color: #e9ecef;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    margin-top: 20px;
    color: #ced4da;
}

h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 15px;
    color: #adb5bd;
}

h6 {
    font-size: 1rem;
    margin-bottom: 8px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
}

/* Paragraphs */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ced4da;
    text-align: justify;
}

/* Lists */
ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

ul li, ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #ced4da;
}

ul {
    list-style-type: disc;
}

ul ul {
    list-style-type: circle;
    margin-top: 5px;
    margin-bottom: 5px;
}

ul ul ul {
    list-style-type: square;
}

ol {
    list-style-type: decimal;
}

ol ol {
    list-style-type: lower-alpha;
    margin-top: 5px;
    margin-bottom: 5px;
}

ol ol ol {
    list-style-type: lower-roman;
}

/* Links */
a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #33e0ff;
    text-decoration: underline;
}

/* Strong and emphasis */
strong, b {
    font-weight: 600;
    color: #ffffff;
}

em, i {
    font-style: italic;
    color: #e9ecef;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #00d4ff;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #adb5bd;
    background: #1a1d20;
    padding: 15px 20px;
    border-radius: 0 5px 5px 0;
}

/* Code elements */
code {
    background: #1a1d20;
    border: 1px solid #2d3139;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #ff6b9d;
}

pre {
    background: #1a1d20;
    border: 1px solid #2d3139;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #ced4da;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #1a1d20;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #2d3139;
    color: #ced4da;
}

table th {
    background: #0f1214;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #495057;
}

table tr:hover {
    background: #1e2125;
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 1px solid #2d3139;
    margin: 30px 0;
}

/* Definition lists */
dl {
    margin-bottom: 20px;
}

dt {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

dd {
    margin-bottom: 15px;
    margin-left: 20px;
    color: #ced4da;
}

/* ===== LEGAL SECTION STYLES - DARK MODE ===== */
.legal-section {
    margin-bottom: 50px;
    padding: 30px;
    background: #1a1d20;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #2d3139;
}

.legal-section:target {
    background: #1e2125;
    border-color: #00d4ff;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* ===== SPECIAL ELEMENTS - DARK MODE ===== */
.definition-list {
    display: grid;
    gap: 20px;
}

.definition-item {
    background: #0f1214;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #00d4ff;
}

.definition-item h3 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.important-notice {
    background: #2d1810;
    border: 1px solid #664d03;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
}

.important-notice h4 {
    color: #ffc107;
    margin-bottom: 10px;
}

.important-notice p {
    color: #ffda6a;
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.service-item {
    background: #0f1214;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #2d3139;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-color: #00d4ff;
}

.service-item h4 {
    color: #00d4ff;
    margin-bottom: 10px;
}

.disclaimer {
    background: #2d3139;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #6c757d;
}

.fees-table {
    margin: 25px 0;
    border: 1px solid #2d3139;
    border-radius: 8px;
    overflow: hidden;
}

.prohibited-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.prohibition-category {
    background: #2d1a1e;
    border: 1px solid #664d03;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #dc3545;
}

.prohibition-category h4 {
    color: #ff6b9d;
    margin-bottom: 15px;
}

.prohibition-category ul li {
    color: #ffb3c6;
}

.enforcement-notice {
    background: #2d1a1e;
    border: 1px solid #664d03;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #dc3545;
}

.enforcement-notice h4 {
    color: #ff6b9d;
    margin-bottom: 10px;
}

.enforcement-notice p {
    color: #ffb3c6;
    margin-bottom: 0;
}

.contact-legal {
    display: grid;
    gap: 30px;
}

.company-details,
.support-channels,
.regulatory-info {
    background: #0f1214;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #2d3139;
}

.legal-footer {
    background: #1a1d20;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid #2d3139;
    text-align: center;
}

.document-validation {
    margin-bottom: 20px;
}

.document-validation p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #adb5bd;
}

.legal-notice {
    font-style: italic;
    color: #adb5bd;
}

.legal-notice p {
    margin-bottom: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .legal-document .container {
        padding: 0 15px;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .toc-section {
        padding: 20px;
    }
    
    .services-grid,
    .prohibited-activities {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    ul, ol {
        padding-left: 20px;
    }
    
    .table-of-contents ol li a {
        padding-left: 35px;
    }
    
    .table-of-contents ol li a:before {
        left: 10px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .breadcrumb,
    .toc-section {
        display: none;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .document-header {
        page-break-after: avoid;
    }
    
    h2 {
        page-break-before: always;
        page-break-after: avoid;
    }
    
    h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}
