/* Legal Pages Professional Styling */
.legal-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
    padding: 6rem 0 4rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(139, 69, 19, 0.1);
}

.legal-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.8;
}

.legal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.legal-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 900px;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.company-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.company-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.company-owner {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.company-address {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.6;
}

.legal-heading {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.business-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.address-line {
    color: #4b5563;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    border-color: var(--primary-color);
}

.contact-label {
    font-weight: 600;
    color: #374151;
    min-width: 180px;
    font-size: 1rem;
}

.contact-value {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.contact-value:hover {
    color: #92400e;
    text-decoration: underline;
}

.legal-text {
    line-height: 1.8;
    color: #374151;
    font-size: 1.05rem;
}

.legal-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #d1d5db;
}

.legal-text p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.last-updated {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 1px solid #f59e0b;
    color: #92400e;
    font-weight: 600;
    text-align: center;
}

.external-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: inline-block;
    word-break: break-all;
}

.external-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.external-link::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
}

.legal-content {
    line-height: 1.8;
    color: #374151;
}

.legal-subsection {
    margin-bottom: 1.5rem;
}

.legal-subsection h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #d1d5db;
}

.legal-subsection p {
    text-align: justify;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1rem;
}

.legal-list {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 3px solid var(--primary-color);
}

.legal-list ul, .legal-list ol {
    margin: 0;
    padding-left: 2rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #374151;
}

.privacy-highlight {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.privacy-highlight h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* BB-Code Styles */
.bb-quote {
    background: #f3f4f6;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.bb-quote cite {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.bb-code {
    background: #1f2937;
    color: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.bb-hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 2rem 0;
}

.bb-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bb-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.bb-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.bb-table tr:last-child td {
    border-bottom: none;
}

.bb-table tr:nth-child(even) {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 4rem 0 3rem;
    }
    
    .legal-title {
        font-size: 2.2rem;
    }
    
    .legal-subtitle {
        font-size: 1.1rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .legal-section {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }
    
    .legal-section-title {
        font-size: 1.5rem;
    }
    
    .company-info-card {
        padding: 1.5rem;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .contact-label {
        min-width: unset;
        font-size: 0.95rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .legal-text {
        font-size: 1rem;
    }
    
    .legal-text h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .last-updated {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .bb-table {
        font-size: 0.9rem;
    }
    
    .bb-table th,
    .bb-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 3rem 0 2rem;
    }
    
    .legal-title {
        font-size: 1.8rem;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .legal-section-title {
        font-size: 1.3rem;
    }
    
    .company-info-card {
        padding: 1.25rem;
    }
    
    .contact-item {
        padding: 0.875rem;
    }
    
    .legal-text p {
        text-align: left;
    }
}