/* ============================================
   Base Styles & Variables
   ============================================ */
:root {
    --color-bg: #242424;
    --color-text: #FFFFFF;
    --color-text-muted: #BBB;
	
    --color-yellow: #e8ca66;
	
    --accent-color: #a84858;
		
    --btn-font-color: #FFFFFF;
    --btn-bgcolor: #8b3a47;
    --btn-hover-bgcolor: #6e2d38;

    --color-border: #444444;
    --font-display: 'Merriweather', serif;
    --font-body: 'Jura', sans-serif;
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Legal Section Styles
   ============================================ */

/* Legal Header */
.legal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000;
    border-bottom: 1px solid #333;
    height: 94px !important;
}

.legal-header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.legal-logo img {
    height: 48px;
    width: auto;
}

.legal-header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.legal-header-title a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-header-title a::before,
.legal-header-title a::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.legal-header-title a:hover::before,
.legal-header-title a:hover::after {
    width: 40px;
}

.legal-back-main {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.legal-back-main:hover {
    color: #FFF;
}

/* Legal Layout */
.legal-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 64px;
}

/* Legal Sidebar */
.legal-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    overflow-y: auto;
    padding: 32px 0;
    z-index: 50;
}

.legal-sidebar-nav {
    padding: 0 20px;
}

.legal-nav-section {
    margin-bottom: 32px;
}

.legal-nav-section h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 12px;
    padding-left: 12px;
}

.legal-nav-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-nav-section li {
    margin: 0;
}

.legal-nav-section a {
    display: block;
    padding: 10px 12px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.legal-nav-section a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
	border-left: 4px solid #FFF;
}

.legal-nav-section a.active {
    border-left-color: #d1a639;
	color: #FFFFFF;
}

.legal-sidebar-contact {
    margin-top: 32px;
    padding: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.legal-sidebar-contact p {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.legal-sidebar-contact a:not(.legal-btn) {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 15px;
}

.legal-sidebar-contact a:not(.legal-btn):hover {
    text-decoration: underline;
}

/* Legal Main Content */
.legal-main {
    flex: 1;
    margin-left: 280px;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
}

/* Legal Document Content */
.legal-doc-header {
    padding: 60px 48px 40px;
    border-bottom: 1px solid #333;
    background: linear-gradient(180deg, rgba(232, 202, 102, 0.03) 0%, transparent 100%);
}

.legal-doc-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.legal-doc-meta {
    color: var(--color-text-muted);
    font-size: 15px;
}

.legal-doc-content {
    padding: 48px;
    max-width: 800px;
}

.legal-doc-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: #CCCCCC;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.legal-doc-content h2:first-child {
    margin-top: 0;
}

.legal-doc-content p {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-doc-content ul,
.legal-doc-content ol {
    color: var(--color-text-muted);
    margin: 0 0 16px 20px;
    line-height: 1.8;
    font-size: 16px;
}

.legal-doc-content li {
    margin-bottom: 8px;
}

.legal-doc-content strong {
    color: #FFF;
    font-weight: 500;
}

.legal-doc-content a:not(.legal-btn) {
    color: #5ba8e0;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-doc-content a:not(.legal-btn):hover {
    color: #5ba8e0;
    text-decoration: underline;
}

.legal-doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.legal-doc-content th,
.legal-doc-content td {
    border: 1px solid #444;
    padding: 12px;
    text-align: left;
    color: var(--color-text-muted);
}

.legal-doc-content th {
    background: rgba(232, 202, 102, 0.1);
    color: var(--accent-color);
    font-weight: 500;
}

/* Legal Footer */
.legal-footer {
    margin-top: auto;
    padding: 32px 48px;
    border-top: 1px solid #333;
    background: #1a1a1a;
}

.legal-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-footer p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.legal-footer-links {
    display: flex;
    gap: 24px;
}

.legal-footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.legal-footer-links a:hover {
    color: #BBB;
}

/* Mobile Legal Nav Toggle */
.legal-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    background: #d0aa46;
	background: -webkit-linear-gradient(#c69a31, #e6c965);
	background: -o-linear-gradient(#c69a31, #e6c965);
	background: linear-gradient(#c69a31, #e6c965);	
	border: solid 2px #e6c965;
    color: #000;
    padding: 16px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    align-items: center;
    gap: 8px;
}

/* Mobile Toggle Hover - Icon Animation */
.legal-mobile-toggle svg {
    transition: transform 0.4s ease, stroke 0.4s ease;
}

.legal-mobile-toggle:hover svg {
    transform: rotateX(180deg);
    stroke: #FFFFFF;
}

.legal-mobile-toggle:hover {
    color: #FFFFFF;
}

/* Legal Index Page */
.legal-index-header {
    padding: 60px 48px;
    border-bottom: 1px solid #333;
    background: linear-gradient(180deg, rgba(232, 202, 102, 0.03) 0%, transparent 100%);
}

.legal-index-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.legal-index-header p {
    color: var(--color-text-muted);
    font-size: 18px;
    max-width: 500px;
}

.legal-index-content {
    padding: 48px;
}

.legal-index-section {
    margin-bottom: 48px;
}

.legal-index-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: #CCCCCC;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.legal-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.legal-index-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #FFF;
    transition: all 0.2s;
}

.legal-index-card:hover {
    background: #202020;
    border-color: #888;
    transform: translateY(-2px);
}

.legal-index-card h3 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.legal-index-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .legal-sidebar {
        width: 240px;
    }
    
    .legal-main {
        margin-left: 240px;
    }
    
    .legal-doc-header,
    .legal-doc-content,
    .legal-index-header,
    .legal-index-content,
    .legal-footer {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .legal-header {
        height: 84px;
    }
    
    .legal-header-inner {
        padding: 8px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .legal-logo {
        margin-top: 8px;
        margin-bottom: -2px;
    }
    
    .legal-logo img {
        height: 41px;
    }
    
    .legal-back-main {
        font-size: 17px;
        margin-top: 0;
        margin-bottom: 4px;
        gap: 6px;
    }
    
    .legal-back-main svg {
        width: 12px;
        height: 12px;
    }
    
    .legal-header-title {
        display: none;
    }
    
    .legal-layout {
        padding-top: 84px;
    }
    
    .legal-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        z-index: 150;
        top: 84px;
    }
    
    .legal-sidebar.active {
        transform: translateX(0);
    }
    
    .legal-main {
        margin-left: 0;
    }
    
    .legal-mobile-toggle {
        display: flex;
    }
    
    .legal-doc-header,
    .legal-doc-content,
    .legal-index-header,
    .legal-index-content,
    .legal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .legal-doc-header {
        padding-top: 40px;
        padding-bottom: 32px;
        background: #1a1a1a;
    }
    
    .legal-index-header {
        background: #1a1a1a;
    }
    
    .legal-doc-content {
        padding-top: 32px;
        padding-bottom: 100px;
    }
    
    .legal-index-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Overlay */
.legal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 140;
}

.legal-overlay.active {
    display: block;
}

/* Legal Button */
.legal-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #FFFBF0;
    color: #c69a31;
    border: 1px solid #EEE;
    outline: 1px solid #e6c965;
    outline-offset: 2px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.legal-btn:hover {
    outline-offset: 4px;
    outline-color: #d0aa46;
    text-decoration: none;
}
