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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #1a1a2e;
    color: #eaeaea;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header and Controls */
#header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 12px 20px;
    border-bottom: 1px solid #0f3460;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#header h1 {
    font-size: 1.3rem;
    color: #00d4ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    margin: 0;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.legal-btn {
    padding: 4px 12px;
    font-size: 12px;
    background-color: #7f8c8d;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.legal-btn:hover {
    background-color: #95a5a6;
}

.legal-btn.active {
    background-color: #e74c3c;
}

#controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 0.9rem;
    color: #a0a0a0;
}

input[type="date"],
select {
    background: #16213e;
    border: 1px solid #0f3460;
    color: #eaeaea;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="date"]:hover,
select:hover {
    border-color: #00d4ff;
}

input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    padding: 8px 14px;
    background: #16213e;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-btn:hover {
    background: #1f2b4a;
}

.dropdown-btn.active {
    background: #00d4ff;
    color: #1a1a2e;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    background: #16213e;
    border: 1px solid #00d4ff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    margin-top: 4px;
    padding: 6px 0;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #0f3460;
    color: #fff;
}

.dropdown-item input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #00d4ff;
    cursor: pointer;
}

/* Options Dropdown Styles */
.options-dropdown {
    min-width: 180px;
    padding: 8px 12px;
}

.options-item {
    margin-bottom: 8px;
}

.options-item:last-child {
    margin-bottom: 0;
}

.options-item .setting-row span {
    min-width: 80px;
}

.options-item input[type="number"] {
    width: 70px;
    padding: 4px 8px;
    background: #0f3460;
    border: 1px solid #00d4ff;
    border-radius: 4px;
    color: #eaeaea;
    font-size: 0.85rem;
    text-align: center;
}

.options-item input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.options-divider {
    border-top: 1px solid #0f3460;
    padding-top: 8px;
    margin-top: 4px;
}

.options-btn {
    width: 100%;
    padding: 8px 12px;
    background: #0f3460;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.options-btn:hover {
    background: #00d4ff;
    color: #1a1a2e;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #16213e;
    border: 1px solid #00d4ff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #0f3460;
}

.modal-header h3 {
    color: #00d4ff;
    font-size: 1.1rem;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff4444;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Marker Add Section */
.marker-add-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #0f3460;
}

.marker-add-section h4,
.marker-list-section h4 {
    color: #00d4ff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.marker-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.marker-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marker-input-group label {
    font-size: 0.8rem;
    color: #888;
}

.marker-input-group input[type="number"],
.marker-input-group input[type="text"] {
    padding: 8px 10px;
    background: #0f3460;
    border: 1px solid #1a3a5c;
    border-radius: 4px;
    color: #eaeaea;
    font-size: 0.9rem;
}

.marker-input-group input[type="number"]:focus,
.marker-input-group input[type="text"]:focus {
    border-color: #00d4ff;
    outline: none;
}

.marker-input-group input[type="color"] {
    width: 100%;
    height: 32px;
    padding: 2px;
    background: #0f3460;
    border: 1px solid #1a3a5c;
    border-radius: 4px;
    cursor: pointer;
}

.marker-input-group input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #0f3460;
    border-radius: 3px;
    cursor: pointer;
}

.marker-input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
}

.marker-input-group span#markerSizeValue {
    min-width: 24px;
    text-align: center;
    color: #7bed9f;
    font-size: 0.85rem;
}

.marker-input-row .marker-input-group:has(input[type="range"]) {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.marker-input-row .marker-input-group:has(input[type="range"]) label {
    min-width: 35px;
}

/* Marker List Section */
.marker-list-section h4 span {
    color: #7bed9f;
    font-weight: normal;
}

.marker-list-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.small-btn {
    padding: 6px 12px;
    background: #0f3460;
    border: 1px solid #1a3a5c;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.small-btn:hover {
    background: #1a3a5c;
    color: #fff;
}

.small-btn.danger {
    border-color: #ff4444;
    color: #ff4444;
}

.small-btn.danger:hover {
    background: #ff4444;
    color: #fff;
}

.marker-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background: #0d1a30;
}

.marker-list .placeholder {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
}

.marker-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #0f3460;
    transition: background 0.15s;
}

.marker-list-item:last-child {
    border-bottom: none;
}

.marker-list-item:hover {
    background: #1a2a4a;
}

.marker-item-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.marker-item-info {
    flex: 1;
    min-width: 0;
}

.marker-item-label {
    display: block;
    font-size: 0.9rem;
    color: #eaeaea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marker-item-coords {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

.marker-item-actions {
    display: flex;
    gap: 4px;
}

.marker-action-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    background: #0f3460;
    border: 1px solid #1a3a5c;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.marker-action-btn:hover {
    background: #1a3a5c;
    color: #fff;
}

.marker-action-btn.goto:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.marker-action-btn.toggle.hidden-marker {
    opacity: 0.5;
}

.marker-action-btn.delete:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* Overlay Dropdown Styles */
.overlay-dropdown {
    min-width: 220px;
    padding: 0;
}

.overlay-item {
    border-bottom: 1px solid #0f3460;
}

.overlay-item:last-child {
    border-bottom: none;
}

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.overlay-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
}

.overlay-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00d4ff;
    cursor: pointer;
}

.overlay-settings-btn {
    background: transparent;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.overlay-settings-btn:hover {
    background: #00d4ff;
    color: #1a1a2e;
}

.overlay-settings-btn.active {
    background: #00d4ff;
    color: #1a1a2e;
}

.overlay-settings {
    background: #0f3460;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overlay-settings.hidden {
    display: none;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #aaa;
}

.setting-row span:first-child {
    min-width: 50px;
}

.setting-row input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #16213e;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.setting-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
}

.setting-row input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.setting-row input[type="color"] {
    width: 28px;
    height: 22px;
    padding: 0;
    border: 1px solid #00d4ff;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.setting-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.setting-row input[type="color"]::-webkit-color-swatch {
    border-radius: 2px;
    border: none;
}

.setting-value {
    min-width: 30px;
    text-align: right;
    color: #7bed9f;
}

.setting-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.setting-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #00d4ff;
}

/* Grid labels on map */
.grid-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background: #00d4ff;
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    background: transparent;
    border: 1px solid #0f3460;
    color: #a0a0a0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Main Content */
#main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
#sidebar {
    width: 180px;
    background: #16213e;
    border-right: 1px solid #0f3460;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#sidebar-controls h3 {
    font-size: 0.9rem;
    color: #00d4ff;
    margin-bottom: 10px;
}

.sidebar-btn {
    width: 100%;
    background: #0f3460;
    border: 1px solid #1a3a5c;
    color: #eaeaea;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.sidebar-btn:hover:not(:disabled) {
    border-color: #00d4ff;
    color: #00d4ff;
}

.sidebar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#legend {
    padding: 10px;
    background: rgba(15, 52, 96, 0.5);
    border-radius: 6px;
}

.legend-title {
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
    opacity: 0.7;
}

#map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background: #0d1117;
    cursor: crosshair;
}

#coord-display {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(22, 33, 62, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #0f3460;
    z-index: 1000;
    font-size: 0.85rem;
}

#selected-coords {
    color: #00d4ff;
}

/* Time Slider */
#time-slider-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 33, 62, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #0f3460;
    z-index: 1000;
    width: 80%;
    max-width: 600px;
}

#time-slider-container.hidden {
    display: none;
}

#current-time-display {
    text-align: center;
    font-size: 1.1rem;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 10px;
}

#time-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #0f3460;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

#time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

#slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #a0a0a0;
}

#playback-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.playback-btn {
    background: #0f3460;
    border: 1px solid #1a3a5c;
    color: #eaeaea;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.playback-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.playback-btn.hidden {
    display: none;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
    font-size: 0.85rem;
    color: #a0a0a0;
}

.speed-control input {
    width: 50px;
    background: #0f3460;
    border: 1px solid #1a3a5c;
    color: #00d4ff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.speed-control input:focus {
    outline: none;
    border-color: #00d4ff;
}

/* Info Panel */
#info-panel {
    width: 350px;
    background: #16213e;
    border-left: 1px solid #0f3460;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#info-panel h3 {
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #00d4ff;
    border-bottom: 1px solid #0f3460;
    background: #0f3460;
}

#watch-list {
    padding: 10px 15px;
    max-height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid #0f3460;
}

#watch-list .placeholder,
#watch-details .placeholder {
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
}

.watch-item {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: #0f3460;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    border-left: 4px solid transparent;
}

.watch-item:hover {
    background: #1a3a5c;
}

.watch-item.selected {
    background: #1a3a5c;
}

.watch-item.type-tor {
    border-left-color: #ff4444;
}

.watch-item.type-svr {
    border-left-color: #4488ff;
}

.watch-item.type-other {
    border-left-color: #44ff44;
}

.watch-item .watch-summary {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.watch-item .watch-type {
    font-weight: 600;
}

.watch-item .watch-type.tor {
    color: #ff4444;
}

.watch-item .watch-type.svr {
    color: #4488ff;
}

.watch-item .watch-type.other {
    color: #44ff44;
}

.watch-item .watch-hail {
    color: #44ff44;
}

.watch-item .watch-wind {
    color: #4488ff;
}

.watch-item .watch-pds {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.75rem;
    background: rgba(0, 212, 255, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
}

.watch-item .watch-issue {
    color: #a0a0a0;
    font-size: 0.75rem;
}

#watch-details {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.detail-row {
    margin-bottom: 10px;
}

.detail-row .label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row .value {
    font-size: 0.95rem;
    color: #eaeaea;
    margin-top: 2px;
}

.detail-row .value.highlight {
    color: #00d4ff;
    font-weight: 600;
    font-size: 1.1rem;
}

.detail-row .value a {
    color: #4488ff;
    text-decoration: none;
}

.detail-row .value a:hover {
    text-decoration: underline;
}

/* Status Bar */
#status-bar {
    padding: 10px 15px;
    background: #0f3460;
    border-top: 1px solid #1a1a2e;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #a0a0a0;
}

#watch-count {
    color: #00d4ff;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #0f3460;
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#loading-overlay p {
    margin-top: 15px;
    color: #00d4ff;
    font-size: 1rem;
}

/* Leaflet Customizations */
.leaflet-container {
    background: #0d1117;
}

.leaflet-control-zoom {
    border: none !important;
}

.leaflet-control-zoom a {
    background: #16213e !important;
    color: #00d4ff !important;
    border: 1px solid #0f3460 !important;
}

.leaflet-control-zoom a:hover {
    background: #0f3460 !important;
}

.leaflet-control-attribution {
    background: rgba(22, 33, 62, 0.8) !important;
    color: #666 !important;
}

.leaflet-control-attribution a {
    color: #00d4ff !important;
}

/* Selected Point Marker */
.selected-point-icon {
    background: #00d4ff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Scrollbar styling */
#watch-list::-webkit-scrollbar,
#watch-details::-webkit-scrollbar {
    width: 6px;
}

#watch-list::-webkit-scrollbar-track,
#watch-details::-webkit-scrollbar-track {
    background: #0f3460;
}

#watch-list::-webkit-scrollbar-thumb,
#watch-details::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        align-items: flex-start;
    }

    #controls {
        width: 100%;
    }

    #sidebar {
        display: none;
    }

    #info-panel {
        display: none;
    }

    #time-slider-container {
        width: 95%;
    }
}

/* Legal Modal Styles */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.legal-modal.hidden {
    display: none !important;
}

.legal-modal-content {
    background-color: #2c3e50;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #34495e;
}

.legal-modal-header h2 {
    color: #3498db;
    font-size: 24px;
    margin: 0;
}

.legal-close-btn {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.legal-close-btn:hover {
    color: #e74c3c;
}

.legal-modal-body {
    padding: 25px;
    overflow-y: auto;
    color: #ecf0f1;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h3 {
    color: #3498db;
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid #34495e;
    padding-bottom: 8px;
}

.legal-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-section ul {
    margin-left: 25px;
    margin-bottom: 10px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section a {
    color: #3498db;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.warning-box {
    background-color: #e67e22;
    border-left: 4px solid #d35400;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.warning-box p {
    margin: 0;
    color: #ffffff;
}

.warning-box strong {
    font-size: 16px;
}

.legal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #34495e;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}
